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

segementation fault #68

Open
GlennWSo opened this issue Feb 2, 2023 · 5 comments
Open

segementation fault #68

GlennWSo opened this issue Feb 2, 2023 · 5 comments

Comments

@GlennWSo
Copy link
Contributor

GlennWSo commented Feb 2, 2023

When running madcad.show() i sometimes get segmentation errors.
It usally happens when i run many show() after each other to inspect the results of multiple test.

Current thread 0x00007f7ed0e4e740 (most recent call first):
File "/home/gws/projects/pymadcad/.venv/lib/python3.10/site-packages/moderngl/vertex_array.py", line 223 in render
File "/home/gws/projects/pymadcad/madcad/displays.py", line 428 in render
File "/home/gws/projects/pymadcad/madcad/rendering.py", line 562 in render
File "/home/gws/projects/pymadcad/madcad/rendering.py", line 772 in render
File "/home/gws/projects/pymadcad/madcad/rendering.py", line 1056 in render
File "/home/gws/projects/pymadcad/madcad/rendering.py", line 1162 in paintGL
File "/home/gws/projects/pymadcad/madcad/rendering.py", line 1165 in resizeEvent
File "/home/gws/projects/pymadcad/madcad/rendering.py", line 109 in show
....

@GlennWSo
Copy link
Contributor Author

GlennWSo commented Feb 2, 2023

my console log
segfault.txt

@GlennWSo
Copy link
Contributor Author

GlennWSo commented Feb 2, 2023

segfault tag
i saved the state my current changes i had when i got the error.

@jimy-byerley
Copy link
Owner

Did you tried to run it in gdb to get how it crashed on the C side ?

$ sudo apt install python3-dbg
$ gdb python
gdb)  run -m pytest tests/test_draft.py::test_extrude

@GlennWSo
Copy link
Contributor Author

GlennWSo commented Feb 3, 2023

No, I have not. I'll give it a try!

@jimy-byerley
Copy link
Owner

Hello @GlennWSo, any news on this ? did you experienced similar crashes since ?

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