[Okular-devel] [Bug 243434] crash when painting (PagePainter::scalePixmapOnImage with no backbuffer)

Achim Schaefer achim_schaefer at gmx.de
Wed Jan 26 22:34:34 CET 2011


https://bugs.kde.org/show_bug.cgi?id=243434





--- Comment #38 from Achim Schaefer <achim_schaefer gmx de>  2011-01-26 22:34:27 ---
Now after upgrade:
okular --version
Qt: 4.7.1
KDE Development Platform: 4.5.3 (KDE 4.5.3)
Okular: 0.11.1

And the result:
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#7  0xb2e6d0ea in PagePainter::scalePixmapOnImage (dest=..., src=0x998f2b0,
scaledWidth=991, scaledHeight=1401, cropRect=...,
format=QImage::Format_ARGB32_Premultiplied) at
../../okular/ui/pagepainter.cpp:755
#8  0xb2e6d758 in PagePainter::paintCroppedPageOnPainter
(destPainter=0xbff7f82c, page=0x99d1e80, pixID=3, flags=<value optimized out>,
scaledWidth=991, scaledHeight=1401, limits=..., crop=...) at
../../okular/ui/pagepainter.cpp:229
#9  0xb2e806ff in PageView::drawDocumentOnPainter (this=0x98ee7d0,
contentsRect=..., p=0xbff7f82c) at ../../okular/ui/pageview.cpp:2446
#10 0xb2e81015 in PageView::paintEvent (this=0x98ee7d0, pe=0xbff7ff34) at
../../okular/ui/pageview.cpp:1212
#11 0xb68e1cc6 in QWidget::event (this=0x98ee7d0, event=0xbff7ff34) at
kernel/qwidget.cpp:8346
#12 0xb6d02f53 in QFrame::event (this=0x98ee7d0, e=0xbff7ff34) at
widgets/qframe.cpp:557
#13 0xb6d9f7b2 in QAbstractScrollArea::viewportEvent (this=0xaf7fe, e=0x8d) at
widgets/qabstractscrollarea.cpp:1043
#14 0xb2e84110 in PageView::viewportEvent (this=0x98ee7d0, e=0xbff7ff34) at
../../okular/ui/pageview.cpp:2292
#15 0xb6da21f5 in viewportEvent (this=0x98f0a28, o=0x98e6b60, e=0xbff7ff34) at
widgets/qabstractscrollarea_p.h:100
#16 QAbstractScrollAreaFilter::eventFilter (this=0x98f0a28, o=0x98e6b60,
e=0xbff7ff34) at widgets/qabstractscrollarea_p.h:116
#17 0xb635deda in QCoreApplicationPrivate::sendThroughObjectEventFilters
(this=0x972fb70, receiver=0x98e6b60, event=0xbff7ff34) at
kernel/qcoreapplication.cpp:847
#18 0xb6883c49 in QApplicationPrivate::notify_helper (this=0x972fb70,
receiver=0x98e6b60, e=0xbff7ff34) at kernel/qapplication.cpp:4441
#19 0xb6889769 in QApplication::notify (this=0xbff82570, receiver=0x98e6b60,
e=0xbff7ff34) at kernel/qapplication.cpp:4410
#20 0xb7403caa in KApplication::notify (this=0xbff82570, receiver=0x98e6b60,
event=0xbff7ff34) at ../../kdeui/kernel/kapplication.cpp:310
#21 0xb635e77b in QCoreApplication::notifyInternal (this=0xbff82570,
receiver=0x98e6b60, event=0xbff7ff34) at kernel/qcoreapplication.cpp:732
#22 0xb68e8ef6 in sendSpontaneousEvent (this=0x98e7f30, pdev=0x99354fc,
rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#23 QWidgetPrivate::drawWidget (this=0x98e7f30, pdev=0x99354fc, rgn=...,
offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at kernel/qwidget.cpp:5433
#24 0xb68e9d35 in QWidgetPrivate::paintSiblingsRecursive (this=0x98e6938,
pdev=0x99354fc, siblings=..., index=1, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5640
#25 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x98e6938,
pdev=0x99354fc, siblings=..., index=51, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#26 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x98e6938,
pdev=0x99354fc, siblings=..., index=52, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#27 0xb68e8c45 in QWidgetPrivate::drawWidget (this=0x98e6938, pdev=0x99354fc,
rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at kernel/qwidget.cpp:5486
#28 0xb68e9d35 in QWidgetPrivate::paintSiblingsRecursive (this=0x98d5da0,
pdev=0x99354fc, siblings=..., index=4, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5640
#29 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x98d5da0,
pdev=0x99354fc, siblings=..., index=5, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#30 0xb68e8c45 in QWidgetPrivate::drawWidget (this=0x98d5da0, pdev=0x99354fc,
rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at kernel/qwidget.cpp:5486
#31 0xb68e9d35 in QWidgetPrivate::paintSiblingsRecursive (this=0x981ce80,
pdev=0x99354fc, siblings=..., index=0, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5640
#32 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x981ce80,
pdev=0x99354fc, siblings=..., index=2, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#33 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x981ce80,
pdev=0x99354fc, siblings=..., index=3, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#34 0xb68e8c45 in QWidgetPrivate::drawWidget (this=0x981ce80, pdev=0x99354fc,
rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at kernel/qwidget.cpp:5486
#35 0xb68e9d35 in QWidgetPrivate::paintSiblingsRecursive (this=0x9810880,
pdev=0x99354fc, siblings=..., index=4, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5640
#36 0xb68e8c45 in QWidgetPrivate::drawWidget (this=0x9810880, pdev=0x99354fc,
rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at kernel/qwidget.cpp:5486
#37 0xb68e9d35 in QWidgetPrivate::paintSiblingsRecursive (this=0x97841c0,
pdev=0x99354fc, siblings=..., index=9, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5640
#38 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x97841c0,
pdev=0x99354fc, siblings=..., index=13, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#39 0xb68e9b6e in QWidgetPrivate::paintSiblingsRecursive (this=0x97841c0,
pdev=0x99354fc, siblings=..., index=22, rgn=..., offset=..., flags=4,
sharedPainter=0x0, backingStore=0x9937ab8) at kernel/qwidget.cpp:5627
#40 0xb68e8c45 in QWidgetPrivate::drawWidget (this=0x97841c0, pdev=0x99354fc,
rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0,
backingStore=0x9937ab8) at kernel/qwidget.cpp:5486
#41 0xb6ade364 in QWidgetBackingStore::sync (this=0x9937ab8) at
painting/qbackingstore.cpp:1333
#42 0xb68db283 in QWidgetPrivate::syncBackingStore (this=0x97841c0) at
kernel/qwidget.cpp:1816
#43 0xb68e245e in QWidget::event (this=0x97ffcf8, event=0x996b168) at
kernel/qwidget.cpp:8493
#44 0xb6d22097 in QMainWindow::event (this=0x97ffcf8, event=0x996b168) at
widgets/qmainwindow.cpp:1478
#45 0xb74f5ee4 in KMainWindow::event (this=0x97ffcf8, ev=0x996b168) at
../../kdeui/widgets/kmainwindow.cpp:1100
#46 0xb753deef in KXmlGuiWindow::event (this=0x97ffcf8, ev=0x996b168) at
../../kdeui/xmlgui/kxmlguiwindow.cpp:132
#47 0xb6883c6c in QApplicationPrivate::notify_helper (this=0x972fb70,
receiver=0x97ffcf8, e=0x996b168) at kernel/qapplication.cpp:4445
#48 0xb6889769 in QApplication::notify (this=0xbff82570, receiver=0x97ffcf8,
e=0x996b168) at kernel/qapplication.cpp:4410
#49 0xb7403caa in KApplication::notify (this=0xbff82570, receiver=0x97ffcf8,
event=0x996b168) at ../../kdeui/kernel/kapplication.cpp:310
#50 0xb635e77b in QCoreApplication::notifyInternal (this=0xbff82570,
receiver=0x97ffcf8, event=0x996b168) at kernel/qcoreapplication.cpp:732
#51 0xb636197c in sendEvent (receiver=0x0, event_type=0, data=0x971ae98) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#52 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x971ae98) at kernel/qcoreapplication.cpp:1373
#53 0xb6361add in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1266
#54 0xb638d294 in sendPostedEvents (s=0x9731f10) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#55 postEventSourceDispatch (s=0x9731f10) at
kernel/qeventdispatcher_glib.cpp:277
#56 0xb5942305 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#57 0xb5945fe8 in ?? () from /lib/libglib-2.0.so.0
#58 0xb59461c8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#59 0xb638cd85 in QEventDispatcherGlib::processEvents (this=0x971ab58,
flags=...) at kernel/qeventdispatcher_glib.cpp:415
#60 0xb6945305 in QGuiEventDispatcherGlib::processEvents (this=0x971ab58,
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#61 0xb635d229 in QEventLoop::processEvents (this=0xbff82474, flags=) at
kernel/qeventloop.cpp:149
#62 0xb635d6aa in QEventLoop::exec (this=0xbff82474, flags=...) at
kernel/qeventloop.cpp:201
#63 0xb6361b9f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#64 0xb6882c27 in QApplication::exec () at kernel/qapplication.cpp:3719
#65 0x0804eee9 in main (argc=2, argv=0xbff82764) at
../../../okular/shell/main.cpp:82

And again it still works when using valgrind (but it is unusable slow:-)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list