Bug 410864 - Krita crashes when opening calibration image
Summary: Krita crashes when opening calibration image
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-08-13 02:01 UTC by Isaac A.
Modified: 2019-09-13 09:59 UTC (History)
2 users (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 Isaac A. 2019-08-13 02:01:31 UTC
Application: krita (4.1.8)

Qt Version: 5.12.4
Frameworks Version: 5.60.0
Operating System: Linux 5.2.7-200.fc30.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
Steps to reproduce:
- Download http://displaycal.net/icc-color-management-test/sRGB_Gray.jpg
- Open it in Krita, any method works

Krita immediately crashes after opening this specific image

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 0x7f3f6a1f1cc0 (LWP 30814))]

Thread 22 (Thread 0x7f3ef92f3700 (LWP 30838)):
#0  0x00007f3f6f0975c7 in poll () from /lib64/libc.so.6
#1  0x00007f3f6cd451de in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007f3f6cd45313 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3f6f639bf3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f3f6f5e39eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f3f6f43c635 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f3f57b53e4a in ?? () from /lib64/libQt5Quick.so.5
#7  0x00007f3f6f43d786 in ?? () from /lib64/libQt5Core.so.5
#8  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 21 (Thread 0x7f3f0affd700 (LWP 30837)):
#0  0x00007f3f6f0975c7 in poll () from /lib64/libc.so.6
#1  0x00007f3f6cd451de in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007f3f6cd45313 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3f6f639bf3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f3f6f5e39eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f3f6f43c635 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f3f5786ca69 in ?? () from /lib64/libQt5Qml.so.5
#7  0x00007f3f6f43d786 in ?? () from /lib64/libQt5Core.so.5
#8  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 20 (Thread 0x7f3efbfff700 (LWP 30836)):
#0  0x00007f3f6f09cfad in syscall () from /lib64/libc.so.6
#1  0x00007f3f6f43fe00 in ?? () from /lib64/libQt5Core.so.5
#2  0x00007f3f6f43fb76 in QSemaphore::tryAcquire(int, int) () from /lib64/libQt5Core.so.5
#3  0x00007f3f6e658d9a in KisTileDataSwapper::run() () from /lib64/libkritaimage.so.17
#4  0x00007f3f6f43d786 in ?? () from /lib64/libQt5Core.so.5
#5  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 19 (Thread 0x7f3f0b7fe700 (LWP 30832)):
#0  0x00007f3f6f0975c7 in poll () from /lib64/libc.so.6
#1  0x00007f3f6cd451de in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007f3f6cd45313 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3f6f639bf3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f3f6f5e39eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f3f6f43c635 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f3f6d5fbf4a in ?? () from /lib64/libQt5DBus.so.5
#7  0x00007f3f6f43d786 in ?? () from /lib64/libQt5Core.so.5
#8  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 18 (Thread 0x7f3f0bfff700 (LWP 30831)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 17 (Thread 0x7f3f30ff9700 (LWP 30830)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 16 (Thread 0x7f3f317fa700 (LWP 30829)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 15 (Thread 0x7f3f31ffb700 (LWP 30828)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 14 (Thread 0x7f3f327fc700 (LWP 30827)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7f3f32ffd700 (LWP 30826)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7f3f337fe700 (LWP 30825)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f3f33fff700 (LWP 30824)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f3f48ff9700 (LWP 30823)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f3f497fa700 (LWP 30822)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f3f49ffb700 (LWP 30821)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f3f4a7fc700 (LWP 30820)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f3f4affd700 (LWP 30819)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f3f4b7fe700 (LWP 30818)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f3f4bfff700 (LWP 30817)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f3f516e0700 (LWP 30816)):
#0  0x00007f3f6d5d14d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3f565616fb in ?? () from /usr/lib64/dri/radeonsi_dri.so
#2  0x00007f3f5656130b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f3f5cf1e700 (LWP 30815)):
#0  0x00007f3f6f0975c7 in poll () from /lib64/libc.so.6
#1  0x00007f3f6cbb938a in ?? () from /lib64/libxcb.so.1
#2  0x00007f3f6cbbaffa in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f3f5d0b3be8 in ?? () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f3f6f43d786 in ?? () from /lib64/libQt5Core.so.5
#5  0x00007f3f6d5cb5a2 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f3f6f0a2303 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3f6a1f1cc0 (LWP 30814)):
[KCrash Handler]
#6  0x00007f3f48336491 in cmsDoTransform () from /lib64/liblcms2.so.2
#7  0x00007f3f099b920c in LcmsColorSpace<KoBgrU8Traits>::fromQColor (this=0x55f7af84ed60, color=..., dst=0x55f7b255e430 "\260\022S\262\367U", koprofile=<optimized out>) at /usr/include/qt5/QtCore/qmutex.h:240
#8  0x00007f3f6e7b8107 in KisPaintDevice::init(KoColorSpace const*, KisSharedPtr<KisDefaultBoundsBase>, KisWeakSharedPtr<KisNode>, QString const&) () from /lib64/libkritaimage.so.17
#9  0x00007f3f6e7b973c in KisPaintDevice::KisPaintDevice(KisWeakSharedPtr<KisNode>, KoColorSpace const*, KisSharedPtr<KisDefaultBoundsBase>, QString const&) () from /lib64/libkritaimage.so.17
#10 0x00007f3f6e75bbd3 in KisGroupLayer::resetCache(KoColorSpace const*) () from /lib64/libkritaimage.so.17
#11 0x00007f3f6e75bf27 in KisGroupLayer::KisGroupLayer(KisWeakSharedPtr<KisImage>, QString const&, unsigned char) () from /lib64/libkritaimage.so.17
#12 0x00007f3f6e76d1ed in KisImage::KisImage(KisUndoStore*, int, int, KoColorSpace const*, QString const&) () from /lib64/libkritaimage.so.17
#13 0x00007f3ef8326c1e in KisJPEGConverter::decode (this=0x7ffd9af09260, io=<optimized out>) at /usr/include/qt5/QtCore/qstring.h:699
#14 0x00007f3ef83234a6 in KisJPEGImport::convert (this=<optimized out>, document=0x55f7a83a61e0, io=0x7ffd9af092b0) at /usr/src/debug/krita-4.1.8-5.fc30.x86_64/plugins/impex/jpeg/kis_jpeg_import.cc:48
#15 0x00007f3f715ba1fc in KisImportExportManager::doImport(QString const&, QSharedPointer<KisImportExportFilter>) () from /lib64/libkritaui.so.17
#16 0x00007f3f715bb61c in KisImportExportManager::convert(KisImportExportManager::Direction, QString const&, QString const&, QString const&, bool, KisPinnedSharedPtr<KisPropertiesConfiguration>, bool) () from /lib64/libkritaui.so.17
#17 0x00007f3f715bc6d2 in KisImportExportManager::importDocument(QString const&, QString const&) () from /lib64/libkritaui.so.17
#18 0x00007f3f715a0cda in KisDocument::openFile() () from /lib64/libkritaui.so.17
#19 0x00007f3f715a15a3 in KisDocument::openUrlInternal(QUrl const&) () from /lib64/libkritaui.so.17
#20 0x00007f3f715a19b7 in KisDocument::openUrl(QUrl const&, QFlags<KisDocument::OpenFlag>) () from /lib64/libkritaui.so.17
#21 0x00007f3f715c5d55 in KisMainWindow::openDocumentInternal(QUrl const&, QFlags<KisMainWindow::OpenFlag>) () from /lib64/libkritaui.so.17
#22 0x00007f3f715cc93d in KisMainWindow::openDocument(QUrl const&, QFlags<KisMainWindow::OpenFlag>) () from /lib64/libkritaui.so.17
#23 0x00007f3f715ccc63 in KisMainWindow::dropEvent(QDropEvent*) () from /lib64/libkritaui.so.17
#24 0x00007f3f6ff8a16e in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#25 0x00007f3f7009e8f8 in QMainWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#26 0x00007f3f705e41eb in KMainWindow::event(QEvent*) () from /lib64/libkritawidgetutils.so.17
#27 0x00007f3f70622e5d in KXmlGuiWindow::event(QEvent*) () from /lib64/libkritawidgetutils.so.17
#28 0x00007f3f6ff47af6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#29 0x00007f3f6ff515da in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#30 0x00007f3f7159112d in KisApplication::notify(QObject*, QEvent*) () from /lib64/libkritaui.so.17
#31 0x00007f3f6f5e4ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#32 0x00007f3f6ffa81e2 in ?? () from /lib64/libQt5Widgets.so.5
#33 0x00007f3f6ffa8f7a in ?? () from /lib64/libQt5Widgets.so.5
#34 0x00007f3f6ff47af6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#35 0x00007f3f6ff50e80 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#36 0x00007f3f7159112d in KisApplication::notify(QObject*, QEvent*) () from /lib64/libkritaui.so.17
#37 0x00007f3f6f5e4ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#38 0x00007f3f6f9b844d in QGuiApplicationPrivate::processDrop(QWindow*, QMimeData const*, QPoint const&, QFlags<Qt::DropAction>, QFlags<Qt::MouseButton>, QFlags<Qt::KeyboardModifier>) () from /lib64/libQt5Gui.so.5
#39 0x00007f3f6f994095 in QWindowSystemInterface::handleDrop(QWindow*, QMimeData const*, QPoint const&, QFlags<Qt::DropAction>, QFlags<Qt::MouseButton>, QFlags<Qt::KeyboardModifier>) () from /lib64/libQt5Gui.so.5
#40 0x00007f3f5d0bba69 in ?? () from /lib64/libQt5XcbQpa.so.5
#41 0x00007f3f5d09e818 in QXcbWindow::handleClientMessageEvent(xcb_client_message_event_t const*) () from /lib64/libQt5XcbQpa.so.5
#42 0x00007f3f5d089308 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /lib64/libQt5XcbQpa.so.5
#43 0x00007f3f5d08a21a in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#44 0x00007f3f5d0b4be7 in ?? () from /lib64/libQt5XcbQpa.so.5
#45 0x00007f3f6cd44edd in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#46 0x00007f3f6cd45270 in ?? () from /lib64/libglib-2.0.so.0
#47 0x00007f3f6cd45313 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#48 0x00007f3f6f639bd5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#49 0x00007f3f6f5e39eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#50 0x00007f3f6f5eb726 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#51 0x000055f7a654a054 in main (argc=<optimized out>, argv=0x7ffd9af0a978) at /usr/src/debug/krita-4.1.8-5.fc30.x86_64/krita/main.cc:446
[Inferior 1 (process 30814) detached]

