E-reader crashes on collection edit (adding comma);Auto-update -> Manual update not handled right

Bug #874118 reported by drMerry
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I have a PRS-650
The E-reader crashes in this case:

A. Make sure calibre is set to auto-update metadata of E-reader
B. Attach your E-reader to calibre
C. Wait till metadata is updated
D. Change the update metadata to manual
E. Edit a collection on the reader (by click on the collection behind a book) and change the current collection into a split one (e.g. Literary Thriller -> Literary, Thriller)
F. Disconnect the reader

Go to the collections (using your E-reader).
You'll see there is a collection that contains a ,
When trying to change the name of this collection, the reader will crash.

The problem is that changing from auto-update to manual is not right handled (vise versa it is)
E.g. the option edit collections does not become available.
Editing collections is possible when clickin on them.

When restarting calibre before really editing the collections, it will work allright

drMerry (invullen)
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 874118

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
drMerry (invullen) wrote : Re: Ereader crashes on manual collection edit (After Autoupdate metadata)

This are actually 2 bugs.

One: going from automatic to manual is not handled right

Two: comma is not handled as collection separator

summary: - Ereader crashes on manual collection edit (After Autoupdate metadata)
+ E-reader crashes on collection edit (adding comma); Auto-update->Manual
+ update not handled right
summary: - E-reader crashes on collection edit (adding comma); Auto-update->Manual
+ E-reader crashes on collection edit (adding comma);Auto-update -> Manual
update not handled right
Revision history for this message
drMerry (invullen) wrote :

Extra info:

Books are not updated right.
When e.g. removing a collection from a book not in the library, the data is not really removed.
Calibre shows the no collections.
When the E-reader is disconnected, the collections are back again.
Worse, collections removed by the E-reader, are back again.

Testcase:

Add a tag to a book in calibre (book must not be on your E-reader). -> ADDEDTAG
Make shure your tags are added as collections
Connect your reader to calibre.
Add book to reader
disconnect reader
reader has a new collection: ADDEDTAG
remove book from Calibre
remove collection ADDEDTAG from E-reader
Connect E-reader to Calibre
Calibre shows the book on your reader INCLUDING the ADDEDTAG collection
Remove the ADDEDTAG collection from the book.
Calibre shows the book without the collection
Disconnect E-reader
Collection is again shown on E-reader

Revision history for this message
Charles Haley (cbhaley) wrote :

@kovid, the failure steps require a *50 reader (or possibly a T1) so that collections can be edited on the reader. I don't have one, so I have to give that part of this report back to you. I have fixed the "changing metadata management not working when the device is connected problem" by disabling the change while a device is connected.

@drmerry: I assume that you are using manual management in that last test case.

Changed in calibre:
assignee: Charles Haley (cbhaley) → nobody
status: Triaged → In Progress
Revision history for this message
Kovid Goyal (kovid) wrote :

I'm closing this as fixed for the part of changing automatic->manual. Looking at the collections code, i don't see an easy way to add support for commas in collection names. You will just have to refrain from using commas in your collection names.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: In Progress → Fix Released
Kovid Goyal (kovid)
security vulnerability: yes → no
visibility: private → public
Revision history for this message
drMerry (invullen) wrote :

I have a problem with one of your comments Kovid:

I'm closing this as fixed for the part of changing automatic->manual. Looking at the collections code, i don't see an easy way to add support for commas in collection names. You will just have to refrain from using commas in your collection names.

But I use the , to add an extra collection or separeate a collection in two collections right?

How do I add multiple collections to a book on the reader when I'm not allowed to add a , ? (Or, better described, the , is not seen as separator by calibre)

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 874118

If you were actually adding multiple collections on the device, separated by a
comma, you would
end up with multiple collections without a comma in them. It's only if you
adda single collection with a comma in it that it wont work.

Revision history for this message
drMerry (invullen) wrote :

well, I wanted to separate an existing collection. But I think it does not work that way.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.