Bug 140813 - crash on startup when using the Motif or CDE widget style
Summary: crash on startup when using the Motif or CDE widget style
Status: RESOLVED DUPLICATE of bug 146306
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 1.6.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-29 05:48 UTC by gnomino
Modified: 2007-06-22 15:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gnomino 2007-01-29 05:48:25 UTC
Version:           1.6.1 (using KDE KDE 3.5.5)
Installed from:    Fedora RPMs
OS:                Linux

Krita crashes upon startup with the following backtrace:

#0  0x4211b096 in QScrollView::viewport ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#1  0x002b314a in SqueezedComboBox::SqueezedComboBox ()
   from /usr/lib/libkritaui.so.1
#2  0x002cbee7 in WdgNewImage::WdgNewImage$base ()
   from /usr/lib/libkritaui.so.1
#3  0x0029d4bc in KisCustomImageWidget::KisCustomImageWidget ()
   from /usr/lib/libkritaui.so.1
#4  0x002202ad in KisDoc::createCustomDocumentWidget ()
   from /usr/lib/libkritaui.so.1
#5  0x00ce8d41 in KoDocument::createOpenPane ()
   from /usr/lib/libkofficecore.so.3
#6  0x00ce926b in KoDocument::showStartUpWidget ()
   from /usr/lib/libkofficecore.so.3
#7  0x00ceabe7 in KoApplication::start () from /usr/lib/libkofficecore.so.3
#8  0x00dfa10c in kdemain () from /usr/lib/libkdeinit_krita.so
#9  0x08048472 in ?? ()
#10 0x4177cf2c in __libc_start_main () from /lib/libc.so.6
#11 0x080483c1 in ?? ()

To reproduce, start krita with --style CDE or --style Motif.

The cause seems to be the initialization of QComboBox using the first constructor, in the SqueezedComboBox constructor. That first QComboBox constructor gives it a popup menu instead of a listbox when using the Motif style, so the call to listBox() (in the SqueezedComboBox constructor) returns NULL, which is then passed as "this" to QScrollView::viewport().
Comment 1 Halla Rempt 2007-01-29 10:04:50 UTC
I can confirm on Kubuntu.
Comment 2 Sven Langkamp 2007-06-22 15:35:29 UTC

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