Bug 212807

Summary: Crash when trying to open monochrome tiffs
Product: [Applications] gwenview Reporter: alexpremie
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: alexpremie, andresbajotierra, blackie, jaymoore, risto, sebastian.rose
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description alexpremie 2009-11-02 22:03:22 UTC
Version:           2.3.2 (using KDE 4.3.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Crash when trying to open monochrome tiff
(Gimp opens same monochrome tiffs w/o problem)
(I hope this description is long enough for bugs.kde ...)
Comment 1 Dario Andres 2009-11-03 22:24:49 UTC
- If you can reproduce the crash at will (or you experience this regularly), may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? (you need to install the "kdegraphics-dbg" package) Thanks
Comment 2 Risto H. Kurppa 2009-12-30 11:19:46 UTC
I might have faced the same issue.
Kubuntu 9.10 w. KDE 4.3.4

This is what I did: 
wget kurppa.fi/temp/testimage.tif
gwenview testimage.tif

And this is the trace:

Application: Gwenview (gwenview), signal: Aborted
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f2db5aa2750 (LWP 6716))]

Thread 3 (Thread 0x7f2da7c28910 (LWP 6718)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f2db4a795db in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1ad89c8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1ad89c8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f2db53fe71c in Gwenview::SemanticInfoThread::run() () from /usr/lib/libgwenviewlib.so.4
#4  0x00007f2db4a78625 in QThreadPrivate::start (arg=0x1ad89b0) at thread/qthread_unix.cpp:244
#5  0x00007f2dafb48a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f2db288e7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f2da64ca910 (LWP 6719)):
[KCrash Handler]
#5  0x00007f2db27e24b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f2db27e5f50 in *__GI_abort () at abort.c:92
#7  0x00007f2db281ac97 in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007f2db2824dd6 in malloc_printerr (action=3, str=0x7f2db28e6638 "munmap_chunk(): invalid pointer", ptr=<value optimized out>) at malloc.c:6217
#9  0x00007f2da9e2ed45 in TIFFCleanup () from /usr/lib/libtiff.so.4
#10 0x00007f2da9e2eda1 in TIFFClose () from /usr/lib/libtiff.so.4
#11 0x00007f2daa086991 in QTiffHandler::read (this=<value optimized out>, image=0x1deb310) at qtiffhandler.cpp:211
#12 0x00007f2db3550b03 in QImageReader::read (this=0x7f2da64c9fe0, image=0x1deb310) at image/qimagereader.cpp:1118
#13 0x00007f2db53af842 in Gwenview::LoadingDocumentImplPrivate::loadImageData (this=0x1deb270) at ../../../gwenview/lib/document/loadingdocumentimpl.cpp:221
#14 0x00007f2db53aed76 in QtConcurrent::RunFunctionTask<void>::run (this=0x1e0fa20) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:120
#15 0x00007f2db4a6e859 in QThreadPoolThread::run (this=0x1e1ecf0) at concurrent/qthreadpool.cpp:106
#16 0x00007f2db4a78625 in QThreadPrivate::start (arg=0x1e1ecf0) at thread/qthread_unix.cpp:244
#17 0x00007f2dafb48a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#18 0x00007f2db288e7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 1 (Thread 0x7f2db5aa2750 (LWP 6716)):
#0  0x00007f2db2882373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=21834) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f2dab1fab90 in ?? () from /lib/libdbus-1.so.3
#2  0x00007f2dab1f8fdd in ?? () from /lib/libdbus-1.so.3
#3  0x00007f2dab1e558e in ?? () from /lib/libdbus-1.so.3
#4  0x00007f2dab1e79c3 in ?? () from /lib/libdbus-1.so.3
#5  0x00007f2dab1e6f46 in dbus_connection_send_with_reply_and_block () from /lib/libdbus-1.so.3
#6  0x00007f2dafd89fbb in q_dbus_connection_send_with_reply_and_block (this=0x19f0dd0, message=<value optimized out>, sendMode=<value optimized out>, timeout=-1) at ./qdbus_symbols_p.h:133
#7  QDBusConnectionPrivate::sendWithReply (this=0x19f0dd0, message=<value optimized out>, sendMode=<value optimized out>, timeout=-1) at qdbusintegrator.cpp:1780
#8  0x00007f2dafd734c3 in QDBusConnection::call (this=0x1e21fc0, message=..., mode=4294967295, timeout=0) at qdbusconnection.cpp:516
#9  0x00007f2dafd923b2 in QDBusAbstractInterface::callWithArgumentList (this=<value optimized out>, mode=QDBus::Block, method=<value optimized out>, args=<value optimized out>)
    at qdbusabstractinterface.cpp:440
#10 0x00007f2db502b5da in OrgKdeKLauncherInterface::requestSlave (this=0x1b4c450, protocol=<value optimized out>, host=<value optimized out>, app_socket=<value optimized out>, error=...)
    at ../../kdecore/util/klauncher_iface.h:120
#11 0x00007f2db502a174 in KIO::Slave::createSlave (protocol=..., url=<value optimized out>, error=@0x7fffceecaa7c, error_text=...) at ../../kio/kio/slave.cpp:434
#12 0x00007f2db5023ed3 in KIO::SchedulerPrivate::createSlave (this=0x1b1f990, protInfo=0x1b21bc0, job=0x1b2cc10, url=...) at ../../kio/kio/scheduler.cpp:709
#13 0x00007f2db502549d in KIO::SchedulerPrivate::startJobDirect (this=0x1b1f990) at ../../kio/kio/scheduler.cpp:612
#14 0x00007f2db50254e8 in KIO::SchedulerPrivate::startStep (this=0x1b1f990) at ../../kio/kio/scheduler.cpp:452
#15 0x00007f2db50257a4 in KIO::Scheduler::qt_metacall (this=0x1b35900, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffceecac40) at ./scheduler.moc:102
#16 0x00007f2db4b7e933 in QMetaObject::activate (sender=0x1b1f998, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3282
#17 0x00007f2db4b7b5a3 in QObject::event (this=0x1b1f998, e=0x7fffceecb300) at kernel/qobject.cpp:1212
#18 0x00007f2db347cddc in QApplicationPrivate::notify_helper (this=0x1941170, receiver=0x1b1f998, e=0x7fffceecb300) at kernel/qapplication.cpp:4242
#19 0x00007f2db34833dd in QApplication::notify (this=0x7fffceecb650, receiver=0x1b1f998, e=0x7fffceecb300) at kernel/qapplication.cpp:4125
#20 0x00007f2db4171e56 in KApplication::notify (this=0x7fffceecb650, receiver=0x1b1f998, event=0x7fffceecb300) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x00007f2db4b6bbbc in QCoreApplication::notifyInternal (this=0x7fffceecb650, receiver=0x1b1f998, event=0x7fffceecb300) at kernel/qcoreapplication.cpp:704
#22 0x00007f2db4b988c2 in QCoreApplication::sendEvent (this=0x1944bd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 QTimerInfoList::activateTimers (this=0x1944bd0) at kernel/qeventdispatcher_unix.cpp:603
#24 0x00007f2db4b954a4 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#25 0x00007f2daf2a5bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x00007f2daf2a9598 in ?? () from /lib/libglib-2.0.so.0
#27 0x00007f2daf2a96c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x00007f2db4b95193 in QEventDispatcherGlib::processEvents (this=0x19391c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#29 0x00007f2db352b19e in QGuiEventDispatcherGlib::processEvents (this=0x7fffceec9f20, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#30 0x00007f2db4b6a4e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007f2db4b6a8bc in QEventLoop::exec (this=0x7fffceecb5a0, flags=) at kernel/qeventloop.cpp:201
#32 0x00007f2db4b6e5fb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#33 0x0000000000440630 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../gwenview/app/main.cpp:95
The current source language is "auto; currently c".
Comment 3 Jesper Pedersen 2009-12-30 11:25:56 UTC
Let me add that Risto also sees this crash in KPhotoAlbum, so it might very well comes from a shared library used by Qt for reading images. In KphotoAlbum, we simply load the images into a QImage, and I suspect that Gwenview does the same for Tiff's at least.

Furthermore, Risto sees the crash on a KDE 4.3.4 he have, but not on a KDE 4.3.2 (and personally, I dont see it on my KDE 4.3.2 either)
Comment 4 Nicolas L. 2010-09-02 16:18:23 UTC
*** Bug 249367 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Rose 2011-07-07 13:19:03 UTC
Created attachment 61676 [details]
New crash information added by DrKonqi

gwenview (2.6.4) on KDE Platform 4.6.4 (4.6.4) using Qt 4.7.3

- What I was doing when the application crashed:

When I try to open this TIFF file: http://semkath.de/files/rewe.tif gwenview crashes.

-- Backtrace (Reduced):
#8  0x00007f602f24d92a in __libc_message (do_abort=2, fmt=0x7f602f32b978 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
#9  0x00007f602f252edd in malloc_printerr (action=3, str=0x7f602f32ba68 "munmap_chunk(): invalid pointer", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007f60228ad155 in TIFFCleanup (tif=0x132b460) at tif_close.c:73
#11 0x00007f60228ad1b9 in TIFFClose (tif=<value optimized out>) at tif_close.c:128
#12 0x00007f6022b1c56d in QTiffHandler::read (this=<value optimized out>, image=0x128eac0) at ../../../gui/image/qtiffhandler.cpp:377
Comment 6 Andrew Crouthamel 2018-09-23 02:34:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 03:31:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!