← All bug reports

FS#2670Crash on exit with Qt 6.9 [Qt6]

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Low
Priority
High
Reported version
3.32.2
Operating system
macOS (All)
Reported
2025-05-15 by andrew
Closed
2025-05-15 by andrew

Quitting QCAD crashes about 20%-25% of the time when compiled against Qt 6.9:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   QtQml                         	       0x1017ccd2a QV4::CompiledData::CompilationUnit::~CompilationUnit() + 346
1   QtQml                         	       0x10188df46 QV4::ExecutableCompilationUnit::~ExecutableCompilationUnit() + 54
2   QtQml                         	       0x1018811fc 0x101775000 + 1098236
3   QtQml                         	       0x10186c529 QV4::ExecutionEngine::~ExecutionEngine() + 537
4   QtQml                         	       0x101836a19 QJSEngine::~QJSEngine() + 89
5   libsystem_c.dylib             	    0x7ff812ec1ea2 __cxa_finalize_ranges + 408
6   libsystem_c.dylib             	    0x7ff812ec1cbd exit + 35
7   AppKit                        	    0x7ff816ced6a3 -[NSApplication terminate:] + 2489
8   AppKit                        	    0x7ff816e4a8c0 -[NSApplication _terminateFromSender:askIfShouldTerminate:saveWindows:] + 129
9   AppKit                        	    0x7ff816ced24d -[NSApplication terminate:] + 1379
10  libqcocoa.dylib               	       0x10169b815 0x10167a000 + 137237
11  libqcadgui.dylib              	       0x100f353a5 RMainWindowQt::closeEvent(QCloseEvent*) + 885
12  QtWidgets                     	       0x102991769 QWidget::event(QEvent*) + 1193
13  QtWidgets                     	       0x102ae568c QMainWindow::event(QEvent*) + 828
14  libqcadgui.dylib              	       0x100f36a28 RMainWindowQt::event(QEvent*) + 1640

Comments (1)

andrew 2025-05-15

Caused by static instance of QJSEngine in RMath for math expression evaluation.