Hi,
For some reason, I am unable to register for the bug tracker, so I am posting a bug report here.
The following deterministic sequence of interactions leads QCad (V3.32.2, Ubuntu 24.10) crashing with a segfault.
Since the sequence is rather involved, I’ve recorded a video: https://youtu.be/ctNVi538Bdg
- Select Ordinate (X/Y)
- Click the canvas
- Click New
- Select X/Y (from points)
- Click the canvas
- Select Vertical
- Select the first canvas (“Untitled 1”)
- Click the canvas
- Click the canvas at a different location
- Select intersection manual
- Select free
- Click the canvas
- Select Anti alias
- Select the second canvas (“Untitled 2”)
- Click the canvas
- Click the canvas at a different location
- Select “Reset/Idle”
18 Click the canvas - Click print preview
QCad then crashes with the following backtrace:
Thread 1 “qcad-bin” received signal SIGSEGV, Segmentation fault.
0x00007ffff3e1696f in REcmaAction::getDocumentInterface (
context=0x7fff42800198, engine=0x555559164100)
at generated/REcmaAction.cpp:1033
1033 self->getDocumentInterface();
(gdb) bt
#0 0x00007ffff3e1696f in REcmaAction::getDocumentInterface
(context=0x7fff42800198, engine=0x555559164100)
at generated/REcmaAction.cpp:1033
#1 0x00007fffeefdccc3 in QScript::FunctionWrapper::proxyCall(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) ()
at /home/guifuzz/Qt5.13.2/5.13.2/gcc_64/lib/libQt5Script.so.5
#2 0x00007fffeeef8ac8 in QTJSC::NativeFuncWrapper::operator()(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) const ()
at /home/guifuzz/Qt5.13.2/5.13.2/gcc_64/lib/libQt5Script.so.5
#3 0x00007fffeeed337b in cti_op_call_NotJSFunction ()
at /home/guifuzz/Qt5.13.2/5.13.2/gcc_64/lib/libQt5Script.so.5
#4 0x00007fff4c237a4b in ??? ()
#5 0x0000000000000000 in ??? ()