Bug 153200 - kio cannot generate thumbnail in file dialog for certain JPEG and SIGSEGV's when image is chosen
Summary: kio cannot generate thumbnail in file dialog for certain JPEG and SIGSEGV's w...
Status: RESOLVED NOT A BUG
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 00:18 UTC by Charles Connell
Modified: 2007-12-29 20:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
One of the naughty images. (Not like that ;) ) (256.14 KB, image/jpeg)
2007-12-01 00:21 UTC, Charles Connell
Details
Another dissident image (42.99 KB, image/jpeg)
2007-12-01 00:33 UTC, Charles Connell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Connell 2007-12-01 00:18:01 UTC
Version:            (using KDE KDE 3.96.0)
Installed from:    Compiled From Sources
Compiler:          gcc version 4.1.2 20061115 (prerelease) (SUSE Linux) 
OS:                Linux

I am using brand new SVN Kopete to choose avatars for some meta-contacts in my contact list. When I mouse-roll-over some of the images, the file dialog does not generate thumbnails on its right pane. The console shows this message every time a thumbnail is not generated:

kopete(25124)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 104 "Cannot create thumbnail for /home/connellcharles/Pictures/becca.jpg"
(or whatever image I try)

For a small percentage of these non-thumbnailable images, selecting Open causes a crash with console error:

ASSERT: "!pixmap.isNull()" in file /home/kde-devel/KDE/src/KDE/kdelibs/kdeui/widgets/kpixmapregionselectorwidget.cpp, line 115

This is the backtrace when the SIGSEGV is caught by gdb:

#0  0xb7ef9410 in ?? ()
#1  0xbfb4060c in ?? ()
#2  0x00000006 in ?? ()
#3  0xb608c801 in abort () from /lib/libc.so.6
#4  0xb7db3dad in qt_message_output (msgType=QtFatalMsg,
    buf=0xbfb40790 "ASSERT: \"!pixmap.isNull()\" in file /home/kde-devel/KDE/src/KDE/kdelibs/kdeui/widgets/kpixmapregionselectorwidget.cpp, line 115") at global/qglobal.cpp:2162
#5  0xb7db3e11 in qFatal (msg=0xb7ea9b10 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2393
#6  0xb7db3f6b in qt_assert (assertion=0xb7a80f58 "!pixmap.isNull()",
    file=0xb7a80ed0 "/home/kde-devel/KDE/src/KDE/kdelibs/kdeui/widgets/kpixmapregionselectorwidget.cpp", line=115)
    at global/qglobal.cpp:1919
#7  0xb7a01d89 in KPixmapRegionSelectorWidget::setPixmap (this=0x879bc20, pixmap=@0xbfb42908)
    at /home/kde-devel/KDE/src/KDE/kdelibs/kdeui/widgets/kpixmapregionselectorwidget.cpp:115
#8  0xb78ca978 in KPixmapRegionSelectorDialog::getSelectedImage (pixmap=@0xbfb42908, aspectRatioWidth=96, aspectRatioHeight=96,
    parent=0x8875130) at /home/kde-devel/KDE/src/KDE/kdelibs/kdeui/dialogs/kpixmapregionselectordialog.cpp:137
#9  0xb6ccb88e in Kopete::UI::AvatarSelectorWidget::buttonAddAvatarClicked (this=0x8875130)
    at /home/kde-devel/KDE/src/KDE/kdenetwork/kopete/libkopete/ui/avatarselectorwidget.cpp:186
#10 0xb6ccbc44 in Kopete::UI::AvatarSelectorWidget::qt_metacall (this=0x8875130, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfb42ebc)
    at /home/kde-devel/KDE/build/KDE/kdenetwork/kopete/libkopete/avatarselectorwidget.moc:76
#11 0xb7e8281a in QMetaObject::activate (sender=0x87e91a8, from_signal_index=29, to_signal_index=30, argv=0xbfb42ebc)
    at kernel/qobject.cpp:3089
#12 0xb7e829d0 in QMetaObject::activate (sender=0x87e91a8, m=0xb7553e24, from_local_signal_index=2, to_local_signal_index=3,
    argv=0xbfb42ebc) at kernel/qobject.cpp:3171
