Application: umbrello (2.9.5) KDE Platform Version: 4.9.5 (Compiled from sources) Qt Version: 4.8.4 Operating System: Linux 3.7.1-hardened-r2 x86_64 Distribution: "Gentoo Base System release 2.1" -- Information about the crash: - What I was doing when the application crashed: Just started umbrello from the command line. The window appears for a splitsecond before the crash happens. Deleting .kde4/share/config/umbrellorc beforehand doesn't solve it. Activating umbrello debug gives this output : $ umbrello umbrello(22811) Tracer::registerClass: "UMLDoc" / folder = "" umbrello(22811)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory! umbrello(22811)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory! QObject::connect: Connecting from QTabBar::tabCloseRequested(int) to COMPAT slot (KTabBar::closeRequest(int)) umbrello(22811) Tracer::registerClass: "UMLListView" / folder = "" umbrello(22811) Tracer::registerClass: "UMLListViewItem" / folder = "" umbrello(22811) Tracer::registerClass: "UMLApp" / folder = "" umbrello(22811) UMLApp::setCurrentView: view is NULL umbrello(22811) UMLApp::setCurrentView: view is NULL umbrello(22811) UMLDoc::createDiagram: folder= "Logical View" / type= "Class" / name= "class diagram" umbrello(22811) Tracer::registerClass: "UMLScene" / folder = "" umbrello(22811) UMLDoc::addView: "class diagram" to folder UMLFolder: localName="Logical View", folderFile="", diagrams=0 umbrello(22811) UMLDoc::changeCurrentView: id= "Mw4Btva0IgFR" umbrello(22811) UMLListView::findView: could not find "class diagram" in UMLListViewItem: "Logical View", type="lvt_Logical_View", id="Logical View", children=1 umbrello(22811) UMLApp::setCurrentView: name= "class diagram" , isOpen= true , id= "Mw4Btva0IgFR" umbrello(22811) UMLApp::setModified: "Untitled" umbrello(22811) UMLListView::findView: could not find "class diagram" in UMLListViewItem: "Logical View", type="lvt_Logical_View", id="Logical View", children=1 umbrello(22811) UMLApp::setCurrentView: name= "class diagram" , isOpen= true , id= "Mw4Btva0IgFR" umbrello(22811) UMLApp::setModified: "Untitled" umbrello(22811) UMLDoc::changeCurrentView: id= "Mw4Btva0IgFR" umbrello(22811) UMLApp::setCurrentView: name= "class diagram" , isOpen= true , id= "Mw4Btva0IgFR" umbrello(22811) UMLApp::setModified: "Untitled" umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "int" umbrello(22811) UMLApp::executeCommand: "Create uml object : int" [ 1 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "char" umbrello(22811) UMLApp::executeCommand: "Create uml object : char" [ 2 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "bool" umbrello(22811) UMLApp::executeCommand: "Create uml object : bool" [ 3 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "float" umbrello(22811) UMLApp::executeCommand: "Create uml object : float" [ 4 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "double" umbrello(22811) UMLApp::executeCommand: "Create uml object : double" [ 5 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "short" umbrello(22811) UMLApp::executeCommand: "Create uml object : short" [ 6 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "long" umbrello(22811) UMLApp::executeCommand: "Create uml object : long" [ 7 ] umbrello(22811) UMLScene::slotObjectCreated: view= "class diagram" / object= "unsigned int" umbrello(22811) UMLApp::executeCommand: "Create uml object : unsigned int" [ 8 ] ASSERT failure in QVector<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 351 KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = umbrello path = /usr/bin pid = 22811 KCrash: Arguments: /usr/bin/umbrello --nocrashhandler KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/home/work/.kde4/socket-moltowork/kdeinit4__0 [4]+ Stopped umbrello The crash can be reproduced every time. -- Backtrace: Application: Umbrello UML Modeller (umbrello), signal: Aborted Using host libthread_db library "/lib64/libthread_db.so.1". [KCrash Handler] #6 0x00007f723cde8b45 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #7 0x00007f723cde9fbb in __GI_abort () at abort.c:91 #8 0x00007f723dc19339 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2323 #9 0x00007f723dc19474 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f723dd50965 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fff5c97b930) at global/qglobal.cpp:2369 #10 0x00007f723dc195aa in qFatal (msg=<optimized out>) at global/qglobal.cpp:2552 #11 0x00007f723ede46ca in QVector<QTreeViewItem>::at (this=0x7f7241b04768, i=9) at ../../include/QtCore/../../src/corelib/tools/qvector.h:351 #12 0x00007f723edddb33 in itemHeight (item=9, this=0x7f7241b04350) at itemviews/qtreeview.cpp:3260 #13 QTreeViewPrivate::itemHeight (this=0x7f7241b04350, item=9) at itemviews/qtreeview.cpp:3254 #14 0x00007f723edde5e6 in coordinateForItem (item=5, this=0x7f7241b04350) at itemviews/qtreeview.cpp:3312 #15 QTreeViewPrivate::coordinateForItem (this=0x7f7241b04350, item=5) at itemviews/qtreeview.cpp:3276 #16 0x00007f723eddfe02 in QTreeView::visualRect (this=0x7f7241b053c0, index=...) at itemviews/qtreeview.cpp:1067 #17 0x00007f723eda2b3c in QAbstractItemView::update (this=<optimized out>, index=...) at itemviews/qabstractitemview.cpp:3162 #18 0x00007f723dd05dbb in QMetaObject::activate (sender=0x7f7241b11950, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5c97bcc0) at kernel/qobject.cpp:3539 #19 0x00007f723dd4b8d9 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/debug-shared/moc_qabstractitemmodel.cpp:164 #20 0x00007f723ee0b728 in QTreeModel::emitDataChanged (this=0x7f7241b11950, item=0x7f7241b1d120, column=0) at itemviews/qtreewidget.cpp:796 #21 0x00007f723ee0f6e0 in QTreeWidgetItem::setData (this=0x7f7241b1d120, column=0, role=1, value=...) at itemviews/qtreewidget.cpp:1755 #22 0x00007f72413866e5 in setIcon (aicon=..., column=0, this=0x7f7241b1d120) at /usr/include/qt4/QtGui/qtreewidget.h:230 #23 UMLListViewItem::setIcon (this=0x7f7241b1d120, iconType=<optimized out>) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/umllistviewitem.cpp:467 #24 0x00007f7241382b18 in UMLListView::qt_static_metacall (_o=0x7f7241b053c0, _c=<optimized out>, _id=17, _a=0x7fff5c97c078) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5_build/umbrello/umbrello/umllistview.moc:100 #25 0x00007f723dd05dbb in QMetaObject::activate (sender=0x7f7241b053c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5c97c078) at kernel/qobject.cpp:3539 #26 0x00007f723ee0a6d1 in QTreeWidget::itemCollapsed (this=<optimized out>, _t1=0x7f7241b1d120) at .moc/debug-shared/moc_qtreewidget.cpp:263 #27 0x00007f723dd05dbb in QMetaObject::activate (sender=0x7f7241b053c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5c97c1b8) at kernel/qobject.cpp:3539 #28 0x00007f723edd9b93 in QTreeView::collapsed (this=<optimized out>, _t1=...) at .moc/debug-shared/moc_qtreeview.cpp:222 #29 0x00007f723ede1406 in QTreeViewPrivate::collapse (this=0x7f7241b04350, item=5, emitSignal=true) at itemviews/qtreeview.cpp:2995 #30 0x00007f723ede155c in QTreeView::collapse (this=0x7f7241b053c0, index=...) at itemviews/qtreeview.cpp:792 #31 0x00007f723ee0c3a4 in QTreeWidget::setItemExpanded (this=<optimized out>, item=0x7f7241b1d120, expand=false) at itemviews/qtreewidget.cpp:3144 #32 0x00007f724138680b in setExpanded (aexpand=<optimized out>, this=0x7f7241b1d120) at /usr/include/qt4/QtGui/qtreewidget.h:409 #33 UMLListViewItem::setOpen (this=<optimized out>, expand=<optimized out>) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/umllistviewitem.cpp:420 #34 0x00007f7241368bb4 in UMLDoc::createDatatype (this=0x7f72418ac230, name=...) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/umldoc.cpp:2935 #35 0x00007f7241373b83 in UMLDoc::addDefaultDatatypes (this=0x7f72418ac230) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/umldoc.cpp:2919 #36 0x00007f7241356750 in slotAddDefaultDatatypes (this=0x7f72418a9e10) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/uml.cpp:2467 #37 UMLApp::setGenerator (this=0x7f72418a9e10, pl=...) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/uml.cpp:2122 #38 0x00007f7241356805 in UMLApp::initGenerator (this=0x7f72418a9e10) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/uml.cpp:2566 #39 0x00007f724136b684 in UMLDoc::newDocument (this=0x7f72418ac230) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/umldoc.cpp:386 #40 0x00007f724136082e in UMLApp::newDocument (this=0x7f72418a9e10) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/uml.cpp:2692 #41 0x00007f7241337efc in initDocument (args=<optimized out>) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/main.cpp:132 #42 0x00007f7241120775 in main (argc=<optimized out>, argv=<optimized out>) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/main.cpp:98 Reported using DrKonqi
Created attachment 81959 [details] New crash information added by DrKonqi umbrello (2.11.0) on KDE Platform 4.11.00 using Qt 4.8.5 - What I was doing when the application crashed: Umbrello crash on startup. The console shows the following output: Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. umbrello(8317)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory! umbrello(8317)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory! QObject::connect: Connecting from QTabBar::tabCloseRequested(int) to COMPAT slot (KTabBar::closeRequest(int)) QObject::connect: Connecting from COMPAT signal (QTabWidget::currentChanged(QWidget*)) umbrello(8317) UMLListView::findView: could not find "diagramma delle classi" in UMLListViewItem: "Vista logica", type="lvt_Logical_View", id="Logical View", children=1 umbrello(8317) UMLListView::findView: could not find "diagramma delle classi" in UMLListViewItem: "Vista logica", type="lvt_Logical_View", id="Logical View", children=1 ASSERT failure in QVector<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 351 KCrash: Application 'umbrello' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/home/gcala/.kde4/socket-chakra/kdeinit4__0 -- Backtrace (Reduced): #10 0x00007f8bcd2ab459 in QTreeViewPrivate::itemHeight(int) const () from /usr/lib/libQtGui.so.4 #11 0x00007f8bcd2abbf2 in QTreeViewPrivate::coordinateForItem(int) const () from /usr/lib/libQtGui.so.4 #12 0x00007f8bcd2abd5d in QTreeView::visualRect(QModelIndex const&) const () from /usr/lib/libQtGui.so.4 #13 0x00007f8bcd2657ce in QAbstractItemView::update(QModelIndex const&) () from /usr/lib/libQtGui.so.4 [...] #15 0x00007f8bcdcb1197 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/libQtCore.so.4
If you self compiled umbrello the line #23 UMLListViewItem::setIcon (this=0x7f7241b1d120, iconType=<optimized out>) at /home/portagetmp/portage/kde-base/umbrello-4.9.5/work/umbrello-4.9.5/umbrello/umbrello/umllistviewitem.cpp:467 which is /** * Set the pixmap corresponding to the given IconType. */ void UMLListViewItem::setIcon(Icon_Utils::IconType iconType) { 467 QPixmap p = Icon_Utils::SmallIcon(iconType); 468 QTreeWidgetItem::setIcon(0, QIcon(p)); } let me assume that umbrello did not find an icon. To run a self compiled umbrello you should follow the instructions in the section "Source Code on Linux like operating systems" on http://umbrello.kde.org/installation.php. If this problem persists, feel free to reopen this bug.
As reported by backtrace I'm using umbrello 2.11 from Chakra official repository. I have downloaded source code and added a qdebug in void UMLListViewItem::setIcon(Icon_Utils::IconType iconType) and the error happens when iconType is "it_Folder_Orange" that is converted in "folder-orange" by Icon_Utils::toString(...). I have searched my filesystem for "folder-orange" and found: /usr/share/icons/oxygen/22x22/places/folder-orange.png /usr/share/icons/oxygen/16x16/places/folder-orange.png /usr/share/icons/oxygen/128x128/places/folder-orange.png /usr/share/icons/oxygen/256x256/places/folder-orange.png /usr/share/icons/oxygen/32x32/places/folder-orange.png /usr/share/icons/oxygen/64x64/places/folder-orange.png /usr/share/icons/oxygen/48x48/places/folder-orange.png And in the output I can read it's using it previously without crashing: http://paste.chakra-project.org/5066/ So I fear the bug is triggered by something else. Regards
I see. Unfortunally I cannot reproduce this problem on my system which is umbrello git tag 4.11.0, qt 4.8.4, KDE 4.9.5. I also tried italian application language, but did not raise the error. May be a icon cache problem ? You may try to remove ~/.kde4/cache-<hostname>/icon-cache.kcache and restart umbrello. If the icons are not installed correctly you will see then empty pages on the umbrello toolbar. BTW: Are you using a 32bit or 64 bit system ?
icon-cache.kcache trick didn't work. I'm using a 64bit system (kde 4.11, qt 4.8.5). I tryed two others workarounds: - first I replaced the code in UMLListViewItem::setIcon with the following QIcon myIcon(QLatin1String("/usr/share/icons/oxygen/16x16/places/folder.png")); QTreeWidgetItem::setIcon(0, myIcon); result: crash. - in the original code I commented out QTreeWidgetItem::setIcon(0, QIcon(p)) : QPixmap p = Icon_Utils::SmallIcon(iconType); //QTreeWidgetItem::setIcon(0, QIcon(p)); result: worked. Very weird: I reverted the code and umbrello doesn't crash at start up but if I remove ~/.kde4/share/config/umbrellorc the bug returns. Seems that commenting that line is the only solution to run umbrello for the first time. Can you confirm this? P.S. 2 more files: umbrellorc created on crash: http://paste.chakra-project.org/5073/ umbrellorc in correct start up: http://paste.chakra-project.org/5076/
> Can you confirm this? Unfortunally no 1. > umbrellorc in correct start up: http://paste.chakra-project.org/5076/ So when you remove [workbar] ToolButtonStyle=IconOnly from umbrellorc and start umbrello then umbrello crashes ? The workbar section is handled in void UMLApp::readOptions() { // bar status settings toolBar("mainToolBar")->applySettings(m_config->group("toolbar")); // do config for work toolbar m_toolsbar->applySettings(m_config->group("workbar")); fileOpenRecent->loadEntries(m_config->group("Recent Files")); setImageMimeType(UmbrelloSettings::imageMimeType()); resize(UmbrelloSettings::geometry()); } Does it help to uncomment some of the workbar related applySettingsCall 2: Do //QPixmap p = Icon_Utils::SmallIcon(iconType); QTreeWidgetItem::setIcon(0, QIcon()); work ?
(In reply to comment #6) > So when you remove > [workbar] > ToolButtonStyle=IconOnly > > from umbrellorc and start umbrello then umbrello crashes ? No, works but it crashes removing [General Options] Geometry=947,549 autosavetime=5 the next umbrellorc doesn't contain any [General Options] section and in [Mainwindow] are added the two lines: Height 1050=307 Width 1680=294 > Does it help to uncomment some of the workbar related applySettingsCall tryed various combinations, nothing works > //QPixmap p = Icon_Utils::SmallIcon(iconType); > QTreeWidgetItem::setIcon(0, QIcon()); > > work ? nope
As you tried this with 2 different umbrello versions I guess there must be a problem outside the umbrello code. Can you try to run KDEHOME=/tmp/kde-test-home/ umbrello and report what happens ?
Sorry but this is the first version of umbrello I try, another guy opened this bug. Anyway, I tryed with KDEHOME=... and it's still crashing
> Sorry but this is the first version of umbrello I try, another guy opened this bug. I see - Unfortunally the first reporter did not tell us if he had found the reason for this problem, so we have to take a deeper look into this issue.
What happens when you run umbrello --export-formats Do you see a list of file extensions similar to bmp bw dot eps epsf epsi ico jp2 jpeg jpg pcx pic png ppm rgb rgba sgi svg tga tif tiff xbm xpm xv or does umbrello crash ?
Another idea would be to comment out the following lines in umlistview.cpp 121 // connect(this, SIGNAL(itemCollapsed(QTreeWidgetItem*)), this, SLOT(slotCollapsed(QTreeWidgetItem*))); 122 // connect(this, SIGNAL(itemExpanded(QTreeWidgetItem*)), this, SLOT(slotExpanded(QTreeWidgetItem*))); This will not trigger the setIcon call mentioned in the backtrace.
I have news: today I updated to 2.11.1 / kde 4.11.1 and umbrello doesn't crash anymore but some icons from gui are missing: http://wstaw.org/m/2013/09/04/umbrello.png If I'm not wrong, missing icons should be umbrello's ones. The chakra's umbrello package seems contain all required files, in right location: http://paste.chakra-project.org/5114/ I tryed removing ~/.kde4/cache-<hostname>/icon-cache.kcache, but didn't solved. Then I tryed moving some files from /usr/share/apps/umbrello/pics/ to /usr/share/pixmaps/ and they showed in toolbar. Is "/usr/share/apps/umbrello/pics/" the right location or had to file a bug to chakra's packages maintainers?
(In reply to comment #13) > I have news: today I updated to 2.11.1 / kde 4.11.1 and umbrello doesn't > crash anymore fine > but some icons from gui are missing: > > http://wstaw.org/m/2013/09/04/umbrello.png > > If I'm not wrong, missing icons should be umbrello's ones. they may be installed into a wrong location, see below > The chakra's umbrello package seems contain all required files, good > in right location: seems to be not the case > I tryed removing ~/.kde4/cache-<hostname>/icon-cache.kcache, but didn't solved. good, would help for corrupted cache > Then I tryed moving some files from /usr/share/apps/umbrello/pics/ > to /usr/share/pixmaps/ and they showed in toolbar. indicates wrong install location The correct location could be retrieved with kde4-config --path data > "/usr/share/apps/umbrello/pics/" the right location probably no, see above > or had to file a bug to chakra's packages maintainers? yes
Hi, original reporter here. I have upgraded to the latest version but the crash remains identical (as per description from 2013-01-30) for me. Running with a virgin KDEHOME or deleting ~/.kde4/share/config/umbrellorc doesn't help. Running with --export-formats gives me a list (bmp bw dot eps epsf epsi ico jp2 jpeg jpg pcx pic png ppm rgb rgba sgi svg tga tif tiff webp xbm xpm xv) without crashing. The bug may not be triggered anymore by Giuseppe's setup, but it's still there, unchanged, on my setup. Please tell me if there's any manipulation I can do to give you more information. > $ umbrello --version > Qt: 4.8.4 > KDE Development Platform: 4.11.1 > Umbrello UML Modeller: 2.11.1
yes, please try the change mentioned in comment 12
*** This bug has been marked as a duplicate of bug 296300 ***
(In reply to comment #17) > > > *** This bug has been marked as a duplicate of bug 296300 *** This earlier bug contains also a fix.