Bug 291648

Summary: Crash After deleting alt Box
Product: [Applications] umbrello Reporter: Luca Baronti <lbaronti>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: crash CC: ralf.habacker, ralf.habacker, wojtec.kowal
Priority: NOR    
Version: 2.6.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luca Baronti 2012-01-16 11:46:09 UTC
Application: umbrello (2.6.5)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
The crash occours after the deletion of the Alt Box and the selection of some other object (the whole Umbrello system is very unstable, as side note)

The crash can be reproduced every time.

-- Backtrace:
Application: Modellatore UML Umbrello (umbrello), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff0419e9780 (LWP 2931))]

Thread 2 (Thread 0x7ff035149700 (LWP 2932)):
#0  0x00007ff03d7fbf03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff039ef7104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff039ef79f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff035aa8c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ff039f1e3e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff03d50bd8c in start_thread (arg=0x7ff035149700) at pthread_create.c:304
#6  0x00007ff03d80904d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff0419e9780 (LWP 2931)):
[KCrash Handler]
#6  0x0000000001b03b40 in ?? ()
#7  0x00000000007a9df7 in UMLView::saveToXMI (this=0x1b328e0, qDoc=..., qElement=...) at ../../../umbrello/umbrello/umlview.cpp:3186
#8  0x0000000000708a66 in UMLFolder::saveContents (this=0x16fb900, qDoc=..., qElement=...) at ../../../umbrello/umbrello/folder.cpp:281
#9  0x0000000000708dd0 in UMLFolder::save (this=0x16fb900, qDoc=..., qElement=...) at ../../../umbrello/umbrello/folder.cpp:304
#10 0x00000000007091b5 in UMLFolder::saveToXMI (this=0x16fb900, qDoc=..., qElement=...) at ../../../umbrello/umbrello/folder.cpp:316
#11 0x00000000007798e2 in UMLDoc::saveToXMI (this=0x16fafc0, file=...) at ../../../umbrello/umbrello/umldoc.cpp:1659
#12 0x0000000000772e2d in UMLDoc::saveDocument (this=0x16fafc0, url=..., format=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:677
#13 0x000000000075546a in UMLApp::slotFileSave (this=0x16f6340) at ../../../umbrello/umbrello/uml.cpp:1089
#14 0x0000000000763aaf in UMLApp::qt_metacall (this=0x16f6340, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffb77f54e0) at ./uml.moc:218
#15 0x00007ff03e8a65f8 in QMetaObject::activate (sender=0x16cbaa0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffb77f54e0) at kernel/qobject.cpp:3287
#16 0x00007ff03ed79122 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#17 0x00007ff03ed7930f in QAction::activate (this=0x16cbaa0, event=<value optimized out>) at kernel/qaction.cpp:1257
#18 0x00007ff03f14246a in QAbstractButtonPrivate::click (this=0x174a5d0) at widgets/qabstractbutton.cpp:528
#19 0x00007ff03f14271c in QAbstractButton::mouseReleaseEvent (this=0x1754cc0, e=0x7fffb77f5e30) at widgets/qabstractbutton.cpp:1121
#20 0x00007ff03f1fe9ba in QToolButton::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at widgets/qtoolbutton.cpp:721
#21 0x00007ff03edd0cc8 in QWidget::event (this=0x1754cc0, event=0x7fffb77f5e30) at kernel/qwidget.cpp:8259
#22 0x00007ff03ed7f9f4 in QApplicationPrivate::notify_helper (this=0x14b8aa0, receiver=0x1754cc0, e=0x7fffb77f5e30) at kernel/qapplication.cpp:4462
#23 0x00007ff03ed84dc3 in QApplication::notify (this=<value optimized out>, receiver=0x1754cc0, e=0x7fffb77f5e30) at kernel/qapplication.cpp:4023
#24 0x00007ff0401cc6c6 in KApplication::notify (this=0x7fffb77f6b20, receiver=0x1754cc0, event=0x7fffb77f5e30) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007ff03e89149c in QCoreApplication::notifyInternal (this=0x7fffb77f6b20, receiver=0x1754cc0, event=0x7fffb77f5e30) at kernel/qcoreapplication.cpp:731
#26 0x00007ff03ed80a1d in sendEvent (receiver=0x1754cc0, event=0x7fffb77f5e30, alienWidget=0x1754cc0, nativeWidget=0x16f6340, buttonDown=0x7ff03f863218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QApplicationPrivate::sendMouseEvent (receiver=0x1754cc0, event=0x7fffb77f5e30, alienWidget=0x1754cc0, nativeWidget=0x16f6340, buttonDown=0x7ff03f863218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#28 0x00007ff03ee02190 in QETWidget::translateMouseEvent (this=0x16f6340, event=<value optimized out>) at kernel/qapplication_x11.cpp:4558
#29 0x00007ff03ee00ab7 in QApplication::x11ProcessEvent (this=0x7fffb77f6b20, event=0x7fffb77f6780) at kernel/qapplication_x11.cpp:3680
#30 0x00007ff03ee29842 in x11EventSourceDispatch (s=0x14bc980, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007ff039ef6bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007ff039ef73a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007ff039ef7639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007ff03e8bc3ef in QEventDispatcherGlib::processEvents (this=0x144b340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007ff03ee294de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007ff03e890882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007ff03e890abc in QEventLoop::exec (this=0x7fffb77f6a80, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007ff03e894ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#39 0x000000000072c594 in main (argc=1, argv=0x7fffb77f6fb8) at ../../../umbrello/umbrello/main.cpp:111

This bug may be a duplicate of or related to bug 266197.

Possible duplicates by query: bug 266197, bug 266196.

Reported using DrKonqi
Comment 1 Ralf Habacker 2012-01-16 18:23:00 UTC
Since a few weeks many bug fixes has been appplied to umbrello trunk, so it may be that this bug has been solved already.

It is possible for you to compile a trunk version and to check if the bug persists or if this is not possible to provide an exact explanation for reproducing the crash ?  

BTW: The recent redo/undo implementation is known to be crash friendly and needs to be redesigned using xmi serialisation (loadFromXMI/saveToXMI) - volunteers welcome.
Comment 2 Jekyll Wu 2012-07-05 23:00:31 UTC
*** Bug 266197 has been marked as a duplicate of this bug. ***
Comment 3 Jekyll Wu 2012-07-05 23:00:36 UTC
*** Bug 266196 has been marked as a duplicate of this bug. ***
Comment 4 Ralf Habacker 2014-07-25 06:37:56 UTC
(In reply to Ralf Habacker from comment #1)
> BTW: The recent redo/undo implementation is known to be crash friendly and
> needs to be redesigned using xmi serialisation (loadFromXMI/saveToXMI) -
> volunteers welcome.
The undo framework has been refactored and should have solved this issue. 
If this bug persists, feel free to reopen this bug with a related test case.