#13 0xb749cef4 in QAbstractButton::clicked (this=0x87e91a8, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:180
#14 0xb7246610 in QAbstractButtonPrivate::emitClicked (this=0x87f5db8) at widgets/qabstractbutton.cpp:532
#15 0xb7247a19 in QAbstractButtonPrivate::click (this=0x87f5db8) at widgets/qabstractbutton.cpp:525
#16 0xb7247cbe in QAbstractButton::mouseReleaseEvent (this=0x87e91a8, e=0xbfb436a8) at widgets/qabstractbutton.cpp:1102
#17 0xb6f4f111 in QWidget::event (this=0x87e91a8, event=0xbfb436a8) at kernel/qwidget.cpp:6129
#18 0xb72465aa in QAbstractButton::event (this=0x87e91a8, e=0xbfb436a8) at widgets/qabstractbutton.cpp:1064
#19 0xb72edc81 in QPushButton::event (this=0x87e91a8, e=0xbfb436a8) at widgets/qpushbutton.cpp:667
#20 0xb6efd445 in QApplicationPrivate::notify_helper (this=0x80c0d28, receiver=0x87e91a8, e=0xbfb436a8) at kernel/qapplication.cpp:3558
#21 0xb6efe01f in QApplication::notify (this=0xbfb467d0, receiver=0x87e91a8, e=0xbfb436a8) at kernel/qapplication.cpp:3257
#22 0xb79339dd in KApplication::notify (this=0xbfb467d0, receiver=0x87e91a8, event=0xbfb436a8)
    at /home/kde-devel/KDE/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:319
#23 0xb7e713a2 in QCoreApplication::notifyInternal (this=0xbfb467d0, receiver=0x87e91a8, event=0xbfb436a8)
    at kernel/qcoreapplication.cpp:532
#24 0xb6f088ef in QCoreApplication::sendSpontaneousEvent (receiver=0x87e91a8, event=0xbfb436a8)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:205
#25 0xb6f6976a in QETWidget::translateMouseEvent (this=0x87e91a8, event=0xbfb43b30) at kernel/qapplication_x11.cpp:3871
#26 0xb6f67482 in QApplication::x11ProcessEvent (this=0xbfb467d0, event=0xbfb43b30) at kernel/qapplication_x11.cpp:2922
#27 0xb6f93e52 in x11EventSourceDispatch (s=0x80c3200, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:137
#28 0xb5ff4de2 in g_main_context_dispatch () from /opt/gnome/lib/libglib-2.0.so.0
#29 0xb5ff7e1f in ?? () from /opt/gnome/lib/libglib-2.0.so.0
#30 0x080c2128 in ?? ()
#31 0x00000000 in ?? ()

I will attach the only two images that I have found to cause a crash and also not generate thumbnails. These are both normal (I hope!) JPEG's that render fine everywhere in KDE 3.
Comment 1 Charles Connell 2007-12-01 00:21:09 UTC
Created attachment 22264 [details]
One of the naughty images. (Not like that ;) )
Comment 2 Charles Connell 2007-12-01 00:23:01 UTC
Comment on attachment 22264 [details]
One of the naughty images. (Not like that ;) )

Actually, I take back I little of what I said in the summary. This image will
not render anywhere.
Comment 3 Charles Connell 2007-12-01 00:33:23 UTC
Created attachment 22265 [details]
Another dissident image

This image renders fine in KDE 3. I do not know about KDE 4 yet.
Comment 4 Charles Connell 2007-12-01 15:43:56 UTC
Comment on attachment 22265 [details]
Another dissident image

This will not render in Konqueror 4 or thumbnail in Dolphin, but no crashes
with either of those.
Comment 5 David Faure 2007-12-18 15:40:40 UTC
I saved attachment 22265 [details] into a jpg file and opened dolphin in that directory, and the preview worked fine.

Attachment 22264 [details] is a broken file, isn't it?
file att-22264
att-22264: data
Doesn't look like JPEG at all to me.
khexedit says it starts with ea 23 e8 4f 2a 8d 42 c3 ....
Normal JPEG files like the other one starts with ff d8 ff e1 (and is followed by the string "Exif").

Attachment 22264 [details] does NOT render correctly for me in kde3.
Comment 6 Charles Connell 2007-12-27 03:37:48 UTC
When I download 22265, I also experience no viewing problems. Since Kopete is the only app that crashes, I'll guess that it's a problem there. I'll give 24h, then mark the bug as INVALID.
Comment 7 Charles Connell 2007-12-29 20:34:17 UTC
Unable to reproduce bug