Bug 331652 - Krita crashes on file open.
Summary: Krita crashes on file open.
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.9 Beta
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-03-01 18:43 UTC by Arnie
Modified: 2014-03-22 12:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (18.63 KB, text/plain)
2014-03-22 12:05 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnie 2014-03-01 18:43:26 UTC
Application: krita (2.9 Pre-Alpha)
KDE Platform Version: 4.13.60
Qt Version: 4.8.6
Operating System: Linux 3.11.0-18-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:
Opening a file.  Previous version also crashed (loaded a new update this morning).  First try was with a JPG out of the camera.  Second try was with a XCF processed with GIMP.  Progress bar on the lower part of the screen stops at 50%, then the crash.

Note that there's no problem with the "stock" version of KDE on UBUNTU.

-- Arnie

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd2c45da7c0 (LWP 2798))]

Thread 6 (Thread 0x7fd2a0b00700 (LWP 2799)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fd2c2efcf7a in ?? () from /opt/project-neon/lib/libQtCore.so.4
#2  0x00007fd2c2efcd63 in QWaitCondition::wait(QMutex*, unsigned long) () from /opt/project-neon/lib/libQtCore.so.4
#3  0x00007fd2c2ef8018 in QSemaphore::tryAcquire(int, int) () from /opt/project-neon/lib/libQtCore.so.4
#4  0x00007fd2aefad152 in KisTileDataPooler::waitForWork (this=0x2b25fe0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/image/tiles3/kis_tile_data_pooler.cc:160
#5  0x00007fd2aefad1fc in KisTileDataPooler::run (this=0x2b25fe0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/image/tiles3/kis_tile_data_pooler.cc:184
#6  0x00007fd2c2efb94f in ?? () from /opt/project-neon/lib/libQtCore.so.4
#7  0x00007fd2c2c46f6e in start_thread (arg=0x7fd2a0b00700) at pthread_create.c:311
#8  0x00007fd2c16279cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7fd2a02ff700 (LWP 2800)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fd2c2efcf96 in ?? () from /opt/project-neon/lib/libQtCore.so.4
#2  0x00007fd2c2efcd63 in QWaitCondition::wait(QMutex*, unsigned long) () from /opt/project-neon/lib/libQtCore.so.4
#3  0x00007fd2c2ef7fa7 in QSemaphore::tryAcquire(int, int) () from /opt/project-neon/lib/libQtCore.so.4
#4  0x00007fd2aefc9058 in KisTileDataSwapper::waitForWork (this=0x2b26018) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#5  0x00007fd2aefc9072 in KisTileDataSwapper::run (this=0x2b26018) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#6  0x00007fd2c2efb94f in ?? () from /opt/project-neon/lib/libQtCore.so.4
#7  0x00007fd2c2c46f6e in start_thread (arg=0x7fd2a02ff700) at pthread_create.c:311
#8  0x00007fd2c16279cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fd29ec86700 (LWP 2807)):
#0  0x00007fd2c305342a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /opt/project-neon/lib/libQtCore.so.4
#1  0x00007fd2c30b2e75 in QAbstractEventDispatcher::awake() () from /opt/project-neon/lib/libQtCore.so.4
#2  0x00007fd2c30755c4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#3  0x00007fd2c3032241 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#4  0x00007fd2c30323d4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#5  0x00007fd2c2ef8e83 in QThread::exec() () from /opt/project-neon/lib/libQtCore.so.4
#6  0x00007fd2c300cdfb in ?? () from /opt/project-neon/lib/libQtCore.so.4
#7  0x00007fd2c2efb94f in ?? () from /opt/project-neon/lib/libQtCore.so.4
#8  0x00007fd2c2c46f6e in start_thread (arg=0x7fd29ec86700) at pthread_create.c:311
#9  0x00007fd2c16279cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fd29f487700 (LWP 2813)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fd2c2efcf96 in ?? () from /opt/project-neon/lib/libQtCore.so.4
#2  0x00007fd2c2efcd63 in QWaitCondition::wait(QMutex*, unsigned long) () from /opt/project-neon/lib/libQtCore.so.4
#3  0x00007fd2c24c9de6 in ?? () from /opt/project-neon/lib/libQtGui.so.4
#4  0x00007fd2c2efb94f in ?? () from /opt/project-neon/lib/libQtCore.so.4
#5  0x00007fd2c2c46f6e in start_thread (arg=0x7fd29f487700) at pthread_create.c:311
#6  0x00007fd2c16279cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fd29e485700 (LWP 2814)):
#0  0x00007fd2c161fde3 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fd2c306d992 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /opt/project-neon/lib/libQtCore.so.4
#2  0x00007fd2c307474e in QEventDispatcherUNIX::select(int, fd_set*, fd_set*, fd_set*, timeval*) () from /opt/project-neon/lib/libQtCore.so.4
#3  0x00007fd2c307326a in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /opt/project-neon/lib/libQtCore.so.4
#4  0x00007fd2c3075738 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#5  0x00007fd2c3032241 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#6  0x00007fd2c30323d4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#7  0x00007fd2c2ef8e83 in QThread::exec() () from /opt/project-neon/lib/libQtCore.so.4
#8  0x00007fd2c300cdfb in ?? () from /opt/project-neon/lib/libQtCore.so.4
#9  0x00007fd2c2efb94f in ?? () from /opt/project-neon/lib/libQtCore.so.4
#10 0x00007fd2c2c46f6e in start_thread (arg=0x7fd29e485700) at pthread_create.c:311
#11 0x00007fd2c16279cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fd2c45da7c0 (LWP 2798)):
[KCrash Handler]
#6  0x00007fd2a1ae8102 in QMap<QString, KisDynamicSensor*>::size (this=0x28) at /opt/project-neon/include/QtCore/qmap.h:201
#7  0x00007fd2a1ae7299 in QMap<QString, KisDynamicSensor*>::values (this=0x28) at /opt/project-neon/include/QtCore/qmap.h:866
#8  0x00007fd2a1ae61f8 in KisCurveOption::sensors (this=0x0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/libpaintop/kis_curve_option.cpp:382
#9  0x00007fd2a1afd726 in KisMultiSensorsModel::rowCount (this=0x6f63140) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp:41
#10 0x00007fd2c3026cc7 in QAbstractItemModel::hasIndex(int, int, QModelIndex const&) const () from /opt/project-neon/lib/libQtCore.so.4
#11 0x00007fd2c302a9d6 in QAbstractListModel::index(int, int, QModelIndex const&) const () from /opt/project-neon/lib/libQtCore.so.4
#12 0x00007fd2c24ebcab in QAbstractItemView::setModel(QAbstractItemModel*) () from /opt/project-neon/lib/libQtGui.so.4
#13 0x00007fd2a1afef7c in KisMultiSensorsSelector::KisMultiSensorsSelector (this=0x6f65160, parent=0x6e2ef60) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/libpaintop/kis_multi_sensors_selector.cpp:43
#14 0x00007fd2a1aeb2c0 in Ui_WdgCurveOption::setupUi (this=0x6f58960, WdgCurveOption=0x6e2ef60) at /build/buildd/project-neon-calligra-2+git20140301+r74940/obj-x86_64-linux-gnu/krita/plugins/paintops/libpaintop/ui_wdgcurveoption.h:55
#15 0x00007fd2a1ae9dcc in KisCurveOptionWidget::KisCurveOptionWidget (this=0x6f62e90, curveOption=0x6f62ee0, hideSlider=true) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp:46
#16 0x00007fd2a1b13120 in KisFlowOpacityOptionWidget::KisFlowOpacityOptionWidget (this=0x6f62e90) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp:38
#17 0x00007fd29f49e5e0 in KisBrushOpSettingsWidget::KisBrushOpSettingsWidget (this=0x6db4fd0, parent=0x4f60fe0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/defaultpaintops/brush/kis_brushop_settings_widget.cpp:51
#18 0x00007fd29f49a295 in KisSimplePaintOpFactory<KisBrushOp, KisBrushBasedPaintOpSettings, KisBrushOpSettingsWidget>::createSettingsWidget (this=0x2b661c0, parent=0x4f60fe0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/plugins/paintops/libpaintop/kis_simple_paintop_factory.h:111
#19 0x00007fd2b0116625 in KisPaintopBox::setCurrentPaintop (this=0x4f60fe0, paintop=..., preset=...) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/ui/kis_paintop_box.cc:373
#20 0x00007fd2b0115e1e in KisPaintopBox::resourceSelected (this=0x4f60fe0, resource=0x7fd288bb7790) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/ui/kis_paintop_box.cc:330
#21 0x00007fd2b0147ae9 in KisView2::KisView2 (this=0x349f860, part=0x3729ac0, doc=0x372b7b0, parent=0x2412e80) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/ui/kis_view2.cpp:464
#22 0x00007fd2b00c91c8 in KisPart2::createViewInstance (this=0x3729ac0, document=0x372b7b0, parent=0x2412e80) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/ui/kis_part2.cpp:77
#23 0x00007fd2afc90c25 in KoPart::createView (this=0x3729ac0, document=0x372b7b0, parent=0x2412e80) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoPart.cpp:136
#24 0x00007fd2afc078e7 in KoMainWindow::setRootDocument (this=0x2412e80, doc=0x372b7b0, part=0x0, deletePrevious=true) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoMainWindow.cpp:544
#25 0x00007fd2afc09fcf in KoMainWindow::slotLoadCompleted (this=0x2412e80) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoMainWindow.cpp:823
#26 0x00007fd2afc14831 in KoMainWindow::qt_static_metacall (_o=0x2412e80, _c=QMetaObject::InvokeMetaMethod, _id=37, _a=0x7fff63078730) at /build/buildd/project-neon-calligra-2+git20140301+r74940/obj-x86_64-linux-gnu/libs/main/KoMainWindow.moc:170
#27 0x00007fd2c3053923 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /opt/project-neon/lib/libQtCore.so.4
#28 0x00007fd2afbe06c5 in KoDocument::completed (this=0x372b7b0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/obj-x86_64-linux-gnu/libs/main/KoDocument.moc:225
#29 0x00007fd2afbe1bd6 in KoDocument::Private::openLocalFile (this=0x368f840) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoDocument.cpp:300
#30 0x00007fd2afbdff22 in KoDocument::openUrlInternal (this=0x372b7b0, url=...) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoDocument.cpp:2697
#31 0x00007fd2afbd7137 in KoDocument::openUrl (this=0x372b7b0, _url=...) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoDocument.cpp:1261
#32 0x00007fd2afc09bd6 in KoMainWindow::openDocumentInternal (this=0x2412e80, url=..., newpart=0x3729ac0, newdoc=0x372b7b0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoMainWindow.cpp:786
#33 0x00007fd2afc096d2 in KoMainWindow::openDocument (this=0x2412e80, url=...) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoMainWindow.cpp:747
#34 0x00007fd2afc0df4f in KoMainWindow::slotFileOpen (this=0x2412e80) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoMainWindow.cpp:1331
#35 0x00007fd2afc1429b in KoMainWindow::qt_static_metacall (_o=0x2412e80, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff63078ee0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/obj-x86_64-linux-gnu/libs/main/KoMainWindow.moc:131
#36 0x00007fd2c3053923 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /opt/project-neon/lib/libQtCore.so.4
#37 0x00007fd2c1e2e46c in QAction::triggered(bool) () from /opt/project-neon/lib/libQtGui.so.4
#38 0x00007fd2c1e2d84e in QAction::activate(QAction::ActionEvent) () from /opt/project-neon/lib/libQtGui.so.4
#39 0x00007fd2c23dcc4a in ?? () from /opt/project-neon/lib/libQtGui.so.4
#40 0x00007fd2c23dd0e9 in ?? () from /opt/project-neon/lib/libQtGui.so.4
#41 0x00007fd2c23e1933 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#42 0x00007fd2c3fde40a in KMenu::mouseReleaseEvent(QMouseEvent*) () from /opt/project-neon/lib/libkdeui.so.5
#43 0x00007fd2c1ea2f4f in QWidget::event(QEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#44 0x00007fd2c23e1fd7 in QMenu::event(QEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#45 0x00007fd2c1e3e110 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#46 0x00007fd2c1e3beee in QApplication::notify(QObject*, QEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#47 0x00007fd2afbcd276 in KoApplication::notify (this=0x7fff6307a4d0, receiver=0x2be7a10, event=0x7fff63079ad0) at /build/buildd/project-neon-calligra-2+git20140301+r74940/libs/main/KoApplication.cpp:595
#48 0x00007fd2c3034f53 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /opt/project-neon/lib/libQtCore.so.4
#49 0x00007fd2c1e40b97 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#50 0x00007fd2c1e3a468 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /opt/project-neon/lib/libQtGui.so.4
#51 0x00007fd2c1edeb65 in ?? () from /opt/project-neon/lib/libQtGui.so.4
#52 0x00007fd2c1edb5e4 in QApplication::x11ProcessEvent(_XEvent*) () from /opt/project-neon/lib/libQtGui.so.4
#53 0x00007fd2c1f18835 in ?? () from /opt/project-neon/lib/libQtGui.so.4
#54 0x00007fd2c3032241 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#55 0x00007fd2c30323d4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/project-neon/lib/libQtCore.so.4
#56 0x00007fd2c30355e6 in QCoreApplication::exec() () from /opt/project-neon/lib/libQtCore.so.4
#57 0x00007fd2c1e3b10a in QApplication::exec() () from /opt/project-neon/lib/libQtGui.so.4
#58 0x00007fd2b05a8132 in kdemain (argc=1, argv=0x23c6630) at /build/buildd/project-neon-calligra-2+git20140301+r74940/krita/main.cc:108
#59 0x0000000000406b49 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2014-03-01 18:56:51 UTC
Can you backup the contents of .kde/share/apps/krita and then remove that fold and try again? It sounds like a problem with a preset. If you can confirm that krita works again after moving away the presets, I'd need a copy of the backup to check what's going on.
Comment 2 Arnie 2014-03-01 19:48:25 UTC
I just renamed the folder to .../krita1 and still get the crash.  The
folder contents are folder *patterns* <empty> and tags.xml, 63 bytes.

-- Arnie


On Sat, Mar 1, 2014 at 1:56 PM, Boudewijn Rempt <boud@valdyas.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=331652
>
> Boudewijn Rempt <boud@valdyas.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |boud@valdyas.org
>
> --- Comment #1 from Boudewijn Rempt <boud@valdyas.org> ---
> Can you backup the contents of .kde/share/apps/krita and then remove that
> fold
> and try again? It sounds like a problem with a preset. If you can confirm
> that
> krita works again after moving away the presets, I'd need a copy of the
> backup
> to check what's going on.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Halla Rempt 2014-03-02 10:38:07 UTC
Oh! Sorry for the confusion. But this bug is already fixed, I pushed the fix Feb 17th, in commit b40eed4fe.
Comment 4 Arnie 2014-03-03 03:22:34 UTC
Thank you for the information.


On Sun, Mar 2, 2014 at 5:38 AM, Boudewijn Rempt <boud@valdyas.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=331652
>
> Boudewijn Rempt <boud@valdyas.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>          Resolution|---                         |FIXED
>
> --- Comment #3 from Boudewijn Rempt <boud@valdyas.org> ---
> Oh! Sorry for the confusion. But this bug is already fixed, I pushed the
> fix
> Feb 17th, in commit b40eed4fe.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 5 Jaime Torres 2014-03-22 12:05:00 UTC
Created attachment 85689 [details]
New crash information added by DrKonqi

krita (2.9 Pre-Alpha (git da012e4)) on KDE Platform 4.13.60 using Qt 4.8.6

- What I was doing when the application crashed:

Opening a jpeg image.
I've Just compiled calligra with last commit:
commit da012e477d832dd0bd00fea10c970de05ca1f386
Author: Boudewijn Rempt <boud@valdyas.org>
Date:   Sat Mar 22 11:43:53 2014 +0100

-- Backtrace (Reduced):
#6  QMap<QString, KisDynamicSensor*>::size (this=this@entry=0x28) at /usr/lib/qt4.5/include/QtCore/qmap.h:201
#7  0x00007f48f37ad65d in QMap<QString, KisDynamicSensor*>::values (this=this@entry=0x28) at /usr/lib/qt4.5/include/QtCore/qmap.h:866
#8  0x00007f48f37aa8da in KisCurveOption::sensors (this=0x0) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_curve_option.cpp:380
#9  0x00007f48f37bc9f6 in KisMultiSensorsModel::rowCount (this=<optimized out>) at /g/kdegit/calligra/krita/plugins/paintops/libpaintop/kis_multi_sensors_model_p.cpp:41
#10 0x00007f4918cb3977 in QAbstractItemModel::hasIndex (this=this@entry=0x92841c0, row=row@entry=0, column=column@entry=0, parent=...) at /g/kdegit/qt/src/corelib/kernel/qabstractitemmodel.cpp:1636