This issue is related to the "New Project" method implementation.
To reproduce this bug follow these steps:
Create a new project
Draw something on the canvas
Create a new project
On the closing dialog, pick at the option "Cancel". The application will crash.
Bug Trace:
" "[New LWP 5086]
[New LWP 5087] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007fd3
c89fbb57 in waitpid () from /lib64/libpthread.so.0 #0 0x00007fd3c89fbb57 in waitpid () at /lib64/libpthread.so.0 #1 0x000000000043b4b1 in crashTrapper(int)
(sig=11) at tupcrashhandler.cpp:321 #2 0x00007fd3c89fc270 in () at /lib64/libpthread.so.0 #3 0x0000000000428277 in QListData::size()
const (this=0x3ab7b18) at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/include/QtCore/qlist.h:113 #4 0x00007fd3cc79d0e6 in QList<TupGraphicObject*>::count() const (this=
0x3ab7b18) at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/include/QtCore/qlist.h:345 #5 0x00007fd3cc79bd6c in TupFrame::graphicsCount() (this=0x3ab7ad8) at tupframe.cpp:
1522 #6 0x00007fd3cc79bdf1 in TupFrame::isEmpty() (this=0x3ab7ad8) at tupframe.cpp:1542 #7 0x00007fd3cc7f4f56 in TupBackground::dynamicBgIsEmpty() (this=0x1
47b8a0) at tupbackground.cpp:134 #8 0x00007fd3cc2aa5ac in TupGraphicsScene::drawSceneBackground(int) (this=0x7fd3b8008360, photogram=0) at tupgraphicsscene.cpp:324
#9 0x00007fd3cc2a9e84 in TupGraphicsScene::drawPhotogram(int, bool) (this=0x7fd3b8008360, photogram=0, drawContext=true) at tupgraphicsscene.cpp:199 #10 0x
00007fd3ce043cda in TupPaintArea::frameResponse(TupFrameResponse*) (this=0x21fb3c0, response=0x3ade860) at tuppaintarea.cpp:343 #11 0x00007fd3cc7e19f2 in TupAbstra
ctProjectResponseHandler::handleResponse(TupProjectResponse*) (this=0x21fb4b8, response=0x3ade860) at tupabstractprojectresponsehandler.cpp:74 #12 0x00007fd3ce0586
fa in TupDocumentView::handleProjectResponse(TupProjectResponse*) (this=0x1f0d050, response=0x3ade860) at tupdocumentview.cpp:1117 #13 0x00007fd3ce098d42 in TupDoc
umentView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x1f0d050, _c=QMetaObject::InvokeMetaMethod, _id=65, _a=0x7fff34fa0740) at .moc/moc_tupdocumen
tview.cpp:440 #14 0x00007fd3c9137989 in QMetaObject::activate(QObject*, int, int, void**) () at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/lib/libQt5Core.so.5 #1
5 0x00007fd3cc7fffa9 in TupProjectManager::responsed(TupProjectResponse*) (this=0x14b2ae0, _t1=0x3ade860) at .moc/moc_tupprojectmanager.cpp:182 #16 0x00007fd3cc7b1
3a3 in TupProjectManager::handleLocalRequest(TupProjectRequest const*) (this=0x14b2ae0, request=0x7fff34fa0a50) at tupprojectmanager.cpp:401 #17 0x00007fd3cc7ffce8
in TupProjectManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x14b2ae0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff34fa0a20) at .moc/moc
_tupprojectmanager.cpp:112 #18 0x00007fd3c9137989 in QMetaObject::activate(QObject*, int, int, void**) () at /home/xtingray/Qt5.12.2/5.12.2/gcc_64/lib/libQt5Core.s
o.5 #19 0x00007fd3cc2b6c7f in TupModuleWidgetBase::localRequestTriggered(TupProjectRequest const*) (this=0x21b36c0, _t1=0x7fff34fa0a50) at .moc/moc_tupmodulewidget
base.cpp:191 #20 0x00007fd3cd53af21 in TupExposureSheet::selectFrame(int, int) (this=0x21b36c0, layerIndex=0, frameIndex=0) at tupexposuresheet.cpp:577 #21
0x00007fd3cd54d80f in TupExposureSheet::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x21b36c0, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fff34f
a0d50) at .moc/moc_tupexposuresheet.cpp:172 #22 0x00007fd3c9137989 in QMetaObject::activate(QObject*, int, int, void**) () at /home/xtingray/Qt5.12.2/5.12.2/gcc_64
This issue is related to the "New Project" method implementation.
To reproduce this bug follow these steps:
Bug Trace: " "[New LWP 5086]
[New LWP 5087] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007fd3 c89fbb57 in waitpid () from /lib64/libpthread.so.0 #0 0x00007fd3c89fbb57 in waitpid () at /lib64/libpthread.so.0 #1 0x000000000043b4b1 in crashTrapper(int) (sig=11) at tupcrashhandler.cpp:321 #2 0x00007fd3c89fc270 in