Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2014, 02:07 AM   #1
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Books Read Checkmarks Vanished

I just noticed today that none of my books were marked as read. After investigating I know it happened on March 6th while testing whichever beta version happened to exist at that time. I restored from backup so all is fine.

I'm not sure how it happened. If you think the logs would go back that far I'd be glad to send them.

My recollections are fuzzy. I uninstalled and reinstalled CC a couple of times that morning (including wiping the data and cache). I also deleted all of my books via an Android file manager at one point. I also changed from using ID for file name to template naming, then back again.

If no one else has seen this then I would chalk it up to my messing around with the files on my device in a unique manner.

Last edited by DoctorOhh; 03-11-2014 at 02:59 AM.
DoctorOhh is offline   Reply With Quote
Old 03-11-2014, 03:40 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Hmmm....

I would like to know why this happened, but I suspect that it is no longer possible to do the forensics. Too many things have changed, both in CC and in calibre. On the other hand, it is good to know that it did happen, so I can keep it in mind when looking for ways to stress test this stuff.
chaley is offline   Reply With Quote
Advert
Old 03-11-2014, 04:35 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by chaley View Post
it is good to know that it did happen, so I can keep it in mind when looking for ways to stress test this stuff.
Just to be clear it was in calibre that the marked read checks disappeared. It was strange. But all is well now.

I have been without power for 4 days due to an ice storm and it is time to try and place my entire library back on my device.

Thanks for taking the time to improve the app.
DoctorOhh is offline   Reply With Quote
Old 03-11-2014, 06:40 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I think I know what happened. There is an unfortunate interaction between scan for books and syncing. If the sync columns are set when CC scans for books then calibre's data will be overwritten with null values. I am fixing this now.

The workaround is not to set the sync columns until CC has connected for the first time and scanned for books.
chaley is offline   Reply With Quote
Old 03-11-2014, 07:05 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by chaley View Post
I think I know what happened. There is an unfortunate interaction between scan for books and syncing. If the sync columns are set when CC scans for books then calibre's data will be overwritten with null values. I am fixing this now.

The workaround is not to set the sync columns until CC has connected for the first time and scanned for books.
Sounds like you may be on to something. Thursday morning I'll see if I can't recreate the results.
DoctorOhh is offline   Reply With Quote
Advert
Old 03-11-2014, 07:26 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I know the problem is there because it happened to me today during upgrade testing. It took me several moments to figure out what had happened to my db. Fortunately, like you I had a backup and could get back to a known state so I could debug it.

Although it would be great if you could confirm it, given the size of your library the test would take ages. Only bother if you have those ages to spend.

Unfortunately the fix requires a change to calibre as well as to CC, so I can't make a new CC release until Friday.
chaley is offline   Reply With Quote
Old 03-11-2014, 07:37 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by chaley View Post
I know the problem is there because it happened to me today during upgrade testing. It took me several moments to figure out what had happened to my db. Fortunately, like you I had a backup and could get back to a known state so I could debug it.
It is nice to know I'm not alone. As it turns out Dropbox had 1080 backups of my metadata.db file over the last thirty days. Since I haven't added any books since March 4th it was easy to restore to a backup that included the #read column data.

Quote:
Originally Posted by chaley View Post
Although it would be great if you could confirm it, given the size of your library the test would take ages. Only bother if you have those ages to spend.
This is what the beta process is all about. Since I currently only have 100 books on my device I'll be glad to test it. What are the circumstances required to replicate the error?
DoctorOhh is offline   Reply With Quote
Old 03-11-2014, 07:53 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DoctorOhh View Post
This is what the beta process is all about. Since I currently only have 100 books on my device I'll be glad to test it. What are the circumstances required to replicate the error?
The steps I used to make it fail are:
  1. Reinitialize CC. You can uninstall/reinstall or use the app manager to clear CC's data. The result is the same.
  2. Ensure that there are books in CC's library folder (normally Calibre_Companion) that scan for new books will find.
  3. Start CC.
  4. Update CC's settings to what you want. In particular, add the sync column lookup names. I also set the UUID as file name check box. Ensure that "Scan for new books" is checked (it is by default).
  5. Connect as a wireless device. Let it finish syncing. The read information in calibre should now be gone for any book that is matched as on-device. It isn't necessary to disconnect to note the data loss.
If you alter step four and not put in the lookup names then the data will not be lost. After your first sync completes you can enter the lookup names without triggering the bug. This is why we haven't seen it to date in the prerelease program, because everyone had a working CC install (I think).

