Crash in vr3

24 views
Skip to first unread message

Edward K. Ream

unread,
Mar 25, 2020, 7:02:17 AM3/25/20
to leo-editor
After starting vr3, I get the following when changing nodes, even after vr3-hide:

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

Traceback (most recent call last):

 
File "c:\leo.repo\leo-editor\leo\core\leoPlugins.py", line 322, in callTagHandler
    result
= handler(tag, keywords)

 
File "c:\leo.repo\leo-editor\leo\plugins\viewrendered3.py", line 1345, in update
   
self.show_toolbar()

 
File "c:\leo.repo\leo-editor\leo\plugins\viewrendered3.py", line 2714, in show_toolbar
   
if _toolbar and _toolbar.isHidden():

Edward

Thomas Passin

unread,
Mar 25, 2020, 10:34:03 AM3/25/20
to leo-editor
I get that too, sometimes, and I don't know why yet.  On my system(s), VR3 keeps working even after that, though the same thing sometimes gets raised over and over, after it happens once.

On my copy, I have changed the position of a try statement to catch this and at least be a little calmer about printing an error message.

The new code reads:

def show_toolbar(self):
    try:
        _toolbar = self.vr3_toolbar
    except RuntimeError as e:
        g.es(f'show_toolbar(): {type(e)}: {e}')
        return

    try:
        if _toolbar and _toolbar.isHidden():
            _toolbar.setVisible(True)
    except RuntimeError as e:
        g.es('show_toolbar(): %s: %s' % (type(e), e))

As I say, this does not *cure* the problem, it just calms things down a little.

Edward K. Ream

unread,
Mar 25, 2020, 11:47:00 AM3/25/20
to leo-editor
On Wed, Mar 25, 2020 at 9:34 AM Thomas Passin <tbp1...@gmail.com> wrote:
I get that too, sometimes, and I don't know why yet.  On my system(s), VR3 keeps working even after that, though the same thing sometimes gets raised over and over, after it happens once.

On my copy, I have changed the position of a try statement to catch this and at least be a little calmer about printing an error message.

Ok. Thanks.

Edward
Reply all
Reply to author
Forward
0 new messages