jimy-byerley / pymadcad

Simple yet powerful CAD (Computer Aided Design) library, written with Python.
https://madcad.netlify.app/
GNU Lesser General Public License v3.0
205 stars 15 forks source link

segementation fault #68

Open GlennWSo opened 1 year ago

GlennWSo commented 1 year ago

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 commented 1 year ago

my console log segfault.txt

GlennWSo commented 1 year ago

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

jimy-byerley commented 1 year ago

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 commented 1 year ago

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

jimy-byerley commented 9 months ago

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