running viewrendered hard crashes leo

136 views
Skip to first unread message

lewis

unread,
Jul 19, 2016, 6:07:00 AM7/19/16
to leo-editor
Please be careful running the latest commit aa6d703a83c1 as you can hard crash leo with alt-x vr

Here is the console logfile after the rapid close:
** isPython3: True
Leo 5.4-devel, build 20160412153848, Tue Apr 12 15:38:48 CDT 2016
Git repo info: branch = master, commit = aa6d703a83c1
Python 3.5.2, PyQt version 5.6.0
Windows 7 AMD64 (build 6.1.7601) SP1
Could not find QtWebEngineProcess.exe


I know this is related to the QtWebEngine issues but the crash has only occurred with the latest commit.

Regards
Lewis


lewis

unread,
Jul 19, 2016, 6:19:09 AM7/19/16
to leo-editor
Running any Help command also crashes leo.

Regards
Lewis

Terry Brown

unread,
Jul 19, 2016, 9:29:20 AM7/19/16
to leo-e...@googlegroups.com
On Tue, 19 Jul 2016 03:07:00 -0700 (PDT)
lewis <lewi...@operamail.com> wrote:

> Please be careful running the latest commit *aa6d703a83c1* as you can
> hard crash leo with alt-x vr

Hi Lewis,

Would you mind checking that this definitely doesn't happen in 9d28e6c?
I made aa6d703 but am not seeing the crash. It did change vr3, but not
in ways that should hard crash.

Thanks, Terry

> Here is the console logfile after the rapid close:
>
> *** isPython3: TrueLeo 5.4-devel, build 20160412153848, Tue Apr 12
> 15:38:48 CDT 2016Git repo info: branch = master, commit =
> aa6d703a83c1Python 3.5.2, PyQt version 5.6.0Windows 7 AMD64 (build
> 6.1.7601) SP1Could not find QtWebEngineProcess.exe*
>
> I know this is related to the QtWebEngine issues
> <https://groups.google.com/forum/?fromgroups#!topic/leo-editor/J_wVIzqQzXg>

lewis

unread,
Jul 19, 2016, 10:05:33 AM7/19/16
to leo-editor
Hi Terry,

I need your help with downloading commit 9d28e6c. I found it at https://github.com/leo-editor/leo-editor/commits/master but how do I pull it using git?
I normally just run 'git pull' for the most recent.

Thanks
Lewis

lewis

unread,
Jul 19, 2016, 10:16:38 AM7/19/16
to leo-editor
I'll try downloading the zip file of 9d28e6c.

Lewis

lewis

unread,
Jul 19, 2016, 10:35:13 AM7/19/16
to leo-editor
Downloaded the zip file of 9d28e6c zip file, unzipped and copied it to my usual leo folder. But when I run Leo the log says
Leo Log Window

Leo 5.4-devel, build 20160412153848, Tue Apr 12 15:38:48 CDT 2016
Not running from a git repo

I expected it to be 9d28e6c so I don't think that is helpful to you.

Regards
Lewis

Jacob Peck

unread,
Jul 19, 2016, 10:38:57 AM7/19/16
to leo-e...@googlegroups.com
From your git repo directory, you can do:

git checkout 9d28e6c

That will revert your files to the state at commit 9d28e6c.  To switch back to master (current), do:

git checkout master

-->Jake
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Terry Brown

unread,
Jul 19, 2016, 10:42:32 AM7/19/16
to leo-e...@googlegroups.com
On Tue, 19 Jul 2016 07:35:13 -0700 (PDT)
lewis <lewi...@operamail.com> wrote:

> Downloaded the zip file of 9d28e6c zip file, unzipped and copied it
> to my usual leo folder. But when I run Leo the log says
>
> *Leo Log WindowLeo 5.4-devel, build 20160412153848, Tue Apr 12
> 15:38:48 CDT 2016Not running from a git repo*
>
> I expected it to be 9d28e6c so I don't think that is helpful to you.

Jacob's approach works, but the .zip file you downloaded would work
too, it just doesn't know its commit ID when you download it that way.

Cheers -Terry

lewis

unread,
Jul 19, 2016, 6:13:02 PM7/19/16
to leo-editor
Many thanks to Jacob for the tip on git checkout.

The crash also occurs with commits 9d28e6c (confirmed with zip and git repo) and 582fe79. 
I had to go back to 250ad23 to eliminate the crash behaviour.

Regards
Lewis


On Wednesday, 20 July 2016 00:42:32 UTC+10, Terry Brown wrote:
On Tue, 19 Jul 2016 07:35:13 -0700 (PDT)

Terry Brown

unread,
Jul 19, 2016, 10:06:16 PM7/19/16
to leo-e...@googlegroups.com
On Tue, 19 Jul 2016 03:07:00 -0700 (PDT)
lewis <lewi...@operamail.com> wrote:

