Bug 347928 - crash opening a .psd file
Summary: crash opening a .psd file
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 05:49 UTC by Jaime Torres
Modified: 2015-05-21 07:20 UTC (History)
1 user (show)

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 Jaime Torres 2015-05-19 05:49:10 UTC
Application: krita (2.9.4 (git bd28f7a))
KDE Platform Version: 4.14.7 (Compiled from sources)
Qt Version: 4.8.7
Operating System: Linux 4.0.1-1-desktop x86_64
Distribution: "openSUSE 20150508 (Tumbleweed) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

Opening a .psd filecommit bd28f7ad6c63170d876ea0d37d8b8cc994187146
Author: l10n daemon script <scripty@kde.org>
Date:   Mon May 18 04:11:16 2015 +0000
 with calligra recently compiled from master.

Before, it failed to load all the gimp resources:
krita(1157) SharedPointerStroragePolicy<KisSharedPtr<KisBrush> > >::loadResources: Loading resource  "/usr/share/create/brushes/gimp/3circle16.gbr" failed

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f57e1da47c0 (LWP 1157))]

Thread 6 (Thread 0x7f57a3fff700 (LWP 1170)):
#0  0x00007f57daaa891f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f57dad39f7c in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x1ee8c10) at /g/kdegit/qt/src/corelib/thread/qwaitcondition_unix.cpp:86
#2  0x00007f57dad39f7c in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=mutex@entry=0x1ee8bc0, time=time@entry=18446744073709551615) at /g/kdegit/qt/src/corelib/thread/qwaitcondition_unix.cpp:158
#3  0x00007f57dad367e4 in QSemaphore::acquire(int) (this=0x1ee88f0, n=1) at /g/kdegit/qt/src/corelib/thread/qsemaphore.cpp:144
#4  0x00007f57e0ac6b4b in KisTileDataPooler::waitForWork() (this=0x1ee88e0) at /g/kdegit/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:162
#5  0x00007f57e0ac6b91 in KisTileDataPooler::run() (this=0x1ee88e0) at /g/kdegit/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:184
#6  0x00007f57dad39b53 in QThreadPrivate::start(void*) (arg=0x1ee88e0) at /g/kdegit/qt/src/corelib/thread/qthread_unix.cpp:349
#7  0x00007f57daaa4484 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f57d9e6aa4d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f57b1903700 (LWP 1171)):
#0  0x00007f57daaa891f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f57dad39f7c in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x1ee8fc0) at /g/kdegit/qt/src/corelib/thread/qwaitcondition_unix.cpp:86
#2  0x00007f57dad39f7c in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=mutex@entry=0x1ee8f70, time=time@entry=18446744073709551615) at /g/kdegit/qt/src/corelib/thread/qwaitcondition_unix.cpp:158
#3  0x00007f57dad36abb in QSemaphore::tryAcquire(int, int) (this=0x1ee8c80, n=1, timeout=-1) at /g/kdegit/qt/src/corelib/thread/qsemaphore.cpp:221
#4  0x00007f57e0ada65a in KisTileDataSwapper::run() (this=<optimized out>) at /g/kdegit/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007f57dad39b53 in QThreadPrivate::start(void*) (arg=0x1ee8918) at /g/kdegit/qt/src/corelib/thread/qthread_unix.cpp:349
#6  0x00007f57daaa4484 in start_thread () at /lib64/libpthread.so.0
#7  0x00007f57d9e6aa4d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f57b1102700 (LWP 1172)):
#0  0x00007f57daaa891f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f57dad39f7c in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x2182f70) at /g/kdegit/qt/src/corelib/thread/qwaitcondition_unix.cpp:86
#2  0x00007f57dad39f7c in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0x2182ad8, mutex=mutex@entry=0x2182ad0, time=time@entry=18446744073709551615) at /g/kdegit/qt/src/corelib/thread/qwaitcondition_unix.cpp:158
#3  0x00007f57dbde7eed in QFileInfoGatherer::run() (this=0x2182ac0) at /g/kdegit/qt/src/gui/dialogs/qfileinfogatherer.cpp:214
#4  0x00007f57dad39b53 in QThreadPrivate::start(void*) (arg=0x2182ac0) at /g/kdegit/qt/src/corelib/thread/qthread_unix.cpp:349
#5  0x00007f57daaa4484 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f57d9e6aa4d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f57b2104700 (LWP 1173)):
#0  0x00007ffc213bbd48 in clock_gettime ()
#1  0x00007f57d9e7747d in clock_gettime () at /lib64/libc.so.6
#2  0x00007f57dad8f0e6 in qt_gettime() (frac=<synthetic pointer>, sec=<synthetic pointer>) at /g/kdegit/qt/src/corelib/tools/qelapsedtimer_unix.cpp:127
#3  0x00007f57dad8f0e6 in qt_gettime() () at /g/kdegit/qt/src/corelib/tools/qelapsedtimer_unix.cpp:144
#4  0x00007f57dae5f4ff in QTimerInfoList::updateCurrentTime() (this=this@entry=0x7f57ac48cb38) at /g/kdegit/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:354
#5  0x00007f57dae5f80d in QTimerInfoList::timerWait(timeval&) (this=this@entry=0x7f57ac48cb38, tm=...) at /g/kdegit/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f57dae6186a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f57ac0008c0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:923
#7  0x00007f57dae30a69 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f57b2103dc0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:149
#8  0x00007f57dae30cb7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f57b2103dc0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:204
#9  0x00007f57dad37833 in QThread::exec() (this=this@entry=0x2181f20) at /g/kdegit/qt/src/corelib/thread/qthread.cpp:538
#10 0x00007f57dae13074 in QInotifyFileSystemWatcherEngine::run() (this=0x2181f20) at /g/kdegit/qt/src/corelib/io/qfilesystemwatcher_inotify.cpp:265
#11 0x00007f57dad39b53 in QThreadPrivate::start(void*) (arg=0x2181f20) at /g/kdegit/qt/src/corelib/thread/qthread_unix.cpp:349
#12 0x00007f57daaa4484 in start_thread () at /lib64/libpthread.so.0
#13 0x00007f57d9e6aa4d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f57a37fe700 (LWP 1189)):
#0  0x00007f57daaa891f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f5787a2d073 in  () at /usr/lib64/dri/r600_dri.so
#2  0x00007f5787a2c927 in  () at /usr/lib64/dri/r600_dri.so
#3  0x00007f57daaa4484 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f57d9e6aa4d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f57e1da47c0 (LWP 1157)):
[KCrash Handler]
#6  0x00007f57bd4b5470 in QMap<QString, KisSharedPtr<KisDynamicSensor> >::size() const (this=0x28) at /usr/lib/qt4.5/include/QtCore/qmap.h:201
#7  0x00007f57bd4b3b3e in QMap<QString, KisSharedPtr<KisDynamicSensor> >::values() const (this=0x28) at /usr/lib/qt4.5/include/QtCore/qmap.h:866
#8  0x00007f57bd4b38dd in KisCurveOption::sensors() (this=<optimized out>) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_curve_option.cpp:376
#9  0x00007f57bd4c2dc3 in KisMultiSensorsModel::rowCount(QModelIndex const&) const (this=<optimized out>) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp:42
#10 0x00007f57dae2536b in QAbstractItemModel::hasIndex(int, int, QModelIndex const&) const (this=this@entry=0x7e1b5b0, row=row@entry=0, column=column@entry=0, parent=...) at /g/kdegit/qt/src/corelib/kernel/qabstractitemmodel.cpp:1636
#11 0x00007f57dae2570b in QAbstractListModel::index(int, int, QModelIndex const&) const (this=0x7e1b5b0, row=0, column=0, parent=...) at /g/kdegit/qt/src/corelib/kernel/qabstractitemmodel.cpp:3276
#12 0x00007f57dbdfff50 in QAbstractItemView::setModel(QAbstractItemModel*) (this=0x7e17d10, model=0x7e1b5b0) at /g/kdegit/qt/src/gui/itemviews/qabstractitemview.cpp:664
#13 0x00007f57bd4c39c7 in KisMultiSensorsSelector::KisMultiSensorsSelector(QWidget*) (this=0x7e15a70, parent=<optimized out>) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_multi_sensors_selector.cpp:44
#14 0x00007f57bd4b6299 in Ui_WdgCurveOption::setupUi(QWidget*) (this=0x7e15890, WdgCurveOption=0x7e17570) at /g/b45/calligra/krita/plugins/paintops/libpaintop/ui_wdgcurveoption.h:63
#15 0x00007f57bd4b5991 in KisCurveOptionWidget::KisCurveOptionWidget(KisCurveOption*, bool) (this=0x7e13210, curveOption=0x7e13260, hideSlider=true) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp:48
#16 0x00007f57bd4c9a0d in KisFlowOpacityOptionWidget::KisFlowOpacityOptionWidget() (this=0x7e13210) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp:39
#17 0x00007f57bc5128e1 in KisBrushOpSettingsWidget::KisBrushOpSettingsWidget(QWidget*) (this=0x7b87a40, parent=<optimized out>) at /g/kdegit/calligra/krita/plugins/paintops/defaultpaintops/brush/kis_brushop_settings_widget.cpp:52
#18 0x00007f57bc51048f in KisSimplePaintOpFactory<KisBrushOp, KisBrushBasedPaintOpSettings, KisBrushOpSettingsWidget>::createSettingsWidget(QWidget*) (this=<optimized out>, parent=0x28) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_simple_paintop_factory.h:110
#19 0x00007f57e15088a9 in KisPaintopBox::setCurrentPaintop(KoID const&, KisSharedPtr<KisPaintOpPreset>) (this=0x1debc30, paintop=..., preset=...) at /g/kdegit/calligra/krita/ui/kis_paintop_box.cc:517
#20 0x00007f57e15084da in KisPaintopBox::restoreResource(KoResource*) (this=0x1debc30, resource=0x7f579cf24830) at /g/kdegit/calligra/krita/ui/kis_paintop_box.cc:410
#21 0x00007f57e167ee1b in KisViewManager::setCurrentView(KisView*) (this=0x150c570, view=<optimized out>) at /g/kdegit/calligra/krita/ui/KisViewManager.cpp:472
#22 0x00007f57e165a402 in KisMainWindow::setActiveSubWindow(QWidget*) (this=0x13cf870, window=<optimized out>) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:1872
#23 0x00007f57e1650962 in KisMainWindow::subWindowActivated() (this=0x13cf870) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:1792
#24 0x00007f57e165b297 in KisMainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x13cf870, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /g/b45/calligra/krita/ui/KisMainWindow.moc:200
#25 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x14574d0, m=m@entry=0x7f57dc3fdee0 <QMdiArea::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc212e92f0) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#26 0x00007f57dbd12d52 in QMdiArea::subWindowActivated(QMdiSubWindow*) (this=this@entry=0x14574d0, _t1=0x6b5f470) at .moc/debug-shared/moc_qmdiarea.cpp:214
#27 0x00007f57dbd1586b in QMdiAreaPrivate::emitWindowActivated(QMdiSubWindow*) (this=this@entry=0x151a3b0, activeWindow=activeWindow@entry=0x6b5f470) at /g/kdegit/qt/src/gui/widgets/qmdiarea.cpp:1084
#28 0x00007f57dbd162a9 in QMdiAreaPrivate::_q_processWindowStateChanged(QFlags<Qt::WindowState>, QFlags<Qt::WindowState>) (this=0x151a3b0, oldState=..., newState=...) at /g/kdegit/qt/src/gui/widgets/qmdiarea.cpp:753
#29 0x00007f57dbd17e8c in QMdiArea::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x28, _c=40, _id=0, _a=0x7ffc212e88a0) at .moc/debug-shared/moc_qmdiarea.cpp:111
#30 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x6b5f470, m=m@entry=0x7f57dc3feb00 <QMdiSubWindow::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc212e94a0) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#31 0x00007f57dbd1f652 in QMdiSubWindow::windowStateChanged(QFlags<Qt::WindowState>, QFlags<Qt::WindowState>) (this=this@entry=0x6b5f470, _t1=..., _t2=...) at .moc/debug-shared/moc_qmdisubwindow.cpp:150
#32 0x00007f57dbd2463d in QMdiSubWindowPrivate::setActive(bool, bool) (this=this@entry=0x79df320, activate=activate@entry=true, changeFocus=changeFocus@entry=true) at /g/kdegit/qt/src/gui/widgets/qmdisubwindow.cpp:1441
#33 0x00007f57dbd255b7 in QMdiSubWindow::eventFilter(QObject*, QEvent*) (this=0x6b5f470, object=0x2952e80, event=0x7ffc212e9a80) at /g/kdegit/qt/src/gui/widgets/qmdisubwindow.cpp:2728
#34 0x00007f57dae325f1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (this=this@entry=0x1242c60, receiver=receiver@entry=0x2952e80, event=event@entry=0x7ffc212e9a80) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1065
#35 0x00007f57db8f1c4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x1242c60, receiver=receiver@entry=0x2952e80, e=e@entry=0x7ffc212e9a80) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4561
#36 0x00007f57db8fa343 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=0x2952e80, e=0x7ffc212e9a80) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4530
#37 0x00007f57e1624503 in KisApplication::notify(QObject*, QEvent*) (this=0x28, receiver=0x2952e80, event=0x7ffc212e9a80) at /g/kdegit/calligra/krita/ui/KisApplication.cpp:489
#38 0x00007f57dae32440 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=receiver@entry=0x2952e80, event=event@entry=0x7ffc212e9a80) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:955
#39 0x00007f57db9476d0 in QWidgetPrivate::show_helper() (event=0x7ffc212e9a80, receiver=0x2952e80) at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:231
#40 0x00007f57db9476d0 in QWidgetPrivate::show_helper() (this=this@entry=0x28b8680) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:7569
#41 0x00007f57db9498dc in QWidget::setVisible(bool) (this=0x2952e80, visible=<optimized out>) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:7791
#42 0x00007f57db947413 in QWidgetPrivate::showChildren(bool) (this=<optimized out>) at ../../include/QtGui/../../../../kdegit/qt/src/gui/kernel/qwidget.h:497
#43 0x00007f57db947413 in QWidgetPrivate::showChildren(bool) (this=this@entry=0x79df320, spontaneous=spontaneous@entry=false) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:7879
#44 0x00007f57db9474a2 in QWidgetPrivate::show_helper() (this=this@entry=0x79df320) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:7516
#45 0x00007f57db9498dc in QWidget::setVisible(bool) (this=0x6b5f470, visible=<optimized out>) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:7791
#46 0x00007f57dbd24fc5 in QMdiSubWindow::changeEvent(QEvent*) (this=0x6b5f470, changeEvent=<optimized out>) at /g/kdegit/qt/src/gui/widgets/qmdisubwindow.cpp:3004
#47 0x00007f57db94a354 in QWidget::event(QEvent*) (this=this@entry=0x6b5f470, event=event@entry=0x7ffc212ea2e0) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:8642
#48 0x00007f57dbd262bd in QMdiSubWindow::event(QEvent*) (this=0x6b5f470, event=0x7ffc212ea2e0) at /g/kdegit/qt/src/gui/widgets/qmdisubwindow.cpp:2919
#49 0x00007f57db8f1c5f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x1242c60, receiver=receiver@entry=0x6b5f470, e=e@entry=0x7ffc212ea2e0) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4565
#50 0x00007f57db8fa343 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=0x6b5f470, e=0x7ffc212ea2e0) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4530
#51 0x00007f57e1624503 in KisApplication::notify(QObject*, QEvent*) (this=0x28, receiver=0x6b5f470, event=0x7ffc212ea2e0) at /g/kdegit/calligra/krita/ui/KisApplication.cpp:489
#52 0x00007f57dae32440 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=receiver@entry=0x6b5f470, event=event@entry=0x7ffc212ea2e0) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:955
#53 0x00007f57db98c9c5 in QWidget::setWindowState(QFlags<Qt::WindowState>) (event=0x7ffc212ea2e0, receiver=0x6b5f470) at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:231
#54 0x00007f57db98c9c5 in QWidget::setWindowState(QFlags<Qt::WindowState>) (this=this@entry=0x6b5f470, newstate=...) at /g/kdegit/qt/src/gui/kernel/qwidget_x11.cpp:1853
#55 0x00007f57db946f03 in QWidget::showMaximized() (this=this@entry=0x6b5f470) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:3161
#56 0x00007f57dbd25656 in QMdiSubWindow::eventFilter(QObject*, QEvent*) (this=0x6b5f470, object=0x2952e80, event=0x7ffc212ea920) at /g/kdegit/qt/src/gui/widgets/qmdisubwindow.cpp:2743
#57 0x00007f57dae325f1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (this=this@entry=0x1242c60, receiver=receiver@entry=0x2952e80, event=event@entry=0x7ffc212ea920) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1065
#58 0x00007f57db8f1c4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x1242c60, receiver=receiver@entry=0x2952e80, e=e@entry=0x7ffc212ea920) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4561
#59 0x00007f57db8fa343 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=0x2952e80, e=0x7ffc212ea920) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4530
#60 0x00007f57e1624503 in KisApplication::notify(QObject*, QEvent*) (this=0x28, receiver=0x2952e80, event=0x7ffc212ea920) at /g/kdegit/calligra/krita/ui/KisApplication.cpp:489
#61 0x00007f57dae32440 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=receiver@entry=0x2952e80, event=event@entry=0x7ffc212ea920) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:955
#62 0x00007f57db98c9c5 in QWidget::setWindowState(QFlags<Qt::WindowState>) (event=0x7ffc212ea920, receiver=0x2952e80) at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:231
#63 0x00007f57db98c9c5 in QWidget::setWindowState(QFlags<Qt::WindowState>) (this=this@entry=0x2952e80, newstate=...) at /g/kdegit/qt/src/gui/kernel/qwidget_x11.cpp:1853
#64 0x00007f57db946f03 in QWidget::showMaximized() (this=0x2952e80) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:3161
#65 0x00007f57e16538ac in KisMainWindow::showView(KisView*) (this=0x13cf870, imageView=0x2952e80) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:505
#66 0x00007f57e1653394 in KisMainWindow::addView(KisView*) (this=0x13cf870, view=0x2952e80) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:480
#67 0x00007f57e165452f in KisMainWindow::slotLoadCompleted() (this=0x13cf870) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:697
#68 0x00007f57e165b06e in KisMainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x13cf870, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /g/b45/calligra/krita/ui/KisMainWindow.moc:171
#69 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#70 0x00007f57e163635a in KisDocument::Private::openLocalFile() (this=<optimized out>) at /g/kdegit/calligra/krita/ui/KisDocument.cpp:404
#71 0x00007f57e162e226 in KisDocument::openUrlInternal(KUrl const&) (this=0x24a47b0, url=...) at /g/kdegit/calligra/krita/ui/KisDocument.cpp:2425
#72 0x00007f57e162de37 in KisDocument::openUrl(KUrl const&) (this=0x24a47b0, _url=...) at /g/kdegit/calligra/krita/ui/KisDocument.cpp:1232
#73 0x00007f57e16543f3 in KisMainWindow::openDocumentInternal(KUrl const&, KisDocument*) (this=0x13cf870, url=..., newdoc=<optimized out>) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:677
#74 0x00007f57e16541fc in KisMainWindow::openDocument(KUrl const&) (this=0x13cf870, url=...) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:663
#75 0x00007f57e1657152 in KisMainWindow::slotFileOpenRecent(KUrl const&) (this=0x28, url=...) at /g/kdegit/calligra/krita/ui/KisMainWindow.cpp:1153
#76 0x00007f57e165aef6 in KisMainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x13cf870, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc212eb1a0) at /g/b45/calligra/krita/ui/KisMainWindow.moc:153
#77 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffc212eb1a0) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#78 0x00007f57dc5b5563 in KRecentFilesAction::urlSelected(KUrl const&) (this=0x28, _t1=...) at /g/b45/kdelibs/kdeui/krecentfilesaction.moc:137
#79 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffc212eb290) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#80 0x00007f57dc5ba3cd in KSelectAction::triggered(QAction*) (this=0x28, _t1=<optimized out>) at /g/b45/kdelibs/kdeui/kselectaction.moc:188
#81 0x00007f57dc5ba33c in KSelectAction::actionTriggered(QAction*) (this=0x2421c40, action=0x242be60) at /g/kdegit/kdelibs/kdeui/actions/kselectaction.cpp:321
#82 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x2421b70, m=m@entry=0x7f57dc3f1040 <QActionGroup::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc212eb3e0) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#83 0x00007f57db8eea78 in QActionGroup::triggered(QAction*) (this=this@entry=0x2421b70, _t1=_t1@entry=0x242be60) at .moc/debug-shared/moc_qactiongroup.cpp:159
#84 0x00007f57db8eeb09 in QActionGroupPrivate::_q_actionTriggered() (this=<optimized out>) at /g/kdegit/qt/src/gui/kernel/qactiongroup.cpp:93
#85 0x00007f57db8ef02c in QActionGroup::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x28, _c=40, _id=0, _a=0x7ffc212e88a0) at .moc/debug-shared/moc_qactiongroup.cpp:77
#86 0x00007f57dae480f5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x242be60, m=m@entry=0x7f57dc3f0f40 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc212eb520) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3567
#87 0x00007f57db8eb9c2 in QAction::triggered(bool) (this=this@entry=0x242be60, _t1=false) at .moc/debug-shared/moc_qaction.cpp:276
#88 0x00007f57db8ed2b0 in QAction::activate(QAction::ActionEvent) (this=this@entry=0x242be60, event=event@entry=QAction::Trigger) at /g/kdegit/qt/src/gui/kernel/qaction.cpp:1257
#89 0x00007f57dbd2907c in QMenuPrivate::activateCausedStack(QList<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) (this=this@entry=0x242a260, causedStack=..., action=action@entry=0x242be60, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:1037
#90 0x00007f57dbd2ddde in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) (this=this@entry=0x242a260, action=action@entry=0x242be60, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:1129
#91 0x00007f57dbd31ebb in QMenu::mouseReleaseEvent(QMouseEvent*) (this=<optimized out>, e=0x7ffc212ebcf0) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:2371
#92 0x00007f57db949c8d in QWidget::event(QEvent*) (this=this@entry=0x2421140, event=event@entry=0x7ffc212ebcf0) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:8389
#93 0x00007f57dbd325ab in QMenu::event(QEvent*) (this=0x2421140, e=0x7ffc212ebcf0) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:2480
#94 0x00007f57db8f1c5f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x1242c60, receiver=receiver@entry=0x2421140, e=0x7ffc212ebcf0) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4565
#95 0x00007f57db8f89c1 in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x2421140, e=0x7ffc212ebcf0) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4108
#96 0x00007f57e1624503 in KisApplication::notify(QObject*, QEvent*) (this=0x28, receiver=0x2421140, event=0x7ffc212ebcf0) at /g/kdegit/calligra/krita/ui/KisApplication.cpp:489
#97 0x00007f57dae32440 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffc212ec4c8, receiver=receiver@entry=0x2421140, event=event@entry=0x7ffc212ebcf0) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:955
#98 0x00007f57db8f7bcf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (event=0x7ffc212ebcf0, receiver=0x2421140) at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:234
#99 0x00007f57db8f7bcf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (receiver=receiver@entry=0x2421140, event=event@entry=0x7ffc212ebcf0, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x2421140, buttonDown=buttonDown@entry=0x7f57dc4295e8 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:3171
#100 0x00007f57db972fad in QETWidget::translateMouseEvent(_XEvent const*) (this=this@entry=0x2421140, event=event@entry=0x7ffc212ec150) at /g/kdegit/qt/src/gui/kernel/qapplication_x11.cpp:4453
#101 0x00007f57db971168 in QApplication::x11ProcessEvent(_XEvent*) (this=<optimized out>, event=event@entry=0x7ffc212ec150) at /g/kdegit/qt/src/gui/kernel/qapplication_x11.cpp:3520
#102 0x00007f57db996ba8 in QEventDispatcherX11::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x1061840, flags=...) at /g/kdegit/qt/src/gui/kernel/qeventdispatcher_x11.cpp:132
#103 0x00007f57dae30a69 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc212ec3c0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:149
#104 0x00007f57dae30cb7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc212ec3c0, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:204
#105 0x00007f57dae362eb in QCoreApplication::exec() () at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1227
#106 0x00007f57db8f0158 in QApplication::exec() () at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:3823
#107 0x0000000000402c56 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /g/kdegit/calligra/krita/main.cc:179

