![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
[Android App] Calibre Companion Beta Bug
I just purchased this program to go along with Kovid's excellent calibre program to use along with my Galaxy tab plus running android ics.
I'm currently running calibre .8.64 under osx and while transferring anywhere from 1 to 100 books I get the following error in calibre: Code:
"error communicating with device:ControlError(None,) Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 83, in run File "site-packages/calibre/gui2/device.py", line 478, in _upload_books File "site-packages/calibre/devices/smart_device_app/driver.py", line 43, in _synchronizer File "site-packages/calibre/devices/smart_device_app/driver.py", line 749, in upload_books File "site-packages/calibre/devices/smart_device_app/driver.py", line 409, in _put_file File "site-packages/calibre/devices/smart_device_app/driver.py", line 376, in _call_client ControlError: <unprintable ControlError object> I have to to go apps and force quit the application, re-enter, connect and then it will re-sync with calibre at which point I can continue. Again, it may transfer 1 book or 100 before the error happens again... Is there a way for me to obtain more detailed logs? EDIT: Well, I enabled calibre debug mode but now calibre companion just force quits all of the time. I've tried rebooting the tablet to no avail. Should I remove, delete data, and reinstall? Thanks! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 7975240
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I think I know what is happening, because I ran into the same problem around two hours ago. We have a timing problem in the app where Android will "toss" some things that we are still using. I am working on a fix for it.
The workaround I use is to enable calibre debug mode, connect, and then wait until calibre starts sending NOOPs to the app. The app will show a force close dialog in the middle of this, but don't hit OK until you see the NOOPs on calibre's debug log. From then on the app will then be stable until you send more books or until you change libraries to another that has the books in it. There is nothing more you can do until we get the update out, which will be sometime tomorrow (UK time). My apologies. This bug is my fault. I added on Friday some internal caching of metadata to speed up the app (it got more than twice as fast), but I broke something fundamental. Thank you for your patience. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 7975240
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Another part of the work-around: the bug is triggered when you connect to a different calibre library than the one from which you sent the books.
Are you changing libraries? If you are, then try to avoid it until we get a new release out. Thanks again for trying the app and for reporting the problem. ![]() |
![]() |
![]() |
![]() |
#4 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
Quote:
Thanks for the help! cheers |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 7975240
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
We have put an updated app on google play that we are quite sure fixes this problem. We know it fixes it for the two scenarios we identified.
Try it and let us know. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
The error still occurs. There's really no errors in the debug log besides:
Code:
Traceback (most recent call last): File "site-packages/calibre/gui2/device.py", line 83, in run File "site-packages/calibre/gui2/device.py", line 478, in _upload_books File "site-packages/calibre/devices/smart_device_app/driver.py", line 43, in _synchronizer File "site-packages/calibre/devices/smart_device_app/driver.py", line 749, in upload_books File "site-packages/calibre/devices/smart_device_app/driver.py", line 409, in _put_file File "site-packages/calibre/devices/smart_device_app/driver.py", line 376, in _call_client ControlError: <unprintable ControlError object> |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 7975240
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
That error says that your Tab is disconnecting in the middle of sending a book. This is precisely the error that we (though we) fixed.
Sorry to ask the obvious, but did you install the updated app from google play? Does the progress dialog (not the spinner, but the books transfer progress dialog with two progress lines) still show on the Tab when the error occurs? There is a problem where touching the screen while the progress dialog is showing will break the connection. Given the calibre error the progress dialog box should still be there. Is it possible that the SD card on the Tab is full? If you are willing, could you re-initialize the app? Go to settings, apps, Calibre Companion, and touch "Clear Data". This will erase all the books on the app that calibre companion has downloaded, as well as CCs book database. While in apps, could you verify that you have version 1.1? The version number will appear just below the "Calibre Companion" line at the top. After having pushed the Clear Data button, start the app and connect to calibre. Transfer 4 or 5 books, not 100. If that works, then transfer 4 or 5 more. If that works, then transfer the same 8 to 10 books again. Let me know what happens. NB: I have transferred 60+ books at once around 20 times to my Galaxy Nexus, so the problem isn't simply the number of books. Something else is going on. |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
Verified that I was running 1.1 and cleared Data. Just so you know but that does NOT remove the books as I previously found out. I went in using ES file explorer and deleted books manually.
Restarted the app, reconnected with Calibre, and pushed 4 books. The very FIRST book that was sent brought up the error. The tablet still shows: Code:
Syncing with calibre Receiving books from calibre ------ Receiving "Book Name Here..." ------ The tablet is a 16gb device with 14gb free. I have also tried changing the storage to the external sd card which is also a 16gb but a fat32 formatted device but this does not affect anything. Anything else to check? |
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
As a note, there was an option to enable debugging for the wireless device as well in calibre and I enabled that as well but just ended up with a lot of extra data regarding the contents of the epubs that were transferred and no real data regarding the loss of connection besides the information posted above. I do have a copy of that log if you'd like it posted on paste bins or something.
Cheers |
![]() |
![]() |
![]() |
#10 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Spoiler:
Last edited by DoctorOhh; 08-12-2012 at 11:43 PM. |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
The debug log is 4.6M for 4 books so I think embedding it will be a little large? Thanks for the information though I'll keep it in mind for further (perhaps smaller) logs.
Cheers! |
![]() |
![]() |
![]() |
#12 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Kudos to you for assisting in the beta testing. ![]() |
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 7975240
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() First, could you post the complete "non-extra-info" log (the small version)? If you prefer, send it to me via private message. Clean-install the app again (sorry...), connect to calibre, and send more than one book. I would love to have the large version as well. Perhaps you could zip it and send it to "calibre_companion at charles dot haleys dot org", or by any other method you prefer. Questions: - you say in post 8 that it fails on the first book of 4, but you mention "books" (plural) in post 11. I am trying to determine when exactly the failure occurs. Does the progress bar show the name of the first book or the name of the second? Was only one book file put in the folder? - did the Tab go to sleep during the transfer? - when you restart CC after the failure, are any of the 4 books listed? |
|
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
When I ad enabled the additional debugging I had restarted and attempted to send the same 4 books again which sent all 4 bug crashed on the 4th. The 4th shows as being there but is empty. The time that it crashed on sending the first book it showed as still sending the first book. When the application restarted the book APPEARED to be there but was empty besides cover. When it syncs back up with Calibre it will show that the book book that was stuck on screen as Syncing... as synched in Calibre but the contents of the file will be empty on the tablet besides showing the cover as stated above.
The tablet has yet do go to sleep during any of the transfers. I'll recreate a lighter debug log for you now and send you the larger debug log created yesterday to your email. Cheers |
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 1234
Join Date: Aug 2012
Device: Aura HD, Aura One (2nd warranty)
|
Here's the small debug log. Sent 8 random sci-fi books. Failed at sending the 6th. While the 6th book according to Calibre companion and Calibre actually did sync, there are only 5 books in the books folder (using file explorer) but there are 6 covers in Calibre Companion.
Spoiler:
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Android App] Best Android reader software for use with Calibre / Calibre Companion | ellett | Devices | 11 | 12-16-2012 04:27 PM |
[Android App] Calibre Companion 1.7 Beta testing | Adoby | Devices | 31 | 09-07-2012 10:13 PM |
[Android App] Beta version: Android app to connect as a device to calibre using wifi | chaley | Devices | 116 | 08-27-2012 12:42 PM |
[Android App] Calibre Companion, First Take | DoctorOhh | Devices | 61 | 08-27-2012 12:38 PM |
[Android App] Calibre companion and Aldiko | JDriver | Devices | 2 | 08-18-2012 02:04 AM |