The "Remove Scene" feature has a critical issue under specific circumstances.
To reproduce this bug, follow these steps:
Create a new project
Add a new scene (2)
Remove the first scene (1). The application will crash.
Bug Trace:
" "[New LWP 5373]
[New LWP 5374] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007f36
9c115b57 in waitpid () from /lib64/libpthread.so.0 #0 0x00007f369c115b57 in waitpid () at /lib64/libpthread.so.0 #1 0x000000000043b4b1 in crashTrapper(int)
(sig=6) at tupcrashhandler.cpp:321 #2 0x00007f369b495130 in () at /lib64/libc.so.6 #3 0x00007f369b4950b0 in raise () at /lib64/libc.
so.6 #4 0x00007f369b496691 in abort () at /lib64/libc.so.6 #5 0x00007f369be14205 in __gnu_cxx::__verbose_terminate_handler() () at /usr/lib64/libstdc++.so.6
#6 0x00007f369be11ff6 in () at /usr/lib64/libstdc++.so.6 #7 0x00007f369be12041 in () at /usr/lib64/libstdc++.so.6 #8 0x00007f369be12283 in () at /us
r/lib64/libstdc++.so.6 #9 0x00007f369c63847f in qTerminate() () at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/lib/libQt5Core.so.5 #10 0x00007f369f9c9c64 in TupGr
aphicsScene::setCurrentScene(TupScene*) (this=0x7f368c007b20, pScene=0x0) at tupgraphicsscene.cpp:1214 #11 0x00007f36a175c51e in TupPaintArea::setCurrentScene(int)
(this=0x23e0e90, index=-1) at tuppaintarea.cpp:101 #12 0x00007f36a175f63e in TupPaintArea::sceneResponse(TupSceneResponse*) (this=0x23e0e90, event=0x3dadf40) at t
uppaintarea.cpp:512 #13 0x00007f369fefb886 in TupAbstractProjectResponseHandler::handleResponse(TupProjectResponse*) (this=0x23e0f88, response=0x3dadf40) at tupabs
tractprojectresponsehandler.cpp:84 #14 0x00007f36a1773692 in TupDocumentView::handleProjectResponse(TupProjectResponse*) (this=0x23eaa00, response=0x3dadf40) at tu
pdocumentview.cpp:1117 #15 0x00007f36a17b3cda in TupDocumentView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x23eaa00, _c=QMetaObject::Invok
eMetaMethod, _id=65, _a=0x7ffc7f8e6b60) at .moc/moc_tupdocumentview.cpp:440 #16 0x00007f369c851989 in QMetaObject::activate(QObject*, int, int, void**) () at /home
/xtingray/Qt5.12.2/5.12.2/gcc_64/lib/libQt5Core.so.5 #17 0x00007f369ff19df7 in TupProjectManager::responsed(TupProjectResponse*) (this=0x19750f0, _t1=0x3dadf40) at
.moc/moc_tupprojectmanager.cpp:182 #18 0x00007f369fecbc6c in TupProjectManager::emitResponse(TupProjectResponse*) (this=0x19750f0, response=0x3dadf40) at tupprojectmanager.cpp:554 #19 0x00007f369ff19b95 in TupProjectManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x19750f0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7ffc7f8e6d40) at .moc/moc_tupprojectmanager.cpp:114 #20 0x00007f369c851989 in QMetaObject::activate(QObject*, int, int, void**) () at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/lib/libQt5Core.so.5 #21 0x00007f369ff1ab99 in TupCommandExecutor::responsed(TupProjectResponse*) (this=0x1975540, _t1=0x3dadf40) at .moc/moc_tupcommandexecutor.cpp:133 #22 0x00007f369fedbbab in TupCommandExecutor::removeScene(TupSceneResponse*) (this=0x1975540, response=0x3dadf40) at tupcommandexecutor.cpp:107 #23 0x00007f369fecdff9 in TupProjectCommand::sceneCommand() (this=0x7f368c018210) at tupprojectcommand.cpp:559 #24 0x00007f369fecd54a in TupProjectCommand::redo() (this=0x7f368c018210) at tupprojectcommand.cpp:272 #25 0x00007f369e3063bb in QUndoStack::push(QUndoCommand*) () at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/lib/libQt5Widgets.so.5 #26 0x00007f369fecb486 in TupProjectManager::createCommand(TupProjectRequest const*, bool) (this=0x19750f0, request=0x7ffc7f8e76d0, addToStack=true) at tupprojectmanager.cpp:429 #27 0x00007f369ff19b73 in TupProjectManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0
The "Remove Scene" feature has a critical issue under specific circumstances. To reproduce this bug, follow these steps:
Bug Trace:
" "[New LWP 5373]
[New LWP 5374] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007f36 9c115b57 in waitpid () from /lib64/libpthread.so.0 #0 0x00007f369c115b57 in waitpid () at /lib64/libpthread.so.0 #1 0x000000000043b4b1 in crashTrapper(int) (sig=6) at tupcrashhandler.cpp:321 #2 0x00007f369b495130 in