Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2012, 01:27 PM   #1
Bandgeek
Junior Member
Bandgeek began at the beginning.
 
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?
Bandgeek is offline   Reply With Quote
Old 03-25-2012, 04:54 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,840
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Post the metadata.db from your calibre library
kovidgoyal is online now   Reply With Quote
Advert
Old 03-25-2012, 08:09 PM   #3
Bandgeek
Junior Member
Bandgeek began at the beginning.
 
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?
Bandgeek is offline   Reply With Quote
Old 03-25-2012, 11:01 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Bandgeek View Post
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?
170M Are all your comments sections, really long winded

I have 4000 books and Metadata.db is 12.5M
theducks is online now   Reply With Quote
Old 03-25-2012, 11:56 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,840
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 03-26-2012, 09:01 AM   #6
Bandgeek
Junior Member
Bandgeek began at the beginning.
 
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.
Bandgeek is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python exception m0318363 Calibre 2 09-17-2011 06:39 AM
Recipe exists: ICE default IO error handler doing an exit(), pid = 11756, errno = 32 weichkaese Recipes 0 08-08-2011 04:07 AM
Fetch News Exception oggie41 Calibre 1 09-22-2010 09:02 AM
Exception error surendraps Introduce Yourself 8 09-10-2010 04:41 PM
'Voluminous' - a new ebook handler for OSX ottocrat News 10 04-22-2008 09:45 AM


All times are GMT -4. The time now is 09:22 PM.


MobileRead.com is a privately owned, operated and funded community.