View Single Post
Old 07-31-2017, 06:55 PM   #1
Sathors
Junior Member
Sathors began at the beginning.
 
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
Sathors is offline   Reply With Quote