• Lamarque Souza's avatar
    Fix crash when starting Krita with Qt compiled in debug mode. · 97c03e0f
    Lamarque Souza authored
    This is the backtrace:
    
    0  0x00007ffff38a11cc in KoColorSet::getGroup(QString const&) () from
    /usr/lib64/libkritapigment.so.18
    1  0x00007ffff3d2aa69 in KisPaletteModel::index(int, int, QModelIndex
    const&) const () from /usr/lib64/libkritawidgets.so.18
    2  0x00007ffff5812796 in
    QAbstractItemView::setModel(QAbstractItemModel*) () from
    /usr/lib64/libQt5Widgets.so.5
    3  0x00007ffff582e749 in QHeaderView::setModel(QAbstractItemModel*) ()
    from /usr/lib64/libQt5Widgets.so.5
    4  0x00007ffff5871493 in QTableView::setModel(QAbstractItemModel*) ()
    from /usr/lib64/libQt5Widgets.so.5
    5  0x00007ffff3d31e17 in
    KisPaletteView::setPaletteModel(KisPaletteModel*) () from
    /usr/lib64/libkritawidgets.so.18
    6  0x00007ffff3d2691e in
    KisDlgInternalColorSelector::KisDlgInternalColorSelector(QWidget*,
    KoColor, KisDlgInternalColorSelector::Config, QString const&,
    KoColorDisplayRendererInterface const*) () from
    /usr/lib64/libkritawidgets.so.18
    7  0x00007ffff7000d67 in
    KoDualColorButton::Private::init(KoDualColorButton*) () from
    /usr/lib64/libkritaui.so.18
    8  0x00007ffff7002c5b in KoDualColorButton::KoDualColorButton(KoColor
    const&, KoColor const&, KoColorDisplayRendererInterface const*,
    QWidget*, QWidget*) ()
      from /usr/lib64/libkritaui.so.18
    9  0x00007ffff6e2b5b5 in KisControlFrame::setup(QWidget*) () from
    /usr/lib64/libkritaui.so.18
    10 0x00007ffff71014ea in KisViewManager::KisViewManager(QWidget*,
    KActionCollection*) () from /usr/lib64/libkritaui.so.18
    11 0x00007ffff70cb72b in KisMainWindow::KisMainWindow(QUuid) () from
    /usr/lib64/libkritaui.so.18
    12 0x00007ffff70d8352 in KisPart::createMainWindow(QUuid) () from
    /usr/lib64/libkritaui.so.18
    13 0x00007ffff70d85de in KisPart::startBlankSession() () from
    /usr/lib64/libkritaui.so.18
    14 0x00007ffff70995b9 in KisApplication::start(KisApplicationArguments
    const&) () from /usr/lib64/libkritaui.so.18
    15 0x0000555555e4e229 in main ()
    
    The KisPaletteModel::index() call is inside an Q_ASSERT_X in
    QAbstractItemView::setModel(), so you have to compile Qt in debug mode
    to reproduce this crash.
    
    m_rowGroupNameMap is empty during the startup.
    97c03e0f
Name
Last commit
Last update
.github Loading commit data...
.gitlab/merge_request_templates Loading commit data...
3rdparty Loading commit data...
benchmarks Loading commit data...
build-tools Loading commit data...
cmake Loading commit data...
dev-tools/python Loading commit data...
interfaces Loading commit data...
krita Loading commit data...
libs Loading commit data...
packaging Loading commit data...
pics Loading commit data...
plugins Loading commit data...
sdk Loading commit data...
winquirks Loading commit data...
.arcconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
COPYING Loading commit data...
COPYING-CMAKE-SCRIPTS Loading commit data...
CTestConfig.cmake Loading commit data...
HACKING Loading commit data...
KoAlwaysInline.h Loading commit data...
KoConfig.h.cmake Loading commit data...
Mainpage.dox Loading commit data...
Messages.sh Loading commit data...
README.android.md Loading commit data...
README.md Loading commit data...
action_i18n.pl Loading commit data...
config-gsl.h.cmake Loading commit data...
config-hash-table-implementaion.h.cmake Loading commit data...
config-hdr.h.cmake Loading commit data...
config-hide-safe-asserts.h.cmake Loading commit data...
config-high-dpi-scale-factor-rounding-policy.h.in Loading commit data...
config-limit-long-tests.h.cmake Loading commit data...
config-ocio.h.cmake Loading commit data...
config-powf.h.cmake Loading commit data...
config-qtmultimedia.h.cmake Loading commit data...
config-set-has-border-in-full-screen-default.h.in Loading commit data...
config-vc.h.cmake Loading commit data...
config_convolution.h.cmake Loading commit data...
config_use_qt_tablet_windows.h.cmake Loading commit data...
extracti18n.pl Loading commit data...
kundo2_aware_xgettext.sh Loading commit data...
setup.cfg Loading commit data...