The reporter indicates this bug may be a duplicate of or related to bug 331652.

Possible duplicates by query: bug 331652.

Reproducible: Always
Comment 1 Halla Rempt 2015-05-19 11:19:29 UTC
Hi!

Is this with all psd files, or a specific one? If the latter, could you share the file with us? Thanks!
Comment 2 Jaime Torres 2015-05-19 17:15:22 UTC
Hello, 
Unfortunately, with all the  .psd I have in local, the ones in krita tests and the one I tried first.
calligra/krita/plugins/formats/psd/tests/data/testing_psd_ls.psd
calligra/krita/plugins/formats/psd/tests/data/sources/100x100lab8.psd

Best Regards.
Comment 3 Jaime Torres 2015-05-19 17:21:52 UTC
Run under valgrind there is the significant output:


==24854== Conditional jump or move depends on uninitialised value(s)
==24854==    at 0x50F6824: int const& qMin<int>(int const&, int const&) (in /opt/kde4/lib/libkritaui.so.14.0.0)
==24854==    by 0x520164C: KisFavoriteResourceManager::updateFavoritePresets() (kis_favorite_resource_manager.cpp:331)
==24854==    by 0x5202075: KoResourceServer<KisPaintOpPreset, SharedPointerStroragePolicy<KisSharedPtr<KisPaintOpPreset> > >::addObserver(KoResourceServerObserver<KisPaintOpPreset, SharedPointerStroragePolicy<KisSharedPtr<KisPaintOpPreset> > >*, bool) (KoResourceServer.h:422)
==24854==    by 0x5200E93: KisFavoriteResourceManager::KisFavoriteResourceManager(KisPaintopBox*) (kis_favorite_resource_manager.cpp:172)
==24854==    by 0x51D5AE2: KisPaintopBox::KisPaintopBox(KisViewManager*, QWidget*, char const*) (kis_paintop_box.cc:369)
==24854==    by 0x518E121: KisControlFrame::KisControlFrame(KisViewManager*, QWidget*, char const*) (kis_control_frame.cpp:120)
==24854==    by 0x534B3A1: KisViewManager::KisViewManager(QWidget*, KActionCollection*) (KisViewManager.cpp:317)
==24854==    by 0x5320AA7: KisMainWindow::KisMainWindow() (KisMainWindow.cpp:282)
==24854==    by 0x53320C8: KisPart::createMainWindow() (KisPart.cpp:258)
==24854==    by 0x52F119F: KisApplication::start() (KisApplication.cpp:314)
==24854==    by 0x402BE7: main (main.cc:167)

