View Single Post
Old 11-10-2014, 02:49 PM   #1
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Help needed with send metadata to device callback

I am trying to understand what is going on in the logs posted here: https://www.mobileread.com/forums/sho...&postcount=102

Specifically, this pattern occurs whenever there is an "database disk image is malformed" error:

Code:
Job: 5 Send metadata to device started
DEBUG:  686.4 iOSReaderApp:sync_booklists() 
DeviceJob: 5 Send metadata to device done, calling callback
database disk image is malformed

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 87, in run
  File "site-packages\calibre\gui2\device.py", line 532, in _sync_booklists
  File "C:\Users\Andrew\AppData\Local\Temp\calibre_bpv2hl\fa0znv_ios_local_db\Marvin_overlays.py", line 1009, in sync_booklists
  File "C:\Users\Andrew\AppData\Local\Temp\calibre_bpv2hl\fa0znv_ios_local_db\Marvin_overlays.py", line 2109, in _profile_db
DatabaseError: database disk image is malformed

DeviceJob: 5 Send metadata to device callback returned
It seems as if there are two threads in contention here:
  • Job: 5 Send metadata to device started
  • DEBUG: 686.4 iOSReaderApp:sync_booklists()

From the device.py code I have not been able to tell what callback is being called. If there are two threads here, it could explain why the error is occurring.

Or am I reading this wrong?

Thanks
ShellShock is offline   Reply With Quote