Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion `angle_max >= angle_min' failed while loading a profile file #2

Open
FooFooDamon opened this issue May 7, 2019 · 2 comments

Comments

@FooFooDamon
Copy link

Platform

Ubuntu 18.04 LTS

How to install

sudo apt-get install libgtk-3-dev freeglut3-dev libgstreamer-plugins-base1.0-dev libwebkitgtk-3.0-dev

cd /path/to/snakerunner && time sudo python3 setup.py install

Some logs that may be helpful:

------------ BUILD FINISHED ------------
To use wxPython from the build folder (without installing):
 - Set your PYTHONPATH variable to /tmp/easy_install-6kg7pyvd/wxPython-4.0.4.
 - You may also need to set your (DY)LD_LIBRARY_PATH to /tmp/easy_install-6kg7pyvd/wxPython-4.0.4/build/wxbld/gtk3/lib,
   or wherever the wxWidgets libs have been installed.

Finished command: build_py (23m27.365s)
Finished command: build (30m1.306s)
Done!
no previously-included directories found matching 'docs/sphinx/build'
warning: no previously-included files matching '.git' found under directory 'wx'
warning: no previously-included files matching '*.pyc' found under directory 'wx'
warning: no previously-included files matching '__pycache__' found under directory 'wx'
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_webview-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_core-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_richtext-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_baseu_xml-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_propgrid-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_gl-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_gl-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_html-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_stc-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_ribbon-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_adv-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_baseu_xml-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_xrc-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_aui-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_aui-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_propgrid-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_media-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_richtext-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_core-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_stc-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_baseu_net-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_baseu_net-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_adv-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_html-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_webview-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_media-3.0.so
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_xrc-3.0.so.0
objdump -p build/lib.linux-x86_64-3.6/wx/libwx_gtk3u_ribbon-3.0.so
creating /usr/local/lib/python3.6/dist-packages/wxPython-4.0.4-py3.6-linux-x86_64.egg
Extracting wxPython-4.0.4-py3.6-linux-x86_64.egg to /usr/local/lib/python3.6/dist-packages
Adding wxPython 4.0.4 to easy-install.pth file
Installing helpviewer script to /usr/local/bin
Installing img2png script to /usr/local/bin
Installing img2py script to /usr/local/bin
Installing img2xpm script to /usr/local/bin
Installing pycrust script to /usr/local/bin
Installing pyshell script to /usr/local/bin
Installing pyslices script to /usr/local/bin
Installing pyslicesshell script to /usr/local/bin
Installing pywxrc script to /usr/local/bin
Installing wxdemo script to /usr/local/bin
Installing wxdocs script to /usr/local/bin
Installing wxget script to /usr/local/bin

Installed /usr/local/lib/python3.6/dist-packages/wxPython-4.0.4-py3.6-linux-x86_64.egg
Searching for Pillow==5.1.0
Best match: Pillow 5.1.0
Adding Pillow 5.1.0 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for six==1.11.0
Best match: six 1.11.0
Adding six 1.11.0 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Finished processing dependencies for RunSnakeRun==2.0.4

real	33m55.214s
user	107m26.231s
sys	5m56.306s

How to run

sudo runsnake

And then loaded a profile file by clicking File -> Open Profile, but runsnake crashed immediately and I got the error as below:

python3: ../../../../src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed.

My questions

Is it because "There are some problems on Linux due to some gtk3 library issues"? Any way to solve this problem?

Thanks!

@fbuccioni
Copy link

any?

@FooFooDamon
Copy link
Author

any?

Thanks for reply.

I did a simple test again as below:

python3 -m cProfile -s cumulative -o lots_of_prints.profile.bin lots_of_prints.py

Where lots_of_prints.py was like:

#!/usr/bin/env python3
#-*-coding: utf-8-*-

for i in range(1000000):
    print(i)

After the profile result lots_of_prints.profile.bin was generated, I used runsnake to open it. This time runsnake did not crash.

The previous test was similar, except that the Python code was complicated and used some heavy resources like GPU (Sorry that I can not show the code and the core file here, since they're stuff of my company).

I compared this test with the previous one, and found the differences:

/ Previous test This test
Running environment of the profiled program In a docker container In the physical machine where runsnake is installed
Program Complicated, with lots of 3rd-party dependencies, using heavy resources like GPU Simple, just built-in modules required
Running environment of runsnake In the physical machine In the physical machine
Did runsnake crash? Yes No

Hopes that these information will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants