Bug 268801 - krita crash segmentation fault
Summary: krita crash segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 06:17 UTC by Mike
Modified: 2011-09-01 10:53 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 Mike 2011-03-18 06:17:58 UTC
Application: krita (2.2.2)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-30-generic i686
Distribution: Ubuntu 10.04.2 LTS

-- Information about the crash:
Al abrir un archivo jpg desde nautilus con el boton derecho del raton, la aplicacion krita, inicia, pero de forma inmediata se cierra.
el SO es GNU/ Ubuntu con escritorio GNOME en version 10.04 con todas las actualizaciones, el hardware es un intel core 2 duo t5300 con 2GB de RAM 
El fallo tambien se produce cuando se abre krita, y al ir a la opcion de abrir y seleccionar el archivo jpg, causa el fallo de krita

The crash can be reproduced every time.

 -- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb772f730 (LWP 3490))]

Thread 3 (Thread 0xb5e07b70 (LWP 3491)):
#0  0x003b2422 in __kernel_vsyscall ()
#1  0x009b6015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x00f209dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x0041a287 in QWaitConditionPrivate::wait (this=0x9b978c4, mutex=0x9b978c0, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9b978c4, mutex=0x9b978c0, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x00415ded in QSemaphore::acquire (this=0x3942468, n=1) at thread/qsemaphore.cpp:142
#6  0x037eed33 in KisTileDataPooler::waitForWork (this=0x3942460) at ../../../krita/image/tiles3/kis_tile_data_pooler.cc:133
#7  0x037ef2af in KisTileDataPooler::run (this=0x3942460) at ../../../krita/image/tiles3/kis_tile_data_pooler.cc:162
#8  0x0041932e in QThreadPrivate::start (arg=0x3942460) at thread/qthread_unix.cpp:248
#9  0x009b196e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x00f13a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb54d5b70 (LWP 3492)):
#0  0x003b2422 in __kernel_vsyscall ()
#1  0x00f0c971 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x005448b2 in qt_safe_select (nfds=29, fdread=0xa0a1bb0, fdwrite=0xa0a1dc4, fdexcept=0xa0a1fd8, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#3  0x005492f9 in QEventDispatcherUNIX::select (this=0xa0a1aa8, nfds=29, readfds=0xa0a1bb0, writefds=0xa0a1dc4, exceptfds=0xa0a1fd8, timeout=0x0) at kernel/qeventdispatcher_unix.cpp:633
#4  0x0054a007 in QEventDispatcherUNIXPrivate::doSelect (this=0xa0a1ab8, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:218
#5  0x0054af05 in QEventDispatcherUNIX::processEvents (this=0xa0a1aa8, flags=...) at kernel/qeventdispatcher_unix.cpp:920
#6  0x0051a059 in QEventLoop::processEvents (this=0xb54d52b0, flags=) at kernel/qeventloop.cpp:149
#7  0x0051a4aa in QEventLoop::exec (this=0xb54d52b0, flags=...) at kernel/qeventloop.cpp:201
#8  0x004165a8 in QThread::exec (this=0xa03e958) at thread/qthread.cpp:487
#9  0x0389d8ed in KisProjection::run (this=0xa03e958) at ../../../krita/image/kis_projection.cc:86
#10 0x0041932e in QThreadPrivate::start (arg=0xa03e958) at thread/qthread_unix.cpp:248
#11 0x009b196e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0x00f13a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb772f730 (LWP 3490)):
[KCrash Handler]
#6  deviceSettingDescriptionExifToKMD (value=...) at ../../../krita/ui/kisexiv2/kis_exif_io.cpp:214
#7  0x0457b022 in KisExifIO::loadFrom (this=0x9b653e8, store=0xa03fad8, ioDevice=0xbfe771d8) at ../../../krita/ui/kisexiv2/kis_exif_io.cpp:532
#8  0x02f65b18 in KisJPEGConverter::decode (this=0xbfe77608, uri=...) at ../../../../../krita/plugins/formats/jpeg/kis_jpeg_converter.cc:313
#9  0x02f6774c in KisJPEGConverter::buildImage (this=0xbfe77608, uri=...) at ../../../../../krita/plugins/formats/jpeg/kis_jpeg_converter.cc:433
#10 0x02f61b6b in KisJPEGImport::convert (this=0x9ee7528, to=...) at ../../../../../krita/plugins/formats/jpeg/kis_jpeg_import.cc:78
#11 0x007795c9 in KOfficeFilter::ChainLink::invokeFilter (this=0x9f16b20, parentChainLink=0x0) at ../../../libs/main/KoFilterChainLink.cpp:73
#12 0x0076f8dd in KoFilterChain::invokeChain (this=0xa03cf00) at ../../../libs/main/KoFilterChain.cpp:94
#13 0x0076d855 in KoFilterManager::importDocument (this=0x9f52b18, url=..., status=@0xbfe77984) at ../../../libs/main/KoFilterManager.cpp:163
#14 0x0071d3ba in KoDocument::openFile (this=0x9b66070) at ../../../libs/main/KoDocument.cpp:1253
#15 0x00387ca9 in KParts::ReadOnlyPart::openUrl (this=0x9b66070, url=...) at ../../kparts/part.cpp:557
#16 0x0071ccb1 in KoDocument::openUrl (this=0x9b66070, _url=...) at ../../../libs/main/KoDocument.cpp:1181
#17 0x0073fe7f in KoMainWindow::openDocumentInternal (this=0x9ee49b8, url=..., newdoc=0x9b66070) at ../../../libs/main/KoMainWindow.cpp:671
#18 0x00741106 in KoMainWindow::openDocument (this=0x9ee49b8, newdoc=0x9b66070, url=...) at ../../../libs/main/KoMainWindow.cpp:654
#19 0x0070c0d7 in KoApplication::start (this=0xbfe77ee0) at ../../../libs/main/KoApplication.cpp:216
#20 0x0096400a in kdemain (argc=2, argv=0xbfe77ff4) at ../../krita/main.cc:46
#21 0x080485fb in main (argc=2, argv=0xbfe77ff4) at krita_dummy.cpp:3

Reported using DrKonqi
Comment 1 Halla Rempt 2011-03-18 18:54:57 UTC
Hi Mike,

Thanks for your report. My Spanish is non-existent, so I hope you can read English... You are using a rather old version of Krita, we have released 2.3 now. If you can attach one of the crashing files to the report, or mail it to boud@valdyas.org, I can check whether that version or current development version has fixed the bug.
Comment 2 Mike 2011-03-19 02:40:38 UTC
Hi!
thaks for your reply, my english is so bad, but i try it.

well, i installed the package is from Ubuntu's repository. The version installed in my Linux's box is 2.2.2. I hope the version you mention was release in ubuntu's repository, but if not, Would i have download from the svn?

So, after i try again, with the same version 2.2.2 from another pic, and this time krita can open the file.

however, this photo's can't open and occurs the same error.

I copy&paste the report file generated from drkonqui 

Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb785d730 (LWP 2079))]

Thread 3 (Thread 0xb5f35b70 (LWP 2080)):
#0  0x00f9f422 in __kernel_vsyscall ()
#1  0x00eba015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0052e9dd in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x00871287 in QWaitConditionPrivate::wait (this=0x9cbe24c, mutex=0x9cbe248, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9cbe24c, mutex=0x9cbe248, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x0086cded in QSemaphore::acquire (this=0x30d3468, n=1) at thread/qsemaphore.cpp:142
#6  0x02f7fd33 in KisTileDataPooler::waitForWork (this=0x30d3460) at ../../../krita/image/tiles3/kis_tile_data_pooler.cc:133
#7  0x02f802af in KisTileDataPooler::run (this=0x30d3460) at ../../../krita/image/tiles3/kis_tile_data_pooler.cc:162
#8  0x0087032e in QThreadPrivate::start (arg=0x30d3460) at thread/qthread_unix.cpp:248
#9  0x00eb596e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x00521a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb5603b70 (LWP 2081)):
#0  0x07efbe16 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0x0099b6fb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x009a0825 in QTimerInfoList::updateCurrentTime (this=0xa25a2c0) at kernel/qeventdispatcher_unix.cpp:340
#3  0x009a0eb5 in QEventDispatcherUNIXPrivate::doSelect (this=0xa259c20, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:181
#4  0x009a1f05 in QEventDispatcherUNIX::processEvents (this=0xa259c10, flags=...) at kernel/qeventdispatcher_unix.cpp:920
#5  0x00971059 in QEventLoop::processEvents (this=0xb56032b0, flags=) at kernel/qeventloop.cpp:149
#6  0x009714aa in QEventLoop::exec (this=0xb56032b0, flags=...) at kernel/qeventloop.cpp:201
#7  0x0086d5a8 in QThread::exec (this=0xa1c2720) at thread/qthread.cpp:487
#8  0x0302e8ed in KisProjection::run (this=0xa1c2720) at ../../../krita/image/kis_projection.cc:86
#9  0x0087032e in QThreadPrivate::start (arg=0xa1c2720) at thread/qthread_unix.cpp:248
#10 0x00eb596e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0x00521a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb785d730 (LWP 2079)):
[KCrash Handler]
#6  deviceSettingDescriptionExifToKMD (value=...) at ../../../krita/ui/kisexiv2/kis_exif_io.cpp:214
#7  0x02e31022 in KisExifIO::loadFrom (this=0x9c9d9b0, store=0xa1c3078, ioDevice=0xbf9fbde8) at ../../../krita/ui/kisexiv2/kis_exif_io.cpp:532
#8  0x03246b18 in KisJPEGConverter::decode (this=0xbf9fc218, uri=...) at ../../../../../krita/plugins/formats/jpeg/kis_jpeg_converter.cc:313
#9  0x0324874c in KisJPEGConverter::buildImage (this=0xbf9fc218, uri=...) at ../../../../../krita/plugins/formats/jpeg/kis_jpeg_converter.cc:433
#10 0x03242b6b in KisJPEGImport::convert (this=0xa01f2b8, to=...) at ../../../../../krita/plugins/formats/jpeg/kis_jpeg_import.cc:78
#11 0x001cc5c9 in KOfficeFilter::ChainLink::invokeFilter (this=0xa09bc70, parentChainLink=0x0) at ../../../libs/main/KoFilterChainLink.cpp:73
#12 0x001c28dd in KoFilterChain::invokeChain (this=0xa1bf568) at ../../../libs/main/KoFilterChain.cpp:94
#13 0x001c0855 in KoFilterManager::importDocument (this=0xa091c00, url=..., status=@0xbf9fc594) at ../../../libs/main/KoFilterManager.cpp:163
#14 0x001703ba in KoDocument::openFile (this=0x9cca208) at ../../../libs/main/KoDocument.cpp:1253
#15 0x00e0dca9 in KParts::ReadOnlyPart::openUrl (this=0x9cca208, url=...) at ../../kparts/part.cpp:557
#16 0x0016fcb1 in KoDocument::openUrl (this=0x9cca208, _url=...) at ../../../libs/main/KoDocument.cpp:1181
#17 0x00192e7f in KoMainWindow::openDocumentInternal (this=0xa01c708, url=..., newdoc=0x9cca208) at ../../../libs/main/KoMainWindow.cpp:671
#18 0x00194106 in KoMainWindow::openDocument (this=0xa01c708, newdoc=0x9cca208, url=...) at ../../../libs/main/KoMainWindow.cpp:654
#19 0x0015f0d7 in KoApplication::start (this=0xbf9fcaf0) at ../../../libs/main/KoApplication.cpp:216
#20 0x00b0800a in kdemain (argc=2, argv=0xbf9fcc04) at ../../krita/main.cc:46
#21 0x080485fb in main (argc=2, argv=0xbf9fcc04) at krita_dummy.cpp:3
Comment 3 Halla Rempt 2011-03-19 07:55:46 UTC
If you add ppa:kubuntu-ppa/backports to you software sources list you can get the latest version of Krita -- please follow the instructions at http://www.kubuntu.org/news/koffice-2.3.1.

