Bug 108747 - picture-viewer crash on special JPEG-pictures without exif
Summary: picture-viewer crash on special JPEG-pictures without exif
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-JPEG (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-08 12:04 UTC by Detlef Duerr
Modified: 2019-07-27 16:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0


Attachments
Picture that generates the crash (236.15 KB, image/jpeg)
2005-07-08 12:26 UTC, Detlef Duerr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Detlef Duerr 2005-07-08 12:04:05 UTC
Version:           7.2 (using KDE KDE 3.3.0KDE 1.2)
Installed from:    SuSE RPMsSuSE RPMsSuSE RPMs
Compiler:          gcc 3.3.1 
OS:                Linux

after installing digikam-0.7.2 al runs very well but since i wish to show
jpg-pictures made by openoffice-presenter i get a crash in the
picture-viewer. Here my configuration:

SuSE 9.0
KDE 3.1
autoconf 2.58
automake 1.7.6

gphoto2 2.1.1-34
imlib2 1.1.0-31
libgdbm 1.83
libkipi 0.1.1
libkexif 0.2.1 mit libexif 0.5.12-27 instead of 0.6.9

Here the crash-information:
[New Thread 16384 (LWP 13661)]
0x41592a86 in waitpid () from /lib/i686/libpthread.so.0
#0  0x41592a86 in waitpid () from /lib/i686/libpthread.so.0
#1  0x40a6b010 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x4159196c in __pthread_sighandler () from /lib/i686/libpthread.so.0
#3  <signal handler called>
#4  0x406bf7a2 in __imlib_RenderImage () from /usr/lib/libImlib2.so.1
#5  0x406aa48b in imlib_render_image_part_on_drawable_at_size ()
   from /usr/lib/libImlib2.so.1
#6  0x40178795 in Digikam::ImlibInterface::paintOnDevice(QPaintDevice*, int,
int, int, int, int, int, int, int, int) () from /opt/kde3/lib/libdigikam.so.0
#7  0x4017c7d4 in Canvas::paintViewport(QRect const&, bool) ()
   from /opt/kde3/lib/libdigikam.so.0
#8  0x4017be30 in Canvas::viewportPaintEvent(QPaintEvent*) ()
   from /opt/kde3/lib/libdigikam.so.0
#9  0x40f7576c in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x40e5ffde in QObject::activate_filters(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x40e5fed0 in QObject::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x40e9901f in QWidget::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40e00656 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40dff97e in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x409f88c9 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#16 0x40dc844b in QWidget::repaint(QRegion const&, bool) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40e01557 in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40e012f6 in QApplication::sendPostedEvents() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x40da7cf5 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x40e14900 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40e147f6 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40e008ef in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x08049f07 in main ()

As an attachment i can send to you one of my pictures, which are showable with
version 0.6.1 but not with 0.7.2.
Comment 1 Tom Albers 2005-07-08 12:14:06 UTC
Could you attach it to the bugreport?
Comment 2 caulier.gilles 2005-07-08 12:20:49 UTC
This crash is relevant of imlib2 bug (I have the same problem under Mandriva).
Please install a recent imlib2 release (1.2) and try again.

Gilles Caulier
Comment 3 Detlef Duerr 2005-07-08 12:26:47 UTC
Created attachment 11718 [details]
Picture that generates the crash
Comment 4 Renchi Raju 2005-07-10 22:20:55 UTC

*** This bug has been marked as a duplicate of 100894 ***
Comment 5 Detlef Duerr 2005-07-19 14:31:19 UTC
The crash does not run away with a new imlib (version 1.2). All goes well, if I view the picture with the test-command imlib-view, but all goes wrong with digikam. Here are the crash-report from kde3.1 and with the new imlib2:
[New Thread 16384 (LWP 14647)]
0x415a8a86 in waitpid () from /lib/i686/libpthread.so.0
#0  0x415a8a86 in waitpid () from /lib/i686/libpthread.so.0
#1  0x40a81010 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x415a796c in __pthread_sighandler () from /lib/i686/libpthread.so.0
#3  <signal handler called>
#4  0x406cfefe in __imlib_RenderImage (d=0x8076338, im=0x85c59e8, w=52430388, 
    m=0, v=0x807ac88, cm=32, depth=24, sx=1027, sy=770, sw=33, sh=25, dx=0, 
    dy=0, dw=1114263552, dh=140604140, antialias=1 '\001', hiq=1 '\001', 
    blend=1 '\001', dither_mask=0 '\0', cmod=0x85b92d8, op=OP_COPY)
    at rend.c:434
#5  0x406ae064 in imlib_render_image_part_on_drawable_at_size (source_x=1027, 
    source_y=770, source_width=128, source_height=128, x=0, y=0, width=128, 
    height=128) at api.c:1912
#6  0x4018a0fe in Digikam::ImlibInterface::paintOnDevice(QPaintDevice*, int, int, int, int, int, int, int, int, int) (this=0x85b8b58, p=0x860ec38, sx=1027, 
    sy=770, sw=128, sh=128, dx=0, dy=0, dw=128, dh=128, antialias=1)
    at imlibinterface.cpp:493
#7  0x4018e68a in Canvas::paintViewport(QRect const&, bool) (this=0x85b7708, 
    er=@0xbfffe7f0, antialias=true) at canvas.cpp:421
#8  0x4018d9af in Canvas::viewportPaintEvent(QPaintEvent*) (this=0x85b7708, 
    e=0xbfffec50) at canvas.cpp:324
#9  0x40f8b76c in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x40e75fde in QObject::activate_filters(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x40e75ed0 in QObject::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x40eaf01f in QWidget::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40e16656 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40e1597e in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x40a0e8c9 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#16 0x40dde44b in QWidget::repaint(QRegion const&, bool) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40e17557 in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40e172f6 in QApplication::sendPostedEvents() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x40dbdcf5 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x40e2a900 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40e2a7f6 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40e168ef in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x0804a22d in main (argc=7, argv=0xbffff0a4) at main.cpp:280
Comment 6 Detlef Duerr 2005-07-19 15:12:00 UTC
The patch for imlib2 in the error-report 100894 solves my problem. With this patch in rend.c of imlib2-1.2.0 the crash does not occur anymore.
Thanks
Comment 7 caulier.gilles 2019-07-27 16:01:52 UTC
Fixed with bug #100894