> Please be careful running the latest commit *aa6d703a83c1* as you can
> hard crash leo with alt-x vr
>
> Here is the console logfile after the rapid close:
>
> *** isPython3: TrueLeo 5.4-devel, build 20160412153848, Tue Apr 12
> 15:38:48 CDT 2016Git repo info: branch = master, commit =
> aa6d703a83c1Python 3.5.2, PyQt version 5.6.0Windows 7 AMD64 (build
> 6.1.7601) SP1Could not find QtWebEngineProcess.exe*

I wonder if this would fix it:

https://riverbankcomputing.com/pipermail/pyqt/2016-April/037400.html

"""
The QtWebEngineProcess.exe can be
found in C:\Qt\Qt5.6.0\5.6\msvc2013_64\bin

...

You can try setting the QTWEBENGINEPROCESS_PATH environment variable
to the full pathname of the .exe.
"""

Cheers -Terry

> I know this is related to the QtWebEngine issues
> <https://groups.google.com/forum/?fromgroups#!topic/leo-editor/J_wVIzqQzXg>

Edward K. Ream

unread,
Jul 20, 2016, 10:23:18 AM7/20/16
to leo-editor
On Tue, Jul 19, 2016 at 5:13 PM, lewis <lewi...@operamail.com> wrote:
Many thanks to Jacob for the tip on git checkout.

The crash also occurs with commits 9d28e6c (confirmed with zip and git repo) and 582fe79. 
I had to go back to 250ad23 to eliminate the crash behaviour.

​It looks like the culprit is 582fe79: Attempt to support pyqt 5.6 so that viewrendered3 & bigdash plugins will load.

I have been waiting for a PR based on this post from Reinhard, but that hasn't happened, so I'll just up the suggested code myself.

Edward

Edward K. Ream

unread,
Jul 20, 2016, 10:43:23 AM7/20/16
to leo-editor
On Wed, Jul 20, 2016 at 9:23 AM, Edward K. Ream <edre...@gmail.com> wrote:

> It looks like the culprit is 582fe79: Attempt to support pyqt 5.6 so that viewrendered3 & bigdash plugins will load.

Rev 329acf adds Reinhard's code and fixes pyflakes warnings about
undefined references to 'pos'. Let me know if it works any better.

pyflakes also issues these complaints:

viewrendered3.py:1663: local variable 'pc' is assigned to but never used
viewrendered3.py:1664: local variable 'mf' is assigned to but never used
viewrendered3.py:1946: local variable 'pc' is assigned to but never used
viewrendered3.py:1947: local variable 'mf' is assigned to but never used

I'm not sure that these "unnecessary" statements can be removed--there
may be side effects. Probably not, but let's deal with these warnings
later, after everything else works.

Edward

lewis

unread,
Jul 20, 2016, 8:46:06 PM7/20/16
to leo-editor
Running 329acf these log messages don't appear at startup:
 loadOnePlugin: can not load enabled plugin: leo.plugins.viewrendered3
 loadOnePlugin: can not load enabled plugin: leo.plugins.bigdash
So the plugins appear to be loading.

However leo still crashes if I run alt-x vr

Regards
Lewis

lewis

unread,
Jul 27, 2016, 9:35:34 AM7/27/16
to leo-editor
PyQt5 v5.7 has been released and instructions for installation are at http://pyqt.sourceforge.net/Docs/PyQt5/installation.html
It seems .exe file are no longer provided. PyQt5 now uses wheel files which apparently are a new standard of python distribution. The good news is the installation worked :)

From a console window:

C:\Python35
pip3 install pyqt5
[snip]
Installing collected packages: sip, pyqt5
Successfully installed pyqt5-5.7 sip-4.18.1

C:\Python35>


And here is my leo log file:
Leo Log Window
Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016  2:31:00 PM
Git repo info: branch = master, commit = e7ceef8c4b7a
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.10586) SP0


Next, I'll test out the viewrendered plugin.

Regards
Lewis

lewis

unread,
Jul 27, 2016, 10:04:07 AM7/27/16
to leo-editor

Next, I'll test out the viewrendered plugin.


With pyQt5 v5.7 installed, Leo stays running after alt-x vr


Leo Log Window
Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016  2:31:00 PM
Git repo info: branch = master, commit = e7ceef8c4b7a
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.10586) SP0
reading: N:\leo\aTest1.leo
read outline in 0.04 seconds
hook failed: idle, <bound method ViewRenderedController3.update of <leo.plugins.viewrendered3.ViewRenderedController3 object at 0x000001F639B81B88>>, <no module>
Traceback (most recent call last):
  File "N:\git\leo-editor\leo\core\leoPlugins.py", line 326, in callTagHandler
    result = handler(tag, keywords)
  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 695, in update
    f(s, keywords)
  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 986, in update_rst
    w = pc.html_class(pc)
  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1266, in __init__
    self.view = self.init_view()
  File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1274, in init_view
    mf = view.page().mainFrame()
AttributeError: 'QWebEnginePage' object has no attribute 'mainFrame'
[end]

Regards
Lewis
Reply all
Reply to author
Forward
0 new messages