Bug 243860

Summary: Open Recent Files
Product: [Applications] umbrello Reporter: sensorario
Component: generalAssignee: Ralf Habacker <ralf.habacker>
Status: RESOLVED FIXED    
Severity: minor CC: p92, ralf.habacker
Priority: NOR    
Version: 2.5.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.12.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
xmi that crashes unbrello

Description sensorario 2010-07-07 17:07:40 UTC
Application: umbrello (2.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-23-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
I was open a file created few seconds ago. I've just do this:

menu File >
open recent >
... after click my file ... umbrello crash.

I use gnome and ubuntu 10.04.
I've installed umbrello using ubuntu software center.

I hope these indications will be usefull

The crash can be reproduced every time.

 -- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
[KCrash Handler]
#5  UMLObject::getBaseType (this=0x0) at ../../../umbrello/umbrello/umlobject.cpp:377
#6  0x0000000000b2bed8 in UMLAssociation::load (this=0x2c4f350, element=<value optimized out>) at ../../../umbrello/umbrello/association.cpp:401
#7  0x0000000000bd126f in UMLObject::loadFromXMI (this=0x2c4f350, element=<value optimized out>) at ../../../umbrello/umbrello/umlobject.cpp:1042
#8  0x0000000000baa7fd in UMLDoc::loadUMLObjectsFromXMI (this=<value optimized out>, element=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:2078
#9  0x0000000000baa29a in UMLDoc::loadUMLObjectsFromXMI (this=<value optimized out>, element=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:2038
#10 0x0000000000baa29a in UMLDoc::loadUMLObjectsFromXMI (this=<value optimized out>, element=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:2038
#11 0x0000000000baa29a in UMLDoc::loadUMLObjectsFromXMI (this=<value optimized out>, element=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:2038
#12 0x0000000000bb301e in UMLDoc::loadFromXMI (this=0x2527a30, file=<value optimized out>, encode=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:1866
#13 0x0000000000bb54a9 in UMLDoc::openDocument (this=0x2527a30, url=..., format=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:537
#14 0x0000000000b9be31 in UMLApp::slotFileOpenRecent (this=0x2528ce0, url=...) at ../../../umbrello/umbrello/uml.cpp:1061
#15 0x0000000000b9c611 in UMLApp::qt_metacall (this=0x2528ce0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff6dbf0fb0) at ./uml.moc:232
#16 0x00007f682e95be3f in QMetaObject::activate (sender=0x2533100, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x2c5c101) at kernel/qobject.cpp:3293
#17 0x00007f6830155282 in KRecentFilesAction::urlSelected (this=0x0, _t1=<value optimized out>) at ./krecentfilesaction.moc:124
#18 0x00007f6830155603 in KRecentFilesActionPrivate::_k_urlSelected (this=0x25348a0, action=0x2768210) at ../../kdeui/actions/krecentfilesaction.cpp:97
#19 0x00007f68301556b3 in KRecentFilesAction::qt_metacall (this=0x2533100, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff6dbf11a0) at ./krecentfilesaction.moc:85
#20 0x00007f682e95be3f in QMetaObject::activate (sender=0x2533100, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x2c5c101) at kernel/qobject.cpp:3293
#21 0x00007f683015916f in KSelectAction::triggered (this=0x0, _t1=0x2768210) at ./kselectaction.moc:176
#22 0x00007f683015aaa9 in KSelectAction::actionTriggered (this=0x2533100, action=0x2768210) at ../../kdeui/actions/kselectaction.cpp:330
#23 0x00007f683015bd75 in KSelectAction::qt_metacall (this=0x2533100, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6dbf13a0) at ./kselectaction.moc:121
#24 0x00007f6830155665 in KRecentFilesAction::qt_metacall (this=0x0, _c=QMetaObject::ReadProperty, _id=45514241, _a=0x2c5c101) at ./krecentfilesaction.moc:77
#25 0x00007f682e95be3f in QMetaObject::activate (sender=0x2531f50, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x2c5c101) at kernel/qobject.cpp:3293
#26 0x00007f682ee1aa3f in QActionGroup::triggered (this=0x0, _t1=0x2768210) at .moc/release-shared/moc_qactiongroup.cpp:146
#27 0x00007f682ee1b247 in QActionGroupPrivate::_q_actionTriggered (this=<value optimized out>) at kernel/qactiongroup.cpp:93
#28 0x00007f682ee1b4a1 in QActionGroup::qt_metacall (this=0x2531f50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6dbf1500) at .moc/release-shared/moc_qactiongroup.cpp:101
#29 0x00007f682e95be3f in QMetaObject::activate (sender=0x2768210, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x2c5c101) at kernel/qobject.cpp:3293
#30 0x00007f682ee16032 in QAction::triggered (this=0x0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#31 0x00007f682ee180ab in QAction::activate (this=0x2768210, event=<value optimized out>) at kernel/qaction.cpp:1255
#32 0x00007f682f25739d in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x2768210, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#33 0x00007f682f25cdda in QMenuPrivate::activateAction (this=0x25362e0, action=0x2768210, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#34 0x00007f68302ffcee in KMenu::mouseReleaseEvent (this=0x2533360, e=0x1) at ../../kdeui/widgets/kmenu.cpp:471
#35 0x00007f682ee72582 in QWidget::event (this=0x2533360, event=0x7fff6dbf2150) at kernel/qwidget.cpp:7998
#36 0x00007f682f25ef9b in QMenu::event (this=0x2533360, e=0x7fff6dbf2150) at widgets/qmenu.cpp:2414
#37 0x00007f682ee1c22c in QApplicationPrivate::notify_helper (this=0x227e230, receiver=0x2533360, e=0x7fff6dbf2150) at kernel/qapplication.cpp:4300
#38 0x00007f682ee22ecb in QApplication::notify (this=0x7fff6dbf2e60, receiver=0x2533360, e=0x7fff6dbf2150) at kernel/qapplication.cpp:3865
#39 0x00007f6830223526 in KApplication::notify (this=0x7fff6dbf2e60, receiver=0x2533360, event=0x7fff6dbf2150) at ../../kdeui/kernel/kapplication.cpp:302
#40 0x00007f682e94906c in QCoreApplication::notifyInternal (this=0x7fff6dbf2e60, receiver=0x2533360, event=0x7fff6dbf2150) at kernel/qcoreapplication.cpp:704
#41 0x00007f682ee220ae in QCoreApplication::sendEvent (receiver=0x2533360, event=0x7fff6dbf2150, alienWidget=0x0, nativeWidget=0x2533360, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#42 QApplicationPrivate::sendMouseEvent (receiver=0x2533360, event=0x7fff6dbf2150, alienWidget=0x0, nativeWidget=0x2533360, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#43 0x00007f682eea23dd in QETWidget::translateMouseEvent (this=0x2533360, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#44 0x00007f682eea08ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff6dbf2a70) at kernel/qapplication_x11.cpp:3501
#45 0x00007f682eecc882 in x11EventSourceDispatch (s=0x2281ff0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#46 0x00007f682a1998c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#47 0x00007f682a19d748 in ?? () from /lib/libglib-2.0.so.0
#48 0x00007f682a19d8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#49 0x00007f682e972513 in QEventDispatcherGlib::processEvents (this=0x22567c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#50 0x00007f682eecc46e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007f682e947992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#52 0x00007f682e947d6c in QEventLoop::exec (this=0x7fff6dbf2da0, flags=) at kernel/qeventloop.cpp:201
#53 0x00007f682e94baab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#54 0x0000000000b6c6c5 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../umbrello/umbrello/main.cpp:111

Reported using DrKonqi
Comment 1 Christoph Feck 2010-09-13 13:08:32 UTC
*** Bug 172634 has been marked as a duplicate of this bug. ***
Comment 2 p92 2010-10-22 00:27:56 UTC
Created attachment 52733 [details]
New crash information added by DrKonqi

umbrello (2.5.2) on KDE Platform 4.5.2 (KDE 4.5.2) using Qt 4.7.0

- What I was doing when the application crashed:
opening an xmi from poseidonPE 4.1.2

- Unusual behavior I noticed:
File load in progress than umbrello crashes

-- Backtrace (Reduced):
#6  UMLObject::getBaseType (this=0x0) at ../../../umbrello/umbrello/umlobject.cpp:377
#7  0x00000000009baf18 in UMLAssociation::load (this=0x73e5a90, element=<value optimized out>) at ../../../umbrello/umbrello/association.cpp:401
#8  0x0000000000a6396f in UMLObject::loadFromXMI (this=0x73e5a90, element=<value optimized out>) at ../../../umbrello/umbrello/umlobject.cpp:1042
#9  0x0000000000a3c2bd in UMLDoc::loadUMLObjectsFromXMI (this=<value optimized out>, element=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:2078
#10 0x0000000000a3bd5a in UMLDoc::loadUMLObjectsFromXMI (this=<value optimized out>, element=<value optimized out>) at ../../../umbrello/umbrello/umldoc.cpp:2038
Comment 3 p92 2010-10-22 00:34:26 UTC
End of console message during load :

umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 1
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x17f4d40)
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 1
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x14fb6a0)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x17f4d40) KIO::Slave(0x16c1860)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x17fcf30)
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 1
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x16ed8c0)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x14fb6a0) KIO::Slave(0x124a390)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x1761bc0)
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 0
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x16e6790)
umbrello(1240)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  104   "Impossible de créer la miniature du dossier"
umbrello(1240)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("thumbnail:/home/pascal/tmp/samba/poseidon_4_1_2")
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x17fcf30) KIO::Slave(0x17bee10)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x16ed8c0) KIO::Slave(0x124a390)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x17fcf30)
umbrello(1240)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  104   "Impossible de créer la miniature du dossier"
umbrello(1240)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("thumbnail:/home/pascal/tmp/samba/rapports")
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x1761bc0) KIO::Slave(0x17bee10)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x16e6790) KIO::Slave(0x16c1860)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x181a6b0)
umbrello(1240)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  104   "Impossible de créer la miniature du dossier"
umbrello(1240)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("thumbnail:/home/pascal/tmp/samba/configs")
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x17fcf30) KIO::Slave(0x17bee10)
umbrello(1240)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  104   "Impossible de créer la miniature du dossier"
umbrello(1240)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("thumbnail:/home/pascal/tmp/samba/Stage_wassim")
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x181a6b0) KIO::Slave(0x17bee10)
umbrello(1240)/kdeui (KIconLoader) KSharedDataCache::insert: Overwriting existing cached entry due to collision.
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 1
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::gotNewIcon: 2
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::setSequenceIndex: 0
umbrello(1240)/kio (delegateanimationhandler) KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x180daa0)
umbrello(1240)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x180daa0) KIO::Slave(0x16c1860)
umbrello(1240)/kfile (kdelibs) KUrlComboBox::urls: ::urls()
umbrello(1240)/kfile (kdelibs) KUrlComboBox::urls: ::urls()
umbrello(1240)/kfile (kdelibs) KRecentDocument::add: KRecentDocument::add for  "file:///home/pascal/tmp/samba/efiches20101021.xmi"
umbrello(1240)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x150f250)  item moved into cache:  KUrl("file:///home/pascal/tmp/samba")
umbrello(1240)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x14fafe0)  item moved into cache:  KUrl("trash:/")
umbrello(1240)/kdeui (kdelibs) QWidgetStackAccelManager::currentChanged: invalid index provided
umbrello(1240) UMLApp::setCurrentView: view is NULL
umbrello(1240) UMLApp::setCurrentView: view is NULL
umbrello(1240) UMLPackage::addObject: "serial"  is already there
umbrello(1240) UMLPackage::addObject: "text"  is already there
umbrello(1240) UMLPackage::addObject: "char(3)"  is already there
umbrello(1240) UMLPackage::addObject: "char(2)"  is already there
umbrello(1240) UMLDoc::loadUMLObjectsFromXMI: Unknown type of umlobject to create:  "UML:TagDefinition" 
umbrello(1240) UMLPackage::addObject: "boolean"  is already there
umbrello(1240) UMLPackage::addObject: "EF"  is already there
umbrello(1240) UMLPackage::addObject: "timestamp"  is already there
umbrello(1240) UMLPackage::addObject: "Datetime"  is already there
umbrello(1240) UMLPackage::addObject: "char (3)"  is already there
umbrello(1240) UMLPackage::addObject: "int"  is already there
umbrello(1240) UMLPackage::addObject: "Dec"  is already there
umbrello(1240) UMLObject::loadFromXMI: "" : m_pUMLPackage is not set
umbrello(1240) UMLRole::load: "" : m_Multi is  "0..-1"
umbrello(1240) UMLRole::load: "" : m_Multi is  "1..1"
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
KCrash: Application 'umbrello' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/pascal/.kde/socket-minipc/kdeinit4__0

