Bug 185000 - Dolphin crash with previews using Qt4.5 + raster paint engine
Summary: Dolphin crash with previews using Qt4.5 + raster paint engine
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 185758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-20 06:53 UTC by BRULE Herman
Modified: 2009-08-19 22:01 UTC (History)
11 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 BRULE Herman 2009-02-20 06:53:39 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Gentoo Packages

I use gentoo KDE4.2 + gcc 4.3 + QT 4.5, Dolphin crash very often:
Crash too for me:
Application: Dolphin (dolphin), signal SIGSEGV
0x00007fe7f76e98d0 in __nanosleep_nocancel () from /lib/libc.so.6
Current language:  auto; currently c

Thread 1 (Thread 0x7fe7fbcbf750 (LWP 16733)):
[KCrash Handler]
#5  0x00007fe7f83c752b in qt_scale_image_32bit<Blend_RGB32_on_RGB32_NoAlpha>
(destPixels=0x28179b0 "", dbpl=<value optimized out>, srcPixels=0x7fe7fbb78000
<Address 0x7fe7fbb78000 out of bounds>, 
    sbpl=456, targetRect=<value optimized out>, srcRect=<value optimized out>,
clip=@0x27d9e08, blender={<No data fields>}) at
painting/qblendfunctions.cpp:658
#6  0x00007fe7f84652d4 in QRasterPaintEngine::drawImage (this=0x2b033c0,
r=@0x7fff03cf2760, img=@0x7fff03cf2c10, sr=@0x7fff03cf2740) at
painting/qpaintengine_raster.cpp:2507
#7  0x00007fe7f8461593 in QRasterPaintEngine::drawImage (this=0x2b033c0,
p=@0x7fff03cf2b40, img=@0x7fff03cf2c10) at
painting/qpaintengine_raster.cpp:2437
#8  0x00007fe7f83f99ad in QPainter::drawImage (this=0x7fff03cf2b80,
p=@0x7fff03cf2b40, image=@0x7fff03cf2c10) at painting/qpainter.cpp:5461
#9  0x00007fe7f8387054 in QImage::transformed (this=0x7fff03cf2c10,
matrix=<value optimized out>, mode=Qt::FastTransformation) at
../../include/QtGui/../../src/gui/painting/qpainter.h:875
#10 0x00007fe7f83a28dd in QPixmapData::transformed (this=<value optimized out>,
matrix=@0x7fff03cf2cb0, mode=Qt::FastTransformation) at
image/qpixmapdata.cpp:149
#11 0x00007fe7f839f137 in QPixmap::transformed (this=0x26dd848,
transform=@0x7fff03cf2cb0, mode=Qt::FastTransformation) at
image/qpixmap.cpp:1485
#12 0x00007fe7f839f4cd in QPixmap::scaled (this=0x26dd848, s=<value optimized
out>, aspectMode=<value optimized out>, mode=Qt::FastTransformation) at
image/qpixmap.cpp:1399
#13 0x0000000000443669 in QPixmap::scaled (this=0x26dd848, w=<value optimized
out>, h=<value optimized out>, aspectMode=Qt::IgnoreAspectRatio,
mode=Qt::FastTransformation)
    at /usr/include/qt4/QtGui/qpixmap.h:115
#14 0x0000000000442bce in PixmapViewer::paintEvent (this=0x26dd820,
event=<value optimized out>) at
/var/tmp/portage/kde-base/dolphin-4.2.0/work/dolphin-4.2.0/apps/dolphin/src/pixmapviewer.cpp:108
#15 0x00007fe7f833b490 in QWidget::event (this=0x26dd820, event=0x7fff03cf34c0)
at kernel/qwidget.cpp:7649
#16 0x00007fe7f82e884d in QApplicationPrivate::notify_helper (this=0x254f7b0,
receiver=0x26dd820, e=0x7fff03cf34c0) at kernel/qapplication.cpp:4051
#17 0x00007fe7f82f12fe in QApplication::notify (this=0x7fff03cf4e90,
receiver=0x26dd820, e=0x7fff03cf34c0) at kernel/qapplication.cpp:4016
#18 0x00007fe7f9dbe2a1 in KApplication::notify (this=0x7fff03cf4e90,
receiver=0x26dd820, event=0x7fff03cf34c0)
    at
/var/tmp/portage/kde-base/kdelibs-4.2.0-r2/work/kdelibs-4.2.0/kdeui/kernel/kapplication.cpp:307
#19 0x00007fe7f8fe8963 in QCoreApplication::notifyInternal
(this=0x7fff03cf4e90, receiver=0x26dd820, event=0x7fff03cf34c0) at
kernel/qcoreapplication.cpp:590
#20 0x00007fe7f833e1f2 in QWidgetPrivate::drawWidget (this=0x27d2940,
pdev=0x282dbc0, rgn=@0x7fff03cf3710, offset=@0x7fff03cf3700, flags=<value
optimized out>, sharedPainter=0x0, 
    backingStore=0x253f560) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:211
