Summary: | Umbrello crash at startup. | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Vincent de Phily <moltonel> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | gcala, ralf.habacker |
Priority: | NOR | ||
Version: | 2.11.0 | ||
Target Milestone: | --- | ||
Platform: | Chakra | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | New crash information added by DrKonqi |
Description
Vincent de Phily
2013-01-30 17:54:24 UTC
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. |