==24854== Invalid read of size 8
==24854==    at 0x2DBFF470: QMap<QString, KisSharedPtr<KisDynamicSensor> >::size() const (in /opt/kde4/lib/libkritalibpaintop.so.14.0.0)
==24854==    by 0x2DBFDB3D: QMap<QString, KisSharedPtr<KisDynamicSensor> >::values() const (qmap.h:866)
==24854==    by 0x2DBFD8DC: KisCurveOption::sensors() (in /opt/kde4/lib/libkritalibpaintop.so.14.0.0)
==24854==    by 0x2DC0CDC2: KisMultiSensorsModel::rowCount(QModelIndex const&) const (kis_multi_sensors_model_p.cpp:42)
==24854==    by 0xBA3236A: QAbstractItemModel::hasIndex(int, int, QModelIndex const&) const (qabstractitemmodel.cpp:1636)
==24854==    by 0xBA3270A: QAbstractListModel::index(int, int, QModelIndex const&) const (qabstractitemmodel.cpp:3276)
==24854==    by 0xAD21F4F: QAbstractItemView::setModel(QAbstractItemModel*) (qabstractitemview.cpp:664)
==24854==    by 0x2DC0D9C6: KisMultiSensorsSelector::KisMultiSensorsSelector(QWidget*) (kis_multi_sensors_selector.cpp:44)
==24854==    by 0x2DC00298: Ui_WdgCurveOption::setupUi(QWidget*) (ui_wdgcurveoption.h:63)
==24854==    by 0x2DBFF990: KisCurveOptionWidget::KisCurveOptionWidget(KisCurveOption*, bool) (kis_curve_option_widget.cpp:48)
==24854==    by 0x2DC13A0C: KisFlowOpacityOptionWidget::KisFlowOpacityOptionWidget() (kis_pressure_flow_opacity_option_widget.cpp:39)
==24854==    by 0x2EEC08E0: KisBrushOpSettingsWidget::KisBrushOpSettingsWidget(QWidget*) (kis_brushop_settings_widget.cpp:52)
==24854==  Address 0x28 is not stack'd, malloc'd or (recently) free'd
==24854==
Comment 4 Halla Rempt 2015-05-20 12:35:47 UTC
Weird -- nothing about those backtraces have anything to do with loading psd's -- it seems to happen somewhere in creating the ui for the brush options.
Comment 5 Jaime Torres 2015-05-20 13:56:40 UTC
I must say that I didn't try to open other image types. :-(
Comment 6 Halla Rempt 2015-05-20 14:37:51 UTC
But does the bug still happen for you?
Comment 7 Jaime Torres 2015-05-20 18:12:10 UTC
Yes, also in branch calligra/2.9 ( recompiled after git pull & git branch calligra/2.9 ). Now tested with a .jpg file.
Same problem creating a new image.
Comment 8 Jaime Torres 2015-05-20 19:47:17 UTC
I don't remember how to use reviewboard :-(. Please, do the commit if you like the patch.

