03-25-2012, 02:27 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2012
Device: Kindle 3G
|
Qt exception thrown from an event handler
Last night I left Calibre importing a big collection of books. This morning Calibre was no longer running and when I try to start it up I get a Visual C++ runtime error. Unfortunately the error window is blank and doesn't tell me what the error is.
I deleted the last few dozen books that were added to the library thinking one of them might have hung it up, but that didn't help either. I ran in debug mode and this is what I got. C:\Users\Lenny>calibre-debug -g Starting up... Traceback (most recent call last): File "site-packages\calibre\gui2\library\models.py", line 319, in sort File "site-packages\calibre\gui2\library\models.py", line 327, in _sort File "site-packages\calibre\library\caches.py", line 1013, in sort File "site-packages\calibre\library\caches.py", line 1033, in multisort File "site-packages\calibre\library\caches.py", line 1067, in __call__ File "site-packages\calibre\library\caches.py", line 1073, in itervals File "site-packages\calibre\library\caches.py", line 200, in __getitem__ File "site-packages\calibre\library\database2.py", line 925, in get_metadata File "site-packages\calibre\ebooks\metadata\book\base.py", line 107, in __init __ File "copy.py", line 163, in deepcopy File "copy.py", line 257, in _deepcopy_dict File "copy.py", line 163, in deepcopy File "copy.py", line 228, in _deepcopy_list MemoryError Unhandled exception in thread started by <bound method DeviceManager.__bootstrap of <DeviceManager(Thread-6, stopped daemon 5928)>> Traceback (most recent call last): File "threading.py", line 503, in __bootstrap File "threading.py", line 543, in __bootstrap_inner MemoryError Traceback (most recent call last): File "site-packages\calibre\gui2\library\models.py", line 319, in sort File "site-packages\calibre\gui2\library\models.py", line 327, in _sort File "site-packages\calibre\library\caches.py", line 1013, in sort File "site-packages\calibre\library\caches.py", line 1033, in multisort MemoryError Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Any ideas? |
03-25-2012, 05:54 PM | #2 |
creator of calibre
Posts: 44,530
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Post the metadata.db from your calibre library
|
Advert | |
|
03-25-2012, 09:09 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2012
Device: Kindle 3G
|
The DB is like 170MB, not sure if VBB will let me upload that.
I've been doing some digging, it looks like it malfunctions when it hits about 2GB of ram used by the main Calibre process. From what I'm reading this is the limit for a 32 bit program, unless there's a workaround I don't know about? |
03-26-2012, 12:01 AM | #4 | |
Well trained by Cats
Posts: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I have 4000 books and Metadata.db is 12.5M |
|
03-26-2012, 12:56 AM | #5 |
creator of calibre
Posts: 44,530
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That will be the cause of the error. It sounds like you somehow have entire books stored in some database field. Thus, the memory error.
|
Advert | |
|
03-26-2012, 10:01 AM | #6 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2012
Device: Kindle 3G
|
Actually there are almost 200K books in the DB, so it's all DB information. (I know, ridiculous amount of books)
I did find a workaround to let a 32 bit application use over 2GB of RAM. http://ntcore.com/4gb_patch.php Once I ran the patch on the main calibre.exe file I was able to load the database. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Python exception | m0318363 | Calibre | 2 | 09-17-2011 07:39 AM |
Recipe exists: ICE default IO error handler doing an exit(), pid = 11756, errno = 32 | weichkaese | Recipes | 0 | 08-08-2011 05:07 AM |
Fetch News Exception | oggie41 | Calibre | 1 | 09-22-2010 10:02 AM |
Exception error | surendraps | Introduce Yourself | 8 | 09-10-2010 05:41 PM |
'Voluminous' - a new ebook handler for OSX | ottocrat | News | 10 | 04-22-2008 10:45 AM |