crash pythonscad

0 views
Skip to first unread message

Matthieu Hendriks

unread,
Feb 24, 2026, 2:47:13 PM (17 hours ago) Feb 24
to PythonSCAD
I downloaded the most recent version from pythonscad and compiled it (no changes to the source code).

Anybody a cue where to look?  I was woking in a normal design and suddenly it starts crashing.


#0  0x000055555761c3a0 in PyFloat_Type ()
#1  0x00007ffff7326b5b in _PyObject_IS_GC (obj=0x7fffc6eeb8d0) at ../Include/internal/pycore_object.h:332
#2  visit_decref (op=0x7fffc6eeb8d0, parent=<optimized out>) at ../Modules/gcmodule.c:465
#3  0x00007ffff71f5678 in tupletraverse (o=0x7fffc70bfa80, visit=0x7ffff7326b30 <visit_decref>, arg=0x7fffc70bfa80)
at ../Objects/tupleobject.c:608
#4  0x00007ffff732777c in subtract_refs (containers=0x7ffff7845dd0 <_PyRuntime+76528>) at ../Modules/gcmodule.c:491
#5  deduce_unreachable (unreachable=0x7fffffffb700, base=0x7ffff7845dd0 <_PyRuntime+76528>) at ../Modules/gcmodule.c:1116
#6  gc_collect_main (tstate=tstate@entry=0x7ffff78a3668 <_PyRuntime+459656>, generation=generation@entry=0,
n_collected=n_collected@entry=0x7fffffffb7e0, n_uncollectable=n_uncollectable@entry=0x7fffffffb7e8, nofail=nofail@entry=0)
at ../Modules/gcmodule.c:1242
#7  0x00007ffff7329474 in gc_collect_with_callback (generation=0, tstate=0x7ffff78a3668 <_PyRuntime+459656>)
at ../Modules/gcmodule.c:1426
#8  gc_collect_generations (tstate=0x7ffff78a3668 <_PyRuntime+459656>) at ../Modules/gcmodule.c:1481
#9  _Py_RunGC (tstate=tstate@entry=0x7ffff78a3668 <_PyRuntime+459656>) at ../Modules/gcmodule.c:2295
#10 0x00007ffff72cf62f in _Py_HandlePending (tstate=tstate@entry=0x7ffff78a3668 <_PyRuntime+459656>) at ../Python/ceval_gil.c:1045
#11 0x00007ffff711d8e4 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0x7ffff78a3668 <_PyRuntime+459656>, frame=<optimized out>,
frame@entry=0x7fffe39bf020, throwflag=throwflag@entry=0) at ../Python/ceval.c:834
#12 0x00007ffff72a091f in _PyEval_EvalFrame (throwflag=0, frame=0x7fffe39bf020, tstate=0x7ffff78a3668 <_PyRuntime+459656>)
at ../Include/internal/pycore_ceval.h:89
#13 _PyEval_Vector (args=0x0, argcount=0, kwnames=0x0, locals=0x7fffc8d93d00, func=0x7fffc7311800,
tstate=0x7ffff78a3668 <_PyRuntime+459656>) at ../Python/ceval.c:1683
#14 PyEval_EvalCode (co=co@entry=0x2de467ae100, globals=globals@entry=0x7fffc8d93d00, locals=locals@entry=0x7fffc8d93d00)
at ../Python/ceval.c:578
#15 0x00007ffff72fb228 in run_eval_code_obj (tstate=tstate@entry=0x7ffff78a3668 <_PyRuntime+459656>, co=co@entry=0x2de467ae100,
globals=globals@entry=0x7fffc8d93d00, locals=locals@entry=0x7fffc8d93d00) at ../Python/pythonrun.c:1722
#16 0x00007ffff72fb34c in run_mod (mod=mod@entry=0x2de47423c60, filename=filename@entry=0x7ffff7839140 <_PyRuntime+24160>,
globals=globals@entry=0x7fffc8d93d00, locals=locals@entry=0x7fffc8d93d00, flags=flags@entry=0x0, arena=arena@entry=0x7fffc8cb1830)
at ../Python/pythonrun.c:1743
#17 0x00007ffff72fe964 in PyRun_StringFlags (str=<optimized out>, start=<optimized out>, globals=0x7fffc8d93d00, locals=0x7fffc8d93d00,
flags=0x0) at ../Python/pythonrun.c:1618
#18 0x000055555665826d in evaluatePython(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) ()
#19 0x0000555555d65ffb in MainWindow::parseDocument(EditorInterface*) ()
--Type <RET> for more, q to quit, c to continue without paging--
#20 0x0000555555d667c7 in MainWindow::parseTopLevelDocument() ()
#21 0x0000555555d5e4d0 in MainWindow::compile(bool, bool) ()
#22 0x0000555555d66b7f in MainWindow::actionReloadRenderPreview() ()
#23 0x0000555555d6685e in MainWindow::checkAutoReload() ()
#24 0x0000555555db44e2 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (MainWindow::*)()>::call(void (MainWindow::*)(), MainWindow*, void**) ()
#25 0x0000555555daefb5 in void QtPrivate::FunctionPointer<void (MainWindow::*)()>::call<QtPrivate::List<>, void>(void (MainWindow::*)(), MainWindow*, void**) ()
#26 0x0000555555da6de3 in QtPrivate::QSlotObject<void (MainWindow::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#27 0x00007ffff4f12e16 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ffff4f1710d in QTimer::timeout(QTimer::QPrivateSignal) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ffff4f0624b in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007ffff5f6bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x0000555555de80d5 in OpenSCADApp::notify(QObject*, QEvent*) ()
#32 0x00007ffff4ed8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007ffff4f345ab in QTimerInfoList::activateTimers() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007ffff4f34f11 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007ffff796b585 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007ffff79ca977 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007ffff796aa23 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007ffff4f35279 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007ffff4ed6a7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007ffff4edf3e8 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x0000555555d4bb3c in gui(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::filesystem::__cxx11::path const&, int, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)
()
#42 0x0000555555627796 in openscad_main(int, char**) ()
#43 0x000055555561ecbc in main ()

Guenther Sohler

unread,
Feb 24, 2026, 4:04:22 PM (16 hours ago) Feb 24
to Matthieu Hendriks, PythonSCAD
Please share the python model you were testing
did you try to once:
make clean
make 

?


--
You received this message because you are subscribed to the Google Groups "PythonSCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonscad+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pythonscad/54acfd3f-a30a-467f-b8a3-98f2ae068128n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthieu Hendriks

unread,
3:35 AM (4 hours ago) 3:35 AM
to Guenther Sohler, PythonSCAD
I did :
make clean
make
no difference

sudo make clean
sudo make install

no (big) difference

I start pythonscad open the mecano.py file and it renders oke.
I click F5 / F6 => Crash

I start pythonscad again, opem mecano.py, redering went just fine but after clicking F6/F5 => crash

the mhlib.py is my standard library with my standard functions I use the most. 
With other models it looks oke. Rendering F5/F6 and so on

I've narrowed the issue down to the funtion: spread_on_plate(parts, spacing). If I remove the call to that function it's rendering fine. 

maybe it's a memory allocation problem. 

Op di 24 feb 2026 om 22:04 schreef Guenther Sohler <guenthe...@gmail.com>:
mecano.py
mhlib.py
Reply all
Reply to author
Forward
0 new messages