Last edited by chaley; 03-11-2014 at 07:55 AM.
chaley is offline   Reply With Quote
Old 03-13-2014, 05:10 AM   #9
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by chaley View Post
The steps I used to make it fail are:
  1. Reinitialize CC. You can uninstall/reinstall or use the app manager to clear CC's data. The result is the same.
  2. Ensure that there are books in CC's library folder (normally Calibre_Companion) that scan for new books will find.
  3. Start CC.
  4. Update CC's settings to what you want. In particular, add the sync column lookup names. I also set the UUID as file name check box. Ensure that "Scan for new books" is checked (it is by default).
  5. Connect as a wireless device. Let it finish syncing. The read information in calibre should now be gone for any book that is matched as on-device. It isn't necessary to disconnect to note the data loss.
If you alter step four and not put in the lookup names then the data will not be lost. After your first sync completes you can enter the lookup names without triggering the bug. This is why we haven't seen it to date in the prerelease program, because everyone had a working CC install (I think).
I followed your directions and the books were still marked. So I looked closer and saw that you said to have read books that matched on device so while I'm still connected I figure I would transfer some books to my device that were labeled as read and start again, but as soon as the books were on the device the check marks vanished.

I hope that it is consistent with what you expected.

Update:

1. I disconnected then connected again and sent a new set of read books to my device and the same thing happened, but this time not only the new books lost the read mark, the books on the device that matched also lost their marks when the new books were sent.

2. I tried one more time this time with scan for books unchecked and the same thing as in update 1 happened.


Last edited by DoctorOhh; 03-13-2014 at 06:01 AM.
DoctorOhh is offline   Reply With Quote
Old 03-13-2014, 08:19 AM   #10
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DoctorOhh View Post
I followed your directions and the books were still marked. So I looked closer and saw that you said to have read books that matched on device so while I'm still connected I figure I would transfer some books to my device that were labeled as read and start again, but as soon as the books were on the device the check marks vanished.

I hope that it is consistent with what you expected.
No, that is a new problem. The data in newly-sent books was being lost. I just fixed that.
Quote:
Update:

1. I disconnected then connected again and sent a new set of read books to my device and the same thing happened, but this time not only the new books lost the read mark, the books on the device that matched also lost their marks when the new books were sent.

2. I tried one more time this time with scan for books unchecked and the same thing as in update 1 happened.
It isn't clear to me whether you had followed all the steps or if this was a normal connection. If it was an "all steps" connection then I suspect that the difference between what I saw and what you are seeing is that the metadata in the books is correct. I would need to check to be sure, but I think that none of the books on my device have the correct custom columns already in them.

Losing the checkmarks on the newly-sent books is the same new problem as above. Losing all the checkmarks when you send new books implies that CC and calibre disagreed on what the checkmark should be, but this doesn't feel right.

I suggest that we hold off any further experiments until we are both running the same codebase. Both CC and calibre have changed to fix the bugs I found earlier in the week (and that you were trying to repeat) and to fix the bug you found today. Both will be released tomorrow.
chaley is offline   Reply With Quote
Old 03-13-2014, 10:05 AM   #11
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by chaley View Post
I suggest that we hold off any further experiments until we are both running the same codebase. Both CC and calibre have changed to fix the bugs I found earlier in the week (and that you were trying to repeat) and to fix the bug you found today. Both will be released tomorrow.
Makes sense to me to wait. I'll try again when CC and calibre are updated.
DoctorOhh is offline   Reply With Quote
Old 03-15-2014, 09:31 AM   #12
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,893
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
With the updates everything works as expected.
DoctorOhh is offline   Reply With Quote
Old 03-15-2014, 10:07 AM   #13
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,353
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DoctorOhh View Post
With the updates everything works as expected.
Excellent. Thanks for letting me know.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
modifying reading stats (number of books read and hours read)? psy65 Kobo Developer's Corner 10 10-14-2016 03:06 AM
Paperwhite books vanished from collections trampas Amazon Kindle 1 11-20-2012 02:08 PM
Read all about it! Device owners read more books, magazines and newspapers dacattt News 24 10-21-2012 04:43 AM
Column that allows only checkmarks? Synful Library Management 13 07-04-2011 10:32 AM
0.6.29 -> Series vanished? guyanonymous Calibre 2 12-28-2009 03:02 PM


All times are GMT -4. The time now is 04:30 AM.


MobileRead.com is a privately owned, operated and funded community.