Bug 362783 - Crash after removing a component diagramm
Summary: Crash after removing a component diagramm
Status: RESOLVED DUPLICATE of bug 358286
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-05-07 15:30 UTC by Artem Goncharov
Modified: 2016-05-12 20:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.18.2 (KDE Applications 15.12.2)


Attachments
autosave.xmi of the project, that causes a fail (40.70 KB, text/x-xmi)
2016-05-07 15:33 UTC, Artem Goncharov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Goncharov 2016-05-07 15:30:17 UTC
Application: umbrello (2.16.1)
KDE Platform Version: 4.14.18
Qt Version: 4.8.7
Operating System: Linux 4.4.8-300.fc23.x86_64 x86_64
Distribution: "Fedora release 23 (Twenty Three)"

-- Information about the crash:
- What I was doing when the application crashed:
Drawed a test project, tried to remove component diagram, having some elements on it

The crash can be reproduced every time.

-- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
84	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f0e1c247900 (LWP 6185))]

Thread 3 (Thread 0x7f0dfbf0b700 (LWP 6767)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e1877a8f6 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x563e3c7882b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x563e3c7e4958, mutex=mutex@entry=0x563e3c7e4950, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0e19cec12c in QFileInfoGatherer::run (this=0x563e3c7e4940) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f0e1877a38c in QThreadPrivate::start (arg=0x563e3c7e4940) at thread/qthread_unix.cpp:352
#5  0x00007f0e184d860a in start_thread (arg=0x7f0dfbf0b700) at pthread_create.c:334
#6  0x00007f0e17977a4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f0dfb70a700 (LWP 6768)):
#0  0x00007ffcdb9d5ca7 in clock_gettime ()
#1  0x00007f0e17985cc6 in __GI___clock_gettime (clock_id=clock_id@entry=1, tp=tp@entry=0x7f0dfb7099e0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f0e187d4c35 in do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f0e188bad15 in QTimerInfoList::updateCurrentTime (this=0x7f0dec002ee0) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f0dec002ee0, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f0e188b954c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f0dfb709ab4) at kernel/qeventdispatcher_glib.cpp:143
#7  0x00007f0e188b9615 in timerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7f0dfb709ab4) at kernel/qeventdispatcher_glib.cpp:176
#8  0x00007f0e1305a70d in g_main_context_prepare (context=context@entry=0x7f0dec0009a0, priority=priority@entry=0x7f0dfb709b40) at gmain.c:3442
#9  0x00007f0e1305b09b in g_main_context_iterate (context=context@entry=0x7f0dec0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3820
#10 0x00007f0e1305b27c in g_main_context_iteration (context=0x7f0dec0009a0, may_block=may_block@entry=1) at gmain.c:3901
#11 0x00007f0e188b9e7e in QEventDispatcherGlib::processEvents (this=0x7f0dec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#12 0x00007f0e18888131 in QEventLoop::processEvents (this=this@entry=0x7f0dfb709c80, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f0e188884a5 in QEventLoop::exec (this=this@entry=0x7f0dfb709c80, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f0e18777a99 in QThread::exec (this=this@entry=0x563e3c76af70) at thread/qthread.cpp:538
#15 0x00007f0e18868203 in QInotifyFileSystemWatcherEngine::run (this=0x563e3c76af70) at io/qfilesystemwatcher_inotify.cpp:265
#16 0x00007f0e1877a38c in QThreadPrivate::start (arg=0x563e3c76af70) at thread/qthread_unix.cpp:352
#17 0x00007f0e184d860a in start_thread (arg=0x7f0dfb70a700) at pthread_create.c:334
#18 0x00007f0e17977a4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f0e1c247900 (LWP 6185)):
[KCrash Handler]
#6  QPointer<QGraphicsScene>::operator QGraphicsScene* (this=<optimized out>) at ../../src/corelib/kernel/qpointer.h:78
#7  QGraphicsView::scene (this=this@entry=0x0) at graphicsview/qgraphicsview.cpp:1592
#8  0x0000563e3abd8e05 in UMLView::umlScene (this=this@entry=0x0) at ../../umbrello/umlview.cpp:56
#9  0x0000563e3aaa73e3 in Uml::CmdBaseWidgetCommand::scene (this=this@entry=0x563e3c792900) at ../../umbrello/cmds/widget/cmd_baseWidgetCommand.cpp:49
#10 0x0000563e3aaa7c02 in Uml::CmdRemoveWidget::redo (this=0x563e3c792900) at ../../umbrello/cmds/widget/cmd_removeWidget.cpp:48
#11 0x00007f0e19e59357 in QUndoStack::push (this=0x563e3c1c23a0, cmd=cmd@entry=0x563e3c792900) at util/qundostack.cpp:583
#12 0x0000563e3ab81eb5 in UMLApp::executeCommand (this=0x563e3bfd1160, cmd=0x563e3c792900) at ../../umbrello/uml.cpp:3297
#13 0x0000563e3abc3ee7 in UMLScene::removeWidget (this=<optimized out>, o=<optimized out>) at ../../umbrello/umlscene.cpp:1159
#14 0x0000563e3aabf5c6 in AssociationWidget::cleanup (this=0x563e3c7f29e0) at ../../umbrello/widgets/associationwidget.cpp:1320
#15 0x0000563e3abc7681 in UMLScene::removeAssoc (this=this@entry=0x563e3c818cb0, pAssoc=pAssoc@entry=0x563e3c7f29e0) at ../../umbrello/umlscene.cpp:1998
#16 0x0000563e3abc78eb in UMLScene::removeAssociations (this=this@entry=0x563e3c818cb0, widget=0x563e3c91e110) at ../../umbrello/umlscene.cpp:2046
#17 0x0000563e3abc9b1d in UMLScene::removeWidgetCmd (this=this@entry=0x563e3c818cb0, o=o@entry=0x563e3c91e110) at ../../umbrello/umlscene.cpp:1174
#18 0x0000563e3abc9d79 in UMLScene::removeAllWidgets (this=this@entry=0x563e3c818cb0) at ../../umbrello/umlscene.cpp:2112
#19 0x0000563e3abca19c in UMLScene::~UMLScene (this=0x563e3c818cb0, __in_chrg=<optimized out>) at ../../umbrello/umlscene.cpp:180
#20 0x0000563e3abca449 in UMLScene::~UMLScene (this=0x563e3c818cb0, __in_chrg=<optimized out>) at ../../umbrello/umlscene.cpp:186
#21 0x0000563e3abd8b3c in UMLView::~UMLView (this=0x563e3c677af0, __in_chrg=<optimized out>) at ../../umbrello/umlview.cpp:48
#22 0x0000563e3abd8b69 in UMLView::~UMLView (this=0x563e3c677af0, __in_chrg=<optimized out>) at ../../umbrello/umlview.cpp:49
#23 0x0000563e3ab9e3cb in UMLDoc::removeView (this=this@entry=0x563e3c4f02a0, view=view@entry=0x563e3c677af0, enforceCurrentView=enforceCurrentView@entry=true) at ../../umbrello/umldoc.cpp:233
#24 0x0000563e3ab9e9b6 in UMLDoc::removeDiagramCmd (this=0x563e3c4f02a0, id="fANDRzr48MWr") at ../../umbrello/umldoc.cpp:1557
#25 0x0000563e3aaa5daa in Uml::CmdRemoveDiagram::redo (this=<optimized out>) at ../../umbrello/cmds/cmd_removeDiagram.cpp:54
#26 0x00007f0e19e59357 in QUndoStack::push (this=0x563e3c1c23a0, cmd=cmd@entry=0x563e3c84fc30) at util/qundostack.cpp:583
#27 0x0000563e3ab81eb5 in UMLApp::executeCommand (this=0x563e3bfd1160, cmd=cmd@entry=0x563e3c84fc30) at ../../umbrello/uml.cpp:3297
#28 0x0000563e3ab9fe8a in UMLDoc::removeDiagram (this=<optimized out>, id="fANDRzr48MWr") at ../../umbrello/umldoc.cpp:1539
#29 0x0000563e3abb1f68 in UMLListView::deleteItem (this=this@entry=0x563e3c59c170, temp=temp@entry=0x563e3c7c97e0) at ../../umbrello/umllistview.cpp:2597
#30 0x0000563e3abb295b in UMLListView::slotMenuSelection (this=this@entry=0x563e3c59c170, action=<optimized out>, position=...) at ../../umbrello/umllistview.cpp:569
#31 0x0000563e3abb3f74 in UMLListView::contextMenuEvent (this=0x563e3c59c170, event=0x7ffcdb8d9de0) at ../../umbrello/umllistview.cpp:1965
#32 0x00007f0e19828130 in QWidget::event (this=this@entry=0x563e3c59c170, event=event@entry=0x7ffcdb8d9de0) at kernel/qwidget.cpp:8775
#33 0x00007f0e19bed11e in QFrame::event (this=0x563e3c59c170, e=0x7ffcdb8d9de0) at widgets/qframe.cpp:557
#34 0x00007f0e19d12a73 in QAbstractItemView::viewportEvent (this=this@entry=0x563e3c59c170, event=event@entry=0x7ffcdb8d9de0) at itemviews/qabstractitemview.cpp:1644
#35 0x00007f0e19d544dc in QTreeView::viewportEvent (this=0x563e3c59c170, event=0x7ffcdb8d9de0) at itemviews/qtreeview.cpp:1252
#36 0x00007f0e18889a26 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x563e3be6b140, receiver=receiver@entry=0x563e3c374bb0, event=event@entry=0x7ffcdb8d9de0) at kernel/qcoreapplication.cpp:1065
#37 0x00007f0e197d191c in QApplicationPrivate::notify_helper (this=0x563e3be6b140, receiver=0x563e3c374bb0, e=0x7ffcdb8d9de0) at kernel/qapplication.cpp:4561
#38 0x00007f0e197d978c in QApplication::notify (this=this@entry=0x7ffcdb8da5f0, receiver=receiver@entry=0x563e3c374bb0, e=e@entry=0x7ffcdb8d9de0) at kernel/qapplication.cpp:4187
#39 0x00007f0e1a55d60a in KApplication::notify (this=0x7ffcdb8da5f0, receiver=0x563e3c374bb0, event=0x7ffcdb8d9de0) at /usr/src/debug/kdelibs-4.14.18/kdeui/kernel/kapplication.cpp:311
#40 0x00007f0e188898bd in QCoreApplication::notifyInternal (this=0x7ffcdb8da5f0, receiver=0x563e3c374bb0, event=0x7ffcdb8d9de0) at kernel/qcoreapplication.cpp:955
#41 0x00007f0e198528c0 in QETWidget::translateMouseEvent (this=0x563e3c374bb0, event=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:234
#42 0x00007f0e1985121d in QApplication::x11ProcessEvent (this=0x7ffcdb8da5f0, event=event@entry=0x7ffcdb8da110) at kernel/qapplication_x11.cpp:3663
#43 0x00007f0e1987a299 in x11EventSourceDispatch (s=0x563e3be5b020, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#44 0x00007f0e1305ae3a in g_main_dispatch (context=0x563e3be6ded0) at gmain.c:3154
#45 g_main_context_dispatch (context=context@entry=0x563e3be6ded0) at gmain.c:3769
#46 0x00007f0e1305b1d0 in g_main_context_iterate (context=context@entry=0x563e3be6ded0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3840
#47 0x00007f0e1305b27c in g_main_context_iteration (context=0x563e3be6ded0, may_block=may_block@entry=1) at gmain.c:3901
#48 0x00007f0e188b9e5e in QEventDispatcherGlib::processEvents (this=0x563e3be5dc40, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#49 0x00007f0e1987a436 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#50 0x00007f0e18888131 in QEventLoop::processEvents (this=this@entry=0x7ffcdb8da4f0, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f0e188884a5 in QEventLoop::exec (this=this@entry=0x7ffcdb8da4f0, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007f0e1888e039 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#53 0x0000563e3a8b6dcd in main (argc=<optimized out>, argv=<optimized out>) at ../../umbrello/main.cpp:124

Reported using DrKonqi
Comment 1 Artem Goncharov 2016-05-07 15:33:22 UTC
Created attachment 98834 [details]
autosave.xmi of the project, that causes a fail

uploading autosave.xmi file of the project, which causes crash removing a component diagram
Comment 2 Ralf Habacker 2016-05-09 06:59:22 UTC
(In reply to Artem Goncharov from comment #1)
> Created attachment 98834 [details]
> autosave.xmi of the project, that causes a fail
> 
> uploading autosave.xmi file of the project, which causes crash removing a component diagram

Thanks. I did the following this to reproduce the issue:
1. I loaded this file into a x86_64 umbrello 2.16.1 build on opensuse x86_64.
2. I did a right click on the diagram 'component diagram' in the tree and selected 'delete'
-> no crash 

Next try: 
1. I loaded this file into a x86_64 umbrello 2.16.1 build on opensuse x86_64.
2. I clicked on the 'x' on the diagram tab 'component diagram'
-> no crash 

Any further hint how to reproduce this ?
Comment 3 Artem Goncharov 2016-05-11 17:35:59 UTC
Hi I was using a first approach (right mouse click). I have even reproduced the situation on another machine (however both Fedora 23). Second machine is a fresh Fedora 23 KDE Live Spin installed to a drive.
Comment 4 Artem Goncharov 2016-05-11 17:38:14 UTC
and basically in both cases the version is umbrello-15.04.2-4.fc23.x86_64
Comment 5 Ralf Habacker 2016-05-12 20:55:34 UTC

*** This bug has been marked as a duplicate of bug 358286 ***