[1]+  Stopped                 umbrello
Comment 4 p92 2010-10-22 00:43:54 UTC
Created attachment 52734 [details]
xmi that crashes unbrello
Comment 5 Ralf Habacker 2013-09-02 13:47:33 UTC
Loading this xmi file, which has been created with Netbeans XMI Writer, do not crash umbrello build from git master. 

Also this file seems to have some anomalies, for example there are classes like 'tinytext' which have all class members merged into the class name, which looks incorrect: 
         <UML:Class xmi.id = 'I6cb8e467m10c57abe42bmm7401' name = 'tinytext &#10; fc_sit_adr3  : tinytext &#10; fc_sit_cp  : tinytext &#10; fc_sit_ville  : tinytext &#10; fc_sit_pays  : tinytext &#10; fc_pe_civilite  : smallint(6)  &#10; fc_pe_nom  : tinytext &#10; fc_pe_prenom  : tinytext'

Additional there are class named like 'ff_comment;tinytext', which looks like a member declaration instead of a class: 
        <UML:Class xmi.id = 'Im3c4f2096m10d44d48630mme55' name = 'ff_comment;tinytext'
          visibility = 'public' isSpecification = 'false' isRoot = 'false' isLeaf = 'false'
          isAbstract = 'false' isActive = 'false'/>

which let me assume that the related Netbeans xmi export is somehow broken.