Bug 298879 - Krita crashes when saving as PNG
Summary: Krita crashes when saving as PNG
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 305907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-26 21:50 UTC by Mark O
Modified: 2012-08-28 02:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
company logo (C) that triggers a crash when saving as PNG (21.53 KB, image/png)
2012-04-26 22:10 UTC, Mark O
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark O 2012-04-26 21:50:28 UTC
Application: krita (2.4.0)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

Saving a graphic (opened from any format) as PNG to a different filename or location seems to cause Krita to crash with alarming regularity. I'm most often opening a file, trying to crop and/or resize, delete white background and save as another PNG. On one or two occasions I've found that by opening the file, then saving as.. (before I try anything else) will get me past the save as..., then I'm usually OK. But recent attempts to use this have failed. 

Doesn't seem to matter whether I am working onNFS/CIFS/local drives. 

I haven't tried other formats because they're not of interest in teh work that I'm doing.

The crash can be reproduced every time.

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

Thread 7 (Thread 0x7f5ff0084700 (LWP 4160)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f600cb594db in wait (time=18446744073709551615, this=0x5de50c0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5de5070, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f600cb55314 in QSemaphore::acquire (this=0x5de4dc0, n=1) at thread/qsemaphore.cpp:144
#4  0x00007f5ff8249c8e in KisTileDataPooler::waitForWork (this=0x5de4db0) at /build/buildd/calligra-2.4.0/krita/image/tiles3/kis_tile_data_pooler.cc:162
#5  0x00007f5ff824a374 in KisTileDataPooler::run (this=0x5de4db0) at /build/buildd/calligra-2.4.0/krita/image/tiles3/kis_tile_data_pooler.cc:184
#6  0x00007f600cb58fcb in QThreadPrivate::start (arg=0x5de4db0) at thread/qthread_unix.cpp:298
#7  0x00007f60082a0e9a in start_thread (arg=0x7f5ff0084700) at pthread_create.c:308
#8  0x00007f600ec1a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f5fef883700 (LWP 4161)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f600cb594db in wait (time=18446744073709551615, this=0x5de5450) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5de5400, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f600cb55759 in QSemaphore::tryAcquire (this=0x5de5130, n=1, timeout=-1) at thread/qsemaphore.cpp:221
#4  0x00007f5ff826ae9a in KisTileDataSwapper::run (this=0x5de4de8) at /build/buildd/calligra-2.4.0/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007f600cb58fcb in QThreadPrivate::start (arg=0x5de4de8) at thread/qthread_unix.cpp:298
#6  0x00007f60082a0e9a in start_thread (arg=0x7f5fef883700) at pthread_create.c:308
#7  0x00007f600ec1a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f5fd6a91700 (LWP 4209)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f600cb594db in wait (time=18446744073709551615, this=0x68a2670) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x68a21f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f600db56364 in QFileInfoGatherer::run (this=0x68a21e0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f600cb58fcb in QThreadPrivate::start (arg=0x68a21e0) at thread/qthread_unix.cpp:298
#5  0x00007f60082a0e9a in start_thread (arg=0x7f5fd6a91700) at pthread_create.c:308
#6  0x00007f600ec1a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5fe4f69700 (LWP 4210)):
#0  0x00007f600ec13823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f600cc84366 in qt_safe_select (nfds=23, fdread=0x7f5fd0000ac8, fdwrite=0x7f5fd0000d60, fdexcept=0x7f5fd0000ff8, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f600cc897b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f5fd0000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f600cc89ca3 in QEventDispatcherUNIX::processEvents (this=0x7f5fd00008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f600cc56c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f600cc56ed7 in QEventLoop::exec (this=0x7f5fe4f68dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f600cb55fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f600cc369ff in QInotifyFileSystemWatcherEngine::run (this=0x2178810) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f600cb58fcb in QThreadPrivate::start (arg=0x2178810) at thread/qthread_unix.cpp:298
#9  0x00007f60082a0e9a in start_thread (arg=0x7f5fe4f69700) at pthread_create.c:308
#10 0x00007f600ec1a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5fee819700 (LWP 4211)):
#0  0x00007f600ec13823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f600cc84366 in qt_safe_select (nfds=27, fdread=0x7f5fd8000ac8, fdwrite=0x7f5fd8000d60, fdexcept=0x7f5fd8000ff8, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f600cc897b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f5fd8000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f600cc89ca3 in QEventDispatcherUNIX::processEvents (this=0x7f5fd80008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f600cc56c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f600cc56ed7 in QEventLoop::exec (this=0x7f5fee818dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f600cb55fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f600cc369ff in QInotifyFileSystemWatcherEngine::run (this=0x68a2770) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f600cb58fcb in QThreadPrivate::start (arg=0x68a2770) at thread/qthread_unix.cpp:298
#9  0x00007f60082a0e9a in start_thread (arg=0x7f5fee819700) at pthread_create.c:308
#10 0x00007f600ec1a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5fd7fff700 (LWP 4215)):
#0  0x00007f600ec13823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f600cc84366 in qt_safe_select (nfds=31, fdread=0x7f5fc8000ac8, fdwrite=0x7f5fc8000d60, fdexcept=0x7f5fc8000ff8, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f600cc897b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f5fc8000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f600cc89ca3 in QEventDispatcherUNIX::processEvents (this=0x7f5fc80008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f600cc56c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f600cc56ed7 in QEventLoop::exec (this=0x7f5fd7ffedd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f600cb55fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f600cc369ff in QInotifyFileSystemWatcherEngine::run (this=0x7da8410) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f600cb58fcb in QThreadPrivate::start (arg=0x7da8410) at thread/qthread_unix.cpp:298
#9  0x00007f60082a0e9a in start_thread (arg=0x7f5fd7fff700) at pthread_create.c:308
#10 0x00007f600ec1a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f600f69a780 (LWP 4159)):
[KCrash Handler]
#6  0x00007f600eb5e445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f600eb61bab in __GI_abort () at abort.c:91
#8  0x00007f600cb4e50b in qt_message_output (msgType=<optimized out>, buf=0x7eb0d78 "Unhandled value type") at global/qglobal.cpp:2276
#9  0x00007f600cb4e8bf in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f5ff888e83c "Unhandled value type", ap=0x7fff0dc849a8) at global/qglobal.cpp:2322
#10 0x00007f600cb4ea64 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2505
#11 0x00007f5ff87f153d in kmdValueToExivXmpValue (value=...) at /build/buildd/calligra-2.4.0/krita/ui/kisexiv2/kis_exiv2.cpp:272
#12 0x00007f5ff87f1817 in kmdValueToExivXmpValue (value=...) at /build/buildd/calligra-2.4.0/krita/ui/kisexiv2/kis_exiv2.cpp:247
#13 0x00007f5ff87fc3ab in KisXMPIO::saveTo (this=<optimized out>, store=0x6893630, ioDevice=0x7fff0dc854e0, headerType=KisMetaData::IOBackend::NoHeader) at /build/buildd/calligra-2.4.0/krita/ui/kisexiv2/kis_xmp_io.cpp:135
#14 0x00007f5ff87b6b66 in KisPNGConverter::buildFile (this=0x7fff0dc85a20, iodevice=0x6635f30, image=..., device=..., annotationsStart=0x6a096f0, annotationsEnd=0x6a096f0, options=..., metaData=0x6893630) at /build/buildd/calligra-2.4.0/krita/ui/kis_png_converter.cpp:1025
#15 0x00007f5ff87b9385 in KisPNGConverter::buildFile (this=0x7fff0dc85a20, uri=..., image=..., device=..., annotationsStart=0x6a096f0, annotationsEnd=0x6a096f0, options=..., metaData=0x6893630) at /build/buildd/calligra-2.4.0/krita/ui/kis_png_converter.cpp:787
#16 0x00007f5fc2fccb20 in KisPNGExport::convert (this=<optimized out>, from=..., to=...) at /build/buildd/calligra-2.4.0/krita/plugins/formats/png/kis_png_export.cc:175
#17 0x00007f600e88afd6 in CalligraFilter::ChainLink::invokeFilter (this=0x6261110, parentChainLink=0x0) at /build/buildd/calligra-2.4.0/libs/main/KoFilterChainLink.cpp:90
#18 0x00007f600e882869 in KoFilterChain::invokeChain (this=0x7f4d2d0) at /build/buildd/calligra-2.4.0/libs/main/KoFilterChain.cpp:94
#19 0x00007f600e87f424 in KoFilterManager::exportDocument (this=0x6108fc0, url=..., mimeType=...) at /build/buildd/calligra-2.4.0/libs/main/KoFilterManager.cpp:243
#20 0x00007f600e830853 in KoDocument::saveFile (this=0x6099bc0) at /build/buildd/calligra-2.4.0/libs/main/KoDocument.cpp:536
#21 0x00007f600c5aee40 in KParts::ReadWritePart::save (this=0x6099bc0) at ../../kparts/part.cpp:878
#22 0x00007f600c5ae1d1 in KParts::ReadWritePart::saveAs (this=0x6099bc0, kurl=...) at ../../kparts/part.cpp:899
#23 0x00007f600e85d62a in KoMainWindow::saveDocument (this=0x5935400, saveas=<optimized out>, silent=false) at /build/buildd/calligra-2.4.0/libs/main/KoMainWindow.cpp:968
#24 0x00007f600e856f04 in KoMainWindow::slotFileSaveAs (this=0x5935400) at /build/buildd/calligra-2.4.0/libs/main/KoMainWindow.cpp:1251
#25 0x00007f600e85b47e in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x5935400, _c=<optimized out>) at /build/buildd/calligra-2.4.0/obj-x86_64-linux-gnu/libs/main/KoMainWindow.moc:121
#26 KoMainWindow::qt_static_metacall (_o=0x5935400, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /build/buildd/calligra-2.4.0/obj-x86_64-linux-gnu/libs/main/KoMainWindow.moc:105
#27 0x00007f600cc6c281 in QMetaObject::activate (sender=0x60d7790, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0dc86fc0) at kernel/qobject.cpp:3547
#28 0x00007f600d646132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#29 0x00007f600d64631f in QAction::activate (this=0x60d7790, event=<optimized out>) at kernel/qaction.cpp:1257
#30 0x00007f600da98129 in QMenuPrivate::activateCausedStack (this=0x60f8900, causedStack=..., action=0x60d7790, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#31 0x00007f600da9e282 in QMenuPrivate::activateAction (this=0x60f8900, action=0x60d7790, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#32 0x00007f600e446430 in KMenu::mouseReleaseEvent (this=0x60eaf10, e=0x7fff0dc87b90) at ../../kdeui/widgets/kmenu.cpp:464
#33 0x00007f600d69d144 in QWidget::event (this=0x60eaf10, event=0x7fff0dc87b90) at kernel/qwidget.cpp:8362
#34 0x00007f600da9f81b in QMenu::event (this=0x60eaf10, e=0x7fff0dc87b90) at widgets/qmenu.cpp:2469
#35 0x00007f600d64c894 in notify_helper (e=0x7fff0dc87b90, receiver=0x60eaf10, this=0x212b390) at kernel/qapplication.cpp:4559
#36 QApplicationPrivate::notify_helper (this=0x212b390, receiver=0x60eaf10, e=0x7fff0dc87b90) at kernel/qapplication.cpp:4531
#37 0x00007f600d6520bf in QApplication::notify (this=<optimized out>, receiver=0x60eaf10, e=0x7fff0dc87b90) at kernel/qapplication.cpp:4102
#38 0x00007f600e385b46 in KApplication::notify (this=0x7fff0dc88700, receiver=0x60eaf10, event=0x7fff0dc87b90) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007f600cc57e9c in QCoreApplication::notifyInternal (this=0x7fff0dc88700, receiver=0x60eaf10, event=0x7fff0dc87b90) at kernel/qcoreapplication.cpp:876
#40 0x00007f600d64d862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QApplicationPrivate::sendMouseEvent (receiver=0x60eaf10, event=0x7fff0dc87b90, alienWidget=0x0, nativeWidget=0x60eaf10, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#42 0x00007f600d6cd2c1 in QETWidget::translateMouseEvent (this=0x60eaf10, event=<optimized out>) at kernel/qapplication_x11.cpp:4551
#43 0x00007f600d6cbbae in QApplication::x11ProcessEvent (this=0x7fff0dc88700, event=0x7fff0dc88470) at kernel/qapplication_x11.cpp:3732
#44 0x00007f600d6f5b4a in QEventDispatcherX11::processEvents (this=0x20b1b30, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#45 0x00007f600cc56c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#46 0x00007f600cc56ed7 in QEventLoop::exec (this=0x7fff0dc886c0, flags=...) at kernel/qeventloop.cpp:204
#47 0x00007f600cc5bf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#48 0x00007f600f0b621d in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/calligra-2.4.0/krita/main.cc:71
#49 0x00007f600eb4976d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=2, ubp_av=0x7fff0dc888c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff0dc888b8) at libc-start.c:226
#50 0x0000000000400661 in _start ()

Reported using DrKonqi
Comment 1 Mark O 2012-04-26 22:07:58 UTC
Update - it seems that this isn't confined to "Save As..." - tried copying and naming a file first, open, edit, save, crash.

In frustration tried opening the file in gwenview, resize, save, then Krita and all OK. Suspect now its the library of PNG files I'm working with, which are the output of a mass EPS > PNG conversion via ghostscript "convert". In all other regards the files seem OK with a range of browsers (chrome, ff, IE) on a number of platforms, photoshop, gwenview etc.

I'll attach an example file that triggers it on my machine.
Comment 2 Mark O 2012-04-26 22:10:29 UTC
Created attachment 70683 [details]
company logo (C) that triggers a crash when saving as PNG

Workflow that seems to trigger a crash every time: open the file, resize it, then save it as PNG.
Comment 3 Sven Langkamp 2012-04-26 22:18:04 UTC
Confirmed. Appears to be the metadata in the file that triggers the crash.
Comment 4 Halla Rempt 2012-04-27 06:17:10 UTC
Zut... Hadn't we disabled all those metadata asserts?
Comment 5 Halla Rempt 2012-04-27 06:18:33 UTC
this is what I get on loading:

krita(13056)/krita (core): Missing name attribute for tag  "date" 
krita(13056)/krita (general): Invalid metadata name: "MaxPageSize/stDim:w" 
QString::arg: Argument missing: INVALID: %s, MaxPageSize/stDim:w
krita(13056)/krita (general): Invalid metadata name: "MaxPageSize/stDim:h" 
QString::arg: Argument missing: INVALID: %s, MaxPageSize/stDim:h
krita(13056): "[
0: /usr/lib64/libkdecore.so.5(kRealBacktrace(int)+0x35) [0x7f1293535305]
1: /home/boud/kde/inst/lib64/libkritaui.so.9(+0x2d3b99) [0x7f129a56cb99]
2: /home/boud/kde/inst/lib64/libkritaui.so.9(+0x2709c3) [0x7f129a5099c3]
3: /home/boud/kde/inst/lib64/libkritaui.so.9(KisPNGConverter::buildImage(QIODevice*)+0x281b) [0x7f129a50c4eb]
4: /home/boud/kde/inst/lib64/libkritaui.so.9(KisPNGConverter::buildImage(KUrl const&)+0x1b3) [0x7f129a50e0b3]
5: /home/boud/kde/master/lib64/kde4/kritapngimport.so(+0x2cb1) [0x7f125ec4bcb1]
6: /home/boud/kde/inst/lib64/libkomain.so.9(+0xe1c76) [0x7f1299a39c76]
7: /home/boud/kde/inst/lib64/libkomain.so.9(KoFilterChain::invokeChain()+0xd9) [0x7f1299a31e29]
8: /home/boud/kde/inst/lib64/libkomain.so.9(KoFilterManager::importDocument(QString const&, QString const&, KoFilter::ConversionStatus&)+0x3a6) [0x7f1299a30066]
9: /home/boud/kde/inst/lib64/libkomain.so.9(KoDocument::openFile()+0x748) [0x7f12999e01c8]
10: /usr/lib64/libkparts.so.4(+0x27c8c) [0x7f129972bc8c]
11: /usr/lib64/libkparts.so.4(KParts::ReadOnlyPart::openUrl(KUrl const&)+0x164) [0x7f129972c2d4]
12: /home/boud/kde/inst/lib64/libkomain.so.9(KoDocument::openUrl(KUrl const&)+0x12d) [0x7f12999e423d]
13: /home/boud/kde/inst/lib64/libkomain.so.9(KoMainWindow::openDocumentInternal(KUrl const&, KoDocument*)+0x10f) [0x7f1299a0308f]
14: /home/boud/kde/inst/lib64/libkomain.so.9(KoMainWindow::openDocument(KoDocument*, KUrl const&)+0x1a2) [0x7f1299a019d2]
15: /home/boud/kde/inst/lib64/libkomain.so.9(KoApplication::start()+0xd56) [0x7f12999d0ab6]
16: /home/boud/kde/inst/lib64/libkdeinit4_krita.so(kdemain+0x1d8) [0x7f129b1af498]
17: /lib64/libc.so.6(__libc_start_main+0xed) [0x7f129246b23d]
18: krita() [0x400911]
]
" 
ASSERT: "schema->propertyType(structName)" in file /home/boud/kde/src/calligra/krita/ui/kisexiv2/kis_xmp_io.cpp, line 207


-----------
Thread 1 (Thread 0x7f129b77a760 (LWP 13056)):
[KCrash Handler]
#6  0x00007f129247ed95 in raise () from /lib64/libc.so.6
#7  0x00007f12924802ab in abort () from /lib64/libc.so.6
#8  0x00007f129abbc9f4 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/libQtCore.so.4
#9  0x00007f129abbcbaf in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007f129abbcd54 in qFatal(char const*, ...) () from /usr/lib64/libQtCore.so.4
#11 0x00007f129abbcd9a in qt_assert(char const*, char const*, int) () from /usr/lib64/libQtCore.so.4
#12 0x00007f129a56cc34 in KisXMPIO::loadFrom (this=<optimized out>, store=0x16d26f0, ioDevice=<optimized out>) at /home/boud/kde/src/calligra/krita/ui/kisexiv2/kis_xmp_io.cpp:207
#13 0x00007f129a5099c3 in (anonymous namespace)::decode_meta_data (text=<optimized out>, store=0x16d26f0, type=<optimized out>, headerSize=0) at /home/boud/kde/src/calligra/krita/ui/kis_png_converter.cpp:252
#14 0x00007f129a50c4eb in KisPNGConverter::buildImage (this=0x7fff36080840, iod=0x17d5730) at /home/boud/kde/src/calligra/krita/ui/kis_png_converter.cpp:586
#15 0x00007f129a50e0b3 in KisPNGConverter::buildImage (this=0x7fff36080840, uri=<optimized out>) at /home/boud/kde/src/calligra/krita/ui/kis_png_converter.cpp:759
#16 0x00007f125ec4bcb1 in KisPNGImport::convert (this=0x1a46320, to=<optimized out>) at /home/boud/kde/src/calligra/krita/plugins/formats/png/kis_png_import.cc:72
#17 0x00007f1299a39c76 in CalligraFilter::ChainLink::invokeFilter (this=0x17d2b40, parentChainLink=0x0) at /home/boud/kde/src/calligra/libs/main/KoFilterChainLink.cpp:90
#18 0x00007f1299a31e29 in KoFilterChain::invokeChain (this=0x1a15a70) at /home/boud/kde/src/calligra/libs/main/KoFilterChain.cpp:94
#19 0x00007f1299a30066 in KoFilterManager::importDocument (this=0x1a23260, url=..., documentMimeType=<optimized out>, status=@0x7fff360813fc) at /home/boud/kde/src/calligra/libs/main/KoFilterManager.cpp:170
#20 0x00007f12999e01c8 in KoDocument::openFile (this=0x18525d0) at /home/boud/kde/src/calligra/libs/main/KoDocument.cpp:1564
#21 0x00007f129972bc8c in ?? () from /usr/lib64/libkparts.so.4
#22 0x00007f129972c2d4 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib64/libkparts.so.4
#23 0x00007f12999e423d in KoDocument::openUrl (this=0x18525d0, _url=...) at /home/boud/kde/src/calligra/libs/main/KoDocument.cpp:1322
#24 0x00007f1299a0308f in KoMainWindow::openDocumentInternal (this=0x1881d20, url=..., newdoc=0x18525d0) at /home/boud/kde/src/calligra/libs/main/KoMainWindow.cpp:675
#25 0x00007f1299a019d2 in KoMainWindow::openDocument (this=0x1881d20, newdoc=0x18525d0, url=...) at /home/boud/kde/src/calligra/libs/main/KoMainWindow.cpp:658
#26 0x00007f12999d0ab6 in KoApplication::start (this=<optimized out>) at /home/boud/kde/src/calligra/libs/main/KoApplication.cpp:304
#27 0x00007f129b1af498 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/boud/kde/src/calligra/krita/main.cc:63
#28 0x00007f129246b23d in __libc_start_main () from /lib64/libc.so.6
#29 0x0000000000400911 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 6 Halla Rempt 2012-04-27 06:20:23 UTC
And, of course, it means that distributions like ubuntu once again release packages with the asserts enabled -- which they shouldn't :-(. The backtrace I just added is a perfect example; we have the assert to tell us developers what went wrong, then there's a code to work around the problematical data.
Comment 7 Sven Langkamp 2012-04-27 13:05:33 UTC
They have disabled asserts as it doesn't crash on load, but on save. There it's running into a qFatal that is still there.
Comment 8 Halla Rempt 2012-04-27 13:09:44 UTC
Ah, that's it... But is the condition really fatal?
Comment 9 Halla Rempt 2012-05-10 15:01:17 UTC
Git commit 701a66ce219d708fa1f7f47106b051fe849b7ac4 by Boudewijn Rempt.
Committed on 10/05/2012 at 10:31.
Pushed by rempt into branch 'master'.

Don't use qFatal in the exiv2 code

If there's something we don't handle in a file, we still want to load
as much as possible of it, so warn, don't crash.

M  +3    -3    krita/ui/kisexiv2/kis_exif_io.cpp
M  +4    -3    krita/ui/kisexiv2/kis_exiv2.cpp
M  +3    -2    krita/ui/kisexiv2/kis_xmp_io.cpp

http://commits.kde.org/calligra/701a66ce219d708fa1f7f47106b051fe849b7ac4
Comment 10 Sven Langkamp 2012-08-28 02:18:29 UTC
*** Bug 305907 has been marked as a duplicate of this bug. ***