|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2017
Device: Kobo Glo HD
|
Calibre hangs when sending to Kobo Glo HD
I had a pdf file that took me 300 minutes to convert to epub, using calibre.
Now when trying to send the epub file to my device, it eats 100% of the CPU, and the interface hangs. I have waited for more than 30 minutes before killing it. Sending other epub files works fine, in less than a few seconds. Would you have an idea of what could be the problem? Code:
+ ~$ calibre-debug -g caldebug.txt 2>&1
calibre 3.5 embedded-python: False is64bit: True
Linux-4.7.0-1-custom-x86_64-with-glibc2.2.5 Linux ('64bit', '')
('Linux', '4.7.0-1-custom', '#1 SMP PREEMPT Thu Aug 18 19:43:47 ECT 2016')
Python 2.7.13
Linux: ('', '', '')
Interface language: None
Successfully initialized third party plugins: Annotations (1, 4, 11)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 55.1050847458 x 55.0843373494
Using calibre Qt style: False
Starting up...
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/ui.py", line 160, in __init__
ac = self.init_iaction(action)
File "/usr/lib/calibre/calibre/gui2/ui.py", line 174, in init_iaction
ac = action.load_actual_plugin(self)
File "/usr/lib/calibre/calibre/customize/__init__.py", line 614, in load_actual_plugin
ac = getattr(importlib.import_module(mod), cls)(gui,
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 183, in load_module
exec compiled in mod.__dict__
File "calibre_plugins.annotations.action", line 27, in <module>
ImportError: No module named idevice.libimobiledevice
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Started up in 0.89 seconds with 256 books
Ignoring directories passed as command line arguments
Found device nodes: /dev/sdb None None
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Set library information started
DeviceJob: 2 Set library information done, calling callback
DeviceJob: 2 Set library information callback returned
Job: 3 Get list of books on device started
DEBUG: 0.0 KoboTouch:books - oncard='None'
DEBUG: 0.0 KoboTouch:books - oncard='None', prefix='/run/media/sathors/KOBOeReader/'
DEBUG: 0.0 Kobo device: Kobo Glo HD
DEBUG: 0.0 Version of driver: (2, 3, 3) Has kepubs: True
DEBUG: 0.0 Version of firmware: (4, 5, 9587) Has kepubs: True
DEBUG: 0.0 Firmware supports cover image tree: True
DEBUG: 0.0 KoboTouch:books - opts.extra_customization= []
DEBUG: 0.0 KoboTouch:books - driver options= Driver:KoboTouch, Options - format_map: ['kepub', 'epub', 'pdf', 'txt', 'cbz', 'cbr'], use_subdirs: True, read_metadata: True, use_author_sort: False, save_template: {author_sort}/{title} - {authors}, extra_customization: [], manage_collections: True, collections_columns: , create_collections: False, delete_empty_collections: False, ignore_collections_names: , upload_covers: False, keep_cover_aspect: False, upload_grayscale: False, show_archived_books: False, show_previews: False, show_recommendations: False, update_series: True, update_device_metadata: True, modify_css: False, support_newer_firmware: False, debugging_title: , driver_version:
DEBUG: 0.0 KoboTouch:books - prefs['manage_device_metadata']= manual
DEBUG: 0.0 KoboTouch:books - set_debugging_title to ''
DEBUG: 0.0 KoboTouch:books - length bl=0
DEBUG: 0.0 KoboTouch:books - length bl after sync=34
DEBUG: 0.0 KoboTouch:books - reading device database
DEBUG: 0.0 Database Version: 142
DEBUG: 0.0 KoboTouch:books - shelf list: [u'Music theory', u'Informatic', u'Harmonica', u'Novels', u'Programming']
DEBUG: 0.0 KoboTouch:books - query= SELECT Title, Attribution, DateCreated, ContentID, MimeType, ContentType, ImageID, ReadStatus, ___ExpirationStatus, FavouritesIndex, Accessibility, IsDownloaded, Series, SeriesNumber, ___UserID, ExternalId FROM content WHERE BookID IS NULL AND ((Accessibility = -1 AND IsDownloaded in ('true', 1 )) OR (Accessibility IN (1,2,9) and IsDownloaded in ('true', 1)) ) AND (externalId IS NULL OR externalId = '') AND contentId NOT LIKE 'file:///mnt/sd/%'
DEBUG: 0.0 KoboTouch:books - about to sync_booklists
DEBUG: 0.0 USBMS: starting sync_booklists
DEBUG: 0.2 USBMS: finished sync_booklists
DEBUG: 0.2 KoboTouch:books - have done sync_booklists
DEBUG: 0.2 KoboTouch:books - end - oncard='None'
DEBUG: 0.2 KoboTouch:books - oncard='carda'
DEBUG: 0.2 KoboTouch:books - Asked to process 'carda', but do not have one!
DEBUG: 0.2 KoboTouch:books - oncard='cardb'
DEBUG: 0.2 KoboTouch:books - Asked to process 'cardb', but do not have one!
DeviceJob: 3 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 34
DeviceJob: set_books_in_library finished: time= 0.00645089149475
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 3 Get list of books on device callback returned
Job: 1 Get device information finished
No details available.
Job: 2 Set library information finished
No details available.
Job: 3 Get list of books on device finished
No details available.
Job: 4 Upload one book to the device: Continuous Delivery: Reliable Software Releases Through Build, Test, and Deployment Automation started
Device using plugboard epub KOBOTOUCH None
Setting metadata in: Continuous Delivery: Reliable Software Releases Through Build, Test, and Deployment Automation at: /tmp/calibre_3.5.0_tmp_z0bYOd/41gb7acaltmpfmt.epub
Killed
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,650
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hard to say without access to the file in question.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2017
Device: Kobo Glo HD
|
Hi kovidgoyal,
Isn't there a way for me to troubleshoot the problem? For example, why would it depend on the file? Does Calibre do some kind of processing before copying the file? The Kobo Glo HD reads epub, so there is no need for conversion. While sending, I think that there was also the calibre-parallel process running. Because I don't have any way to pass you the file, do I? Would an excerpt be useful? Last edited by Sathors; 08-01-2017 at 10:33 AM. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,650
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Of course it does processing. Vanilla calibre updates metadata and if you have any of the kobo plugins installed, it could be doing anything from updating metadata to re-formatting on the fly to specialise for the Kobo.
And if you want to send me a file, simply opena bug report and attach it. |
|
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Kovid: From the log above, it doesn't look like the send has reached the drivers. They are noisy and you should see a message starting with "KoboTouch" if it has.
I can't see the bug report, so I can't check that. |
|
|
|
|
|
#7 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,650
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It was apparently just caused by a bad pdf source document which resulted in an epub with too many image files.
|
|
|
|
|
|
#8 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2017
Device: Kobo Glo HD
|
Sorry guys, I forgot to update this thread. Indeed, it was because of too many files in the outputted epub (more than 200 000). Once I unchecked the importing of images from the pdf, the conversion took less than 1 minute and sending took less than 5 seconds.
Thanks for your help though! |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending metadata to Kobo Glo via Calibre is slow | Julez | Devices | 10 | 01-03-2017 10:21 PM |
| Glo Kobo Glo Hangs Frequently | ekampreet | Kobo Reader | 2 | 03-13-2015 06:30 AM |
| Calibre 0.9.31 Mac OS X hangs sending to iTunes | jimbudler | Devices | 1 | 05-20-2013 07:52 PM |
| Glo Kobo Glo hangs, freezes | Gruner | Kobo Reader | 2 | 01-25-2013 05:55 AM |
| Kobo Glo hangs at 87% | agvolant | Kobo Reader | 2 | 10-20-2012 01:27 PM |