Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2020, 05:28 PM   #1
dgparryuk
Enthusiast
dgparryuk began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Dec 2013
Device: Kobo Glo
RuntimeError:wrapped C/C++ object of type QAction has been deleted

getting this error, everytime i try and change between libraries

RuntimeError:wrapped C/C++ object of type QAction has been deleted


Spoiler:
calibre, version 4.8.0
ERROR: Unhandled exception: <b>RuntimeError</b>:wrapped C/C++ object of type QAction has been deleted

calibre 4.8 [64bit] embedded-python: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.16+
Windows: ('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: Modify ePub (1, 4, 0) && Manage Series (1, 2, 9) && Kobo Utilities (2, 9, 0) && Barnes & Noble (1, 2, 15) && EpubSplit (2, 8, 0) && Find Duplicates (1, 6, 3) && EpubMerge (2, 8, 0) && Clean Metadata (0, 0, 6) && Biblionet_gr (1, 1, 0) && Author Book Count (2, 1, 9) && Count Pages (1, 9, 0) && KindleUnpack - The Plugin (0, 82, 1) && Kobo Books (1, 8, 0) && OPML Importer (1, 0, 1) && EpubCheck (0, 2, 2) && Search The Internet (1, 7, 6) && Fantastic Fiction Adults (1, 1, 0) && Fantastic Fiction (1, 3, 0) && KoboTouchExtended (3, 1, 5) && Anobii Fetcher (1, 1, 0) && Reading List (1, 6, 7) && Quality Check (1, 9, 11) && ADLIBRIS_NO (0, 0, 10) && Beam Ebooks (1, 0, 0) && FictionDB (1, 2, 0) && Resize Cover (1, 0, 2) && Goodreads (1, 4, 0) && View Manager (1, 5, 4) && Open With (1, 5, 11) && Goodreads Sync (1, 13, 4)
Traceback (most recent call last):
File "site-packages\calibre\gui2\dialogs\choose_library.py", line 192, in accept
File "site-packages\calibre\gui2\dialogs\choose_library.py", line 133, in perform_action
File "site-packages\calibre\gui2\actions\choose_library.py", line 625, in choose_library_callback
File "site-packages\calibre\gui2\ui.py", line 759, in library_moved
File "calibre_plugins.open_with.action", line 58, in library_changed
File "calibre_plugins.open_with.action", line 76, in rebuild_menus
RuntimeError: wrapped C/C++ object of type QAction has been deleted
dgparryuk is offline   Reply With Quote
Old 01-31-2020, 05:53 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try running with no plugins, at command line: calibre --ignore-plugins

BR
BetterRed is offline   Reply With Quote
Advert
Old 01-31-2020, 08:35 PM   #3
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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's an error in the open with plugin. I sggest uninstalling it. calibre anyway has builtin open with functionality.
kovidgoyal is offline   Reply With Quote
Old 01-31-2020, 10:43 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by kovidgoyal View Post
That's an error in the open with plugin. I sggest uninstalling it. calibre anyway has builtin open with functionality.
The plugin does a lot more as it has a menu of options for opening the books with appropriate parameters passed to the executable.

I'm also not able to reproduce the problem here with various versions of calibre. The code in question is:

Code:
        for action in self.menu_actions:
            self.gui.keyboard.unregister_shortcut(action.calibre_shortcut_unique_name)
            # starting in calibre 2.10.0, actions are registers at
            # the top gui level for OSX' benefit.
            if calibre_version >= (2,10,0):
                self.gui.removeAction(action)
"action" is a "QAction". The lines above are fairly common thing in the plugins. Which might just means we copied from a common source and it isn't really needed. But, I can see it in several places in calibre.

The OP has three other plugins installed that use the above. And they should be called when the library changes. Is this something we shouldn't be doing then?
davidfor is offline   Reply With Quote
Old 01-31-2020, 11:01 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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What's that code supposed to be doing?? Why does open with need to rebuild menus on library change? A minimal change to avoid the exception would be to add

Code:
try:
    from PyQt5 import sip
except ImportError:
    import sip
if sip.isdeleted(action):
   continue
kovidgoyal is offline   Reply With Quote
Advert
Old 02-01-2020, 12:20 AM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by kovidgoyal View Post
What's that code supposed to be doing?? Why does open with need to rebuild menus on library change?
Looking at the code, it doesn't need to. I have made a change to the plugin to not do it and asked @BR to updated it.

I'll have to look at the other plugins that do this. Some might be using the library specific options to build the menu.
Quote:
A minimal change to avoid the exception would be to add

Code:
try:
    from PyQt5 import sip
except ImportError:
    import sip
if sip.isdeleted(action):
   continue
I'll keep that in mind. But, my plan was just to wrap a try block around it and ignore the exception.

@dgparryuk: The updates should be available later. When calibre announces it, install it and it should fix things.
davidfor is offline   Reply With Quote
Old 02-01-2020, 03:00 AM   #7
dgparryuk
Enthusiast
dgparryuk began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Dec 2013
Device: Kobo Glo
amazing, will check later on and update and will pop back and let you all know :-)
dgparryuk is offline   Reply With Quote
Old 02-01-2020, 04:41 AM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
New Open With should be available now

BR
BetterRed is offline   Reply With Quote
Old 02-01-2020, 06:45 AM   #9
dgparryuk
Enthusiast
dgparryuk began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Dec 2013
Device: Kobo Glo
and that's fixed it :-)

cheers all :-)
dgparryuk is offline   Reply With Quote
Old 02-01-2020, 07:59 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,411
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dgparryuk View Post
and that's fixed it :-)

cheers all :-)
To make sure all is working, you should update from 4.8 to 4.9.1.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RuntimeError: Failed to load ImageMagick chris1412 Calibre 2 07-14-2012 04:58 AM
RuntimeError: maximum recursion depth exceeded while calling a Python object suecsi Calibre 6 01-24-2011 11:53 PM
wrapped text around an image Ambar ePub 2 07-05-2010 08:55 AM
Calibre RuntimeError on Ubuntu 8.04 Server alexbt Calibre 3 10-13-2009 04:26 AM


All times are GMT -4. The time now is 03:58 PM.


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