#21 0x00007fe7f833ea62 in QWidgetPrivate::paintSiblingsRecursive
(this=0x2637630, pdev=0x282dbc0, siblings=@0x2637648, index=3,
rgn=@0x7fff03cf3a30, offset=@0x7fff03cf3a20, flags=4, 
    sharedPainter=0x0, backingStore=0x253f560) at kernel/qwidget.cpp:5151
#22 0x00007fe7f833dee9 in QWidgetPrivate::drawWidget (this=0x2637630,
pdev=0x282dbc0, rgn=@0x7fff03cf3a30, offset=@0x7fff03cf3a20, flags=4,
sharedPainter=0x0, backingStore=0x253f560)
    at kernel/qwidget.cpp:5090
#23 0x00007fe7f833ea62 in QWidgetPrivate::paintSiblingsRecursive
(this=0x263c050, pdev=0x282dbc0, siblings=@0x263c068, index=5,
rgn=@0x7fff03cf3d50, offset=@0x7fff03cf3d40, flags=4, 
    sharedPainter=0x0, backingStore=0x253f560) at kernel/qwidget.cpp:5151
#24 0x00007fe7f833dee9 in QWidgetPrivate::drawWidget (this=0x263c050,
pdev=0x282dbc0, rgn=@0x7fff03cf3d50, offset=@0x7fff03cf3d40, flags=4,
sharedPainter=0x0, backingStore=0x253f560)
    at kernel/qwidget.cpp:5090
#25 0x00007fe7f833ea62 in QWidgetPrivate::paintSiblingsRecursive
(this=0x25cc200, pdev=0x282dbc0, siblings=@0x25cc218, index=10,
rgn=@0x7fff03cf42e0, offset=@0x253f5a4, flags=4, sharedPainter=0x0, 
    backingStore=0x253f560) at kernel/qwidget.cpp:5151
#26 0x00007fe7f833dee9 in QWidgetPrivate::drawWidget (this=0x25cc200,
pdev=0x282dbc0, rgn=@0x7fff03cf42e0, offset=@0x253f5a4, flags=4,
sharedPainter=0x0, backingStore=0x253f560)
    at kernel/qwidget.cpp:5090
#27 0x00007fe7f84d89db in QWidgetBackingStore::sync (this=0x253f560) at
painting/qbackingstore.cpp:1267
#28 0x00007fe7f833070a in QWidgetPrivate::syncBackingStore (this=0x25cc200) at
kernel/qwidget.cpp:1598
#29 0x00007fe7f833b395 in QWidget::event (this=0x253e510, event=0x2932e20) at
kernel/qwidget.cpp:7789
#30 0x00007fe7f86aecbb in QMainWindow::event (this=0x253e510, event=0x2932e20)
at widgets/qmainwindow.cpp:1391
#31 0x00007fe7f9ea9310 in KXmlGuiWindow::event (this=0x0, ev=0x9131) at
/var/tmp/portage/kde-base/kdelibs-4.2.0-r2/work/kdelibs-4.2.0/kdeui/xmlgui/kxmlguiwindow.cpp:131
#32 0x00007fe7f82e884d in QApplicationPrivate::notify_helper (this=0x254f7b0,
receiver=0x253e510, e=0x2932e20) at kernel/qapplication.cpp:4051
#33 0x00007fe7f82f12fe in QApplication::notify (this=0x7fff03cf4e90,
receiver=0x253e510, e=0x2932e20) at kernel/qapplication.cpp:4016
#34 0x00007fe7f9dbe2a1 in KApplication::notify (this=0x7fff03cf4e90,
receiver=0x253e510, event=0x2932e20)
    at
/var/tmp/portage/kde-base/kdelibs-4.2.0-r2/work/kdelibs-4.2.0/kdeui/kernel/kapplication.cpp:307
#35 0x00007fe7f8fe8963 in QCoreApplication::notifyInternal
(this=0x7fff03cf4e90, receiver=0x253e510, event=0x2932e20) at
kernel/qcoreapplication.cpp:590
#36 0x00007fe7f8fec09d in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x252bef0) at kernel/qcoreapplication.h:208
#37 0x00007fe7f9010743 in postEventSourceDispatch (s=<value optimized out>) at
kernel/qcoreapplication.h:213
#38 0x00007fe7f4a4b212 in IA__g_main_context_dispatch (context=0x2552050) at
gmain.c:2144
#39 0x00007fe7f4a4e92d in g_main_context_iterate (context=0x2552050, block=1,
dispatch=1, self=<value optimized out>) at gmain.c:2778
#40 0x00007fe7f4a4eaeb in IA__g_main_context_iteration (context=0x2552050,
may_block=1) at gmain.c:2841
#41 0x00007fe7f901049f in QEventDispatcherGlib::processEvents (this=0x25436e0,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:318
#42 0x00007fe7f83755ff in QGuiEventDispatcherGlib::processEvents (this=0x0,
flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:197
#43 0x00007fe7f8fe7602 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 63917504}) at kernel/qeventloop.cpp:144
#44 0x00007fe7f8fe7795 in QEventLoop::exec (this=0x7fff03cf4e00, flags={i =
63917584}) at kernel/qeventloop.cpp:191
#45 0x00007fe7f8fec356 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:872
#46 0x00000000004401bd in main (argc=5, argv=0x7fff03cf5378) at
/var/tmp/portage/kde-base/dolphin-4.2.0/work/dolphin-4.2.0/apps/dolphin/src/main.cpp:94
Comment 1 Frank Reininghaus 2009-02-20 18:30:12 UTC
Thanks for the bug report! Could you describe what you did before the crash and which view mode (items/details/columns, previews enabled or not) you are using? 

