pymadcad icon indicating copy to clipboard operation
pymadcad copied to clipboard

segementation fault

Open GlennWSo opened this issue 2 years ago • 5 comments

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 avatar Feb 02 '23 11:02 GlennWSo

my console log segfault.txt

GlennWSo avatar Feb 02 '23 12:02 GlennWSo

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

GlennWSo avatar Feb 02 '23 12:02 GlennWSo

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

jimy-byerley avatar Feb 03 '23 08:02 jimy-byerley

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

GlennWSo avatar Feb 03 '23 16:02 GlennWSo

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

jimy-byerley avatar Oct 13 '23 18:10 jimy-byerley