Can you mail me (boud@valdyas.org) on of the jpg files that crash for you? Then I can investigate. Thanks!
Comment 4 Mike 2011-03-21 06:01:27 UTC
Thanks for your attention! i'll add the ppa and report the results, i send the files i that cause the fault.
Comment 5 Halla Rempt 2011-03-21 09:27:23 UTC
With the files Mike sent me I can reproduce indeed, also with trunk.

Console output says:

krita(20245)/krita (core): Missing name attribute for tag  "date"
Comment 6 Cyrille Berger 2011-03-23 10:58:43 UTC
The console output is likely unrelated. Do you get the same backtrace ? Would be usefull if you could either forward me the image or attach it to the bug report.
Comment 7 Halla Rempt 2011-03-23 11:03:35 UTC
I've got the images, will forward to you.
Comment 8 Cyrille Berger 2011-03-26 15:10:20 UTC
Git commit 4bdf84940db2f3268168e9e59d1113e1a3ae162f by Cyrille Berger.
Committed on 26/03/2011 at 15:10.
Pushed by berger into branch 'master'.

Fix: crash when opening jpeg files containing a DeviceSettingsParameter made out of an array of short

CCBUG:268801

M  +25   -13   krita/ui/kisexiv2/kis_exif_io.cpp     

http://commits.kde.org/calligra/4bdf84940db2f3268168e9e59d1113e1a3ae162f
Comment 9 Halla Rempt 2011-07-24 15:21:06 UTC
Hi Cyrille,

Can we close this bug now?
Comment 10 Sven Langkamp 2011-09-01 10:53:34 UTC
Image load and save ok now. Please reopen the bug if you still get a crash.