Which Qt version exactly are you using (I suppose it's the RC of 4.5.0, as 4.5.0 isn't released yet)? I'm asking because the crash seems to be rather deep in Qt, so it might actually be a Qt bug.
Comment 2 BRULE Herman 2009-02-20 19:18:22 UTC
I don't remember, I have in default mode and view.
Comment 3 Dario Andres 2009-03-02 01:15:34 UTC
*** Bug 185758 has been marked as a duplicate of this bug. ***
Comment 4 Riccardo Gori 2009-03-22 22:40:47 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 nihui 2009-05-16 02:25:11 UTC
dolphin always crashes when preview enabled...
Qt 4.5.1 raster engine KDE 4.2.2
Comment 6 Rann 2009-05-20 18:51:31 UTC
ditto.

Backtrace:
Application: Dolphin (dolphin), signal SIGSEGV
0x00007faf97de38c0 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7faf9c483750 (LWP 6071)):
[KCrash Handler]
#5  0x00007faf98abe61b in qt_scale_image_32bit<Blend_RGB32_on_RGB32_NoAlpha> (destPixels=0x28af7a0 "", dbpl=<value optimized out>, srcPixels=0x7faf8bea1000 <Address 0x7faf8bea1000 out of bounds>, 
    sbpl=1056, target=<value optimized out>, srcRect=<value optimized out>, clip=@0x28208a8, blender={<No data fields>}) at painting/qblendfunctions.cpp:668
#6  0x00007faf98b5d714 in QRasterPaintEngine::drawImage (this=0x26f7ef0, r=@0x7fffa44be7d0, img=@0x7fffa44bec80, sr=@0x7fffa44be7b0) at painting/qpaintengine_raster.cpp:2527
#7  0x00007faf98b5ac64 in QRasterPaintEngine::drawImage (this=0x26f7ef0, p=@0x7fffa44bebb0, img=@0x7fffa44bec80) at painting/qpaintengine_raster.cpp:2456
#8  0x00007faf98af0ecd in QPainter::drawImage (this=0x7fffa44bebf0, p=@0x7fffa44bebb0, image=@0x7fffa44bec80) at painting/qpainter.cpp:5444
#9  0x00007faf98a7cb1c in QImage::transformed (this=0x7fffa44bec80, matrix=<value optimized out>, mode=Qt::FastTransformation) at ../../include/QtGui/../../src/gui/painting/qpainter.h:880
#10 0x00007faf98a9914d in QPixmapData::transformed (this=<value optimized out>, matrix=@0x7fffa44bed20, mode=Qt::FastTransformation) at image/qpixmapdata.cpp:154
#11 0x00007faf98a9594f in QPixmap::transformed (this=0x22111e8, transform=@0x7fffa44bed20, mode=Qt::FastTransformation) at image/qpixmap.cpp:1490
#12 0x00007faf98a95ced in QPixmap::scaled (this=0x22111e8, s=<value optimized out>, aspectMode=<value optimized out>, mode=Qt::FastTransformation) at image/qpixmap.cpp:1404
#13 0x00000000004451da in _start ()
Comment 7 Rann 2009-05-20 18:57:45 UTC
actually, this is slightly different.  Preview is off, crash occurs when hovering over a text file, but not a pdf or image.  I believe it's trying to preview in the information sidebar.
Comment 8 Tomáš Chvátal 2009-06-04 11:54:57 UTC
This bug is caused mostly by using raster renderer in Qt. Please try it without that and i bet it wont be happening anymore.
Comment 9 Detlev Casanova 2009-06-18 22:18:15 UTC
exactly, it deosn't crash anymore when raster is not activated.
So, it is a bug, what can I do to have previews with raster activated ?

just so you know, it also makes crash any application that shows a preview in the save/open dialog box.... Extremely annoying.
Comment 10 Frank Reininghaus 2009-06-18 22:54:19 UTC
(In reply to comment #9)
> So, it is a bug, what can I do to have previews with raster activated ?

Not much, probably. It looks like Qt's new raster renderer might still be buggy, so you should disable it until a more stable version is released (unless you want to track down the bug yourself).
Comment 11 Tomáš Chvátal 2009-06-22 14:13:52 UTC
One more thing on the note. It is not happening with yesterdays 4.3 live dolphin. So you can assume 4.3 branch is clear and fixed for this issue.

Probably close as fixed since no new stuff is going to happen in 4.2 branch?
Comment 12 Dario Andres 2009-06-30 23:10:25 UTC
Can anyone else check Tomáš Chvátal discovery? Thanks
Comment 13 Dario Andres 2009-08-19 22:01:23 UTC
No response and no more similar reports. Closing as WORKSFORME. Reopen if you experience this again on 4.3.0+/4.4
Thanks