This little patch fixes the crash for me.

diff --git a/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp b/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp
index 9822f78..b38f249 100644
--- a/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp
@@ -39,7 +39,12 @@ void KisMultiSensorsModel::setCurveOption(KisCurveOption *curveOption)
 
 int KisMultiSensorsModel::rowCount(const QModelIndex &/*parent*/) const
 {
-    return m_curveOption->sensors().size();
+    if (m_curveOption) {
+        return m_curveOption->sensors().size();
+    }
+    else {
+        return 0;
+    }
 }
 
 QVariant KisMultiSensorsModel::data(const QModelIndex &index, int role) const
Comment 9 Halla Rempt 2015-05-20 20:00:39 UTC
Could you try with a fresh user or a clean config? Obviously, this doesn't happen for everyone, so there must be something in your settings or collection of resources that Krita chokes on, and we need to figure out what that is, and then fix it!
Comment 10 Halla Rempt 2015-05-20 20:01:39 UTC
Oh, cool, thanks -- I hadn't seen the patch yet :-)
Comment 11 Halla Rempt 2015-05-21 07:20:17 UTC
Git commit de57c712c2f152962c5faf59a90859eaae0cfd39 by Boudewijn Rempt.
Committed on 21/05/2015 at 07:19.
Pushed by rempt into branch 'calligra/2.9'.

Patch by Jaime Torres. Thanks!
CCMAIL:jtamate@gmail.com

I'm still wondering, though why this crash happened for Jaime...

M  +6    -1    krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp

http://commits.kde.org/calligra/de57c712c2f152962c5faf59a90859eaae0cfd39