Reported using DrKonqi
Comment 1 Halla Rempt 2019-08-13 07:52:59 UTC
Okay, this still crashes in Krita 4.2.5, so the bug report is relevant, even though the version you're using is ancient. The updated backtrace is

Thread 1 (Thread 0x7f3e9de7b800 (LWP 11278)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f3ea33db535 in __GI_abort () at abort.c:79
#8  0x00007f3ea38229a7 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f3ea3821e29 in qt_assert(char const*, char const*, int) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f3e8b844035 in LcmsColorSpace<KoBgrU8Traits>::init (this=0x562553937980) at /home/boud/dev/krita/plugins/color/lcms2engine/LcmsColorSpace.h:219
#11 RgbU8ColorSpace::RgbU8ColorSpace (this=0x562553937980, name=..., p=<optimized out>) at /home/boud/dev/krita/plugins/color/lcms2engine/colorspaces/rgb_u8/RgbU8ColorSpace.cpp:45
#12 0x00007f3e8bcbeea6 in LcmsRGBP2020PQColorSpaceFactoryWrapper<RgbU8ColorSpaceFactory>::createColorSpace (this=<optimized out>, p=0x562552198ad0) at /home/boud/dev/krita/plugins/color/lcms2engine/LcmsRGBP2020PQColorSpace.h:113
#13 0x00007f3ea243dded in KoColorSpaceFactory::grabColorSpace (this=0x56254a508fd0, profile=profile@entry=0x562552198ad0) at /home/boud/dev/krita/libs/pigment/KoColorSpaceFactory.cpp:98
#14 0x00007f3ea2440618 in KoColorSpaceRegistry::Private::lazyCreateColorSpaceImpl (this=this@entry=0x56254a1a8100, csID=..., profile=profile@entry=0x562552198ad0) at /home/boud/dev/krita/libs/pigment/KoColorSpaceRegistry.cpp:439
#15 0x00007f3ea24415bb in KoColorSpaceRegistry::Private::colorSpace1 (this=this@entry=0x56254a1a8100, csID=..., profile=profile@entry=0x562552198ad0) at /home/boud/dev/krita/libs/pigment/KoColorSpaceRegistry.cpp:536
#16 0x00007f3ea24428f1 in KoColorSpaceRegistry::colorSpace (this=<optimized out>, colorModelId=..., colorDepthId=..., profile=0x562552198ad0) at /home/boud/dev/krita/libs/pigment/KoColorSpaceRegistry.cpp:299
#17 0x00007f3e789e0d23 in KisJPEGConverter::decode (this=this@entry=0x7ffd975dd000, io=io@entry=0x7ffd975dd0b0) at /home/boud/dev/krita/plugins/impex/jpeg/kis_jpeg_converter.cc:209
#18 0x00007f3e789e422d in KisJPEGConverter::buildImage (this=this@entry=0x7ffd975dd000, io=io@entry=0x7ffd975dd0b0) at /home/boud/dev/krita/plugins/impex/jpeg/kis_jpeg_converter.cc:450
#19 0x00007f3e789ddfb2 in KisJPEGImport::convert (this=<optimized out>, document=0x5625539156a0, io=0x7ffd975dd0b0) at /home/boud/dev/krita/plugins/impex/jpeg/kis_jpeg_import.cc:46
#20 0x00007f3ea615ed7d in KisImportExportManager::doImport (this=this@entry=0x562553918660, location=..., filter=...) at /home/boud/dev/krita/libs/ui/KisImportExportManager.cpp:601
#21 0x00007f3ea61605a1 in KisImportExportManager::convert (this=this@entry=0x562553918660, direction=direction@entry=KisImportExportManager::Import, location=..., realLocation=..., mimeType=..., showWarnings=<optimized out>, exportConfiguration=..., isAsync=<optimized out>) at /home/boud/dev/krita/libs/ui/KisImportExportManager.cpp:361
#22 0x00007f3ea6160eab in KisImportExportManager::importDocument (this=this@entry=0x562553918660, location=..., mimeType=...) at /home/boud/dev/krita/libs/ui/KisImportExportManager.cpp:136
#23 0x00007f3ea614ceba in KisDocument::openFile (this=this@entry=0x5625539156a0) at /home/boud/dev/krita/libs/ui/KisDocument.cpp:1437
#24 0x00007f3ea614d8ab in KisDocument::openUrlInternal (this=this@entry=0x5625539156a0, url=...) at /home/boud/dev/krita/libs/ui/KisDocument.cpp:1879
#25 0x00007f3ea614dd6f in KisDocument::openUrl (this=0x5625539156a0, _url=..., flags=...) at /home/boud/dev/krita/libs/ui/KisDocument.cpp:1336
#26 0x00007f3ea6169a1d in KisMainWindow::openDocumentInternal (this=this@entry=0x7f3e8c01ed20, url=..., flags=flags@entry=...) at /home/boud/dev/krita/libs/ui/KisMainWindow.cpp:952
#27 0x00007f3ea616f7ae in KisMainWindow::openDocument (this=this@entry=0x7f3e8c01ed20, url=..., flags=flags@entry=...) at /home/boud/dev/krita/libs/ui/KisMainWindow.cpp:927
#28 0x00007f3ea613a638 in KisApplication::start (this=<optimized out>, args=...) at /home/boud/dev/krita/libs/ui/KisApplication.cpp:601
#29 0x0000562547f8a8db in main (argc=<optimized out>, argv=0x7ffd975ddd28) at /home/boud/dev/krita/krita/main.cc:513
[Inferior 1 (process 11278) detached]

The relevant terminal output is

Lcms2 error:  13 Couldn't link the profiles
Lcms2 error:  13 Couldn't link the profiles
ASSERT: "d->defaultTransformations->fromRGB" in file /home/boud/dev/krita/plugins/color/lcms2engine/LcmsColorSpace.h, line 219
Comment 2 Halla Rempt 2019-08-13 08:11:37 UTC
Note: gwenview also crashes on this image, and imagemagick cannot load the embedded profile either. LCMS cannot use the embedded profile at all. This is a very, very weird image.
Comment 3 Dmitry Kazakov 2019-09-11 08:58:42 UTC
Git commit 46ad1506e289bdd3954555505a63efb6502bdb24 by Dmitry Kazakov.
Committed on 11/09/2019 at 08:50.
Pushed by dkazakov into branch 'master'.

Fix memory leak in KisJPEGConverter

LibPNG allocates "profile_data" for us, therefore, we should free it

M  +5    -2    plugins/impex/jpeg/kis_jpeg_converter.cc

https://invent.kde.org/kde/krita/commit/46ad1506e289bdd3954555505a63efb6502bdb24
Comment 4 Dmitry Kazakov 2019-09-11 08:58:42 UTC
Git commit 0381878fcb6c06fd2f657ce46b28176e46db5ba4 by Dmitry Kazakov.
Committed on 11/09/2019 at 08:57.
Pushed by dkazakov into branch 'master'.

Fix a crash when loading JPEG image with a weird color profile

The profile in question has a weird RGB->XYZ transformation matrix,
which is not invertible. Therefore, this profile cannot be used as
a workspace color profile and we should convert the image to sRGB
right on loading.

LCMS doesn't have a separate method for checking if conversion matrix
is invertible, therefore we just try to create a simple transformation,
where the profile is both, input and output. If the transformation
is created successfully, then this profile is probably suitable for
usage as a working color space.

M  +9    -4    plugins/color/lcms2engine/LcmsColorSpace.h
M  +18   -1    plugins/color/lcms2engine/colorprofiles/IccColorProfile.cpp

https://invent.kde.org/kde/krita/commit/0381878fcb6c06fd2f657ce46b28176e46db5ba4
Comment 5 Dmitry Kazakov 2019-09-13 09:59:57 UTC
Git commit 5e227d6453a9fe9089682328e8fd33076115726e by Dmitry Kazakov.
Committed on 13/09/2019 at 09:01.
Pushed by dkazakov into branch 'krita/4.2'.

Fix memory leak in KisJPEGConverter

LibPNG allocates "profile_data" for us, therefore, we should free it

M  +5    -2    plugins/impex/jpeg/kis_jpeg_converter.cc

https://invent.kde.org/kde/krita/commit/5e227d6453a9fe9089682328e8fd33076115726e
Comment 6 Dmitry Kazakov 2019-09-13 09:59:57 UTC
Git commit 6cd14938170f2b364faf86cdcb8ac404e11be893 by Dmitry Kazakov.
Committed on 13/09/2019 at 09:01.
Pushed by dkazakov into branch 'krita/4.2'.

Fix a crash when loading JPEG image with a weird color profile

The profile in question has a weird RGB->XYZ transformation matrix,
which is not invertible. Therefore, this profile cannot be used as
a workspace color profile and we should convert the image to sRGB
right on loading.

LCMS doesn't have a separate method for checking if conversion matrix
is invertible, therefore we just try to create a simple transformation,
where the profile is both, input and output. If the transformation
is created successfully, then this profile is probably suitable for
usage as a working color space.

M  +9    -4    plugins/color/lcms2engine/LcmsColorSpace.h
M  +18   -1    plugins/color/lcms2engine/colorprofiles/IccColorProfile.cpp

https://invent.kde.org/kde/krita/commit/6cd14938170f2b364faf86cdcb8ac404e11be893