[QGIS-trac] [Quantum GIS] #1153: crash in map composer

Quantum GIS qgis at qgis.org
Sun Jul 13 06:51:10 EDT 2008


#1153: crash in map composer
---------------------------------------------------------+------------------
   Reporter:  msieczka                                   |              Owner:  nobody        
       Type:  bug                                        |             Status:  new           
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 0.11.0
  Component:  Printing                                   |            Version:  HEAD          
   Keywords:                                             |   Platform_version:                
   Platform:  Debian                                     |           Must_fix:  Yes           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 QGIS crashes in map composer.

 1. open the attached project (you will need to modify the path to the
 shapefile used; it's attached too)

 2. press "Print" button

 3. crash:

 {{{
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/providers/ogr/qgsogrprovider.cpp: 335: (getNextFeature) Feature
 is null
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprender.cpp:
 366: (render) Done rendering map layers
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsvectorlayer.cpp:
 295: (drawLabels) Starting draw of labels
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaprender.cpp:
 422: (render) Rendering done in (seconds): 0.057
 scale = 1

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x2b0b450aec80 (LWP 17362)]
 0x00002b0b39a0d423 in QPainter::isActive (this=0x10f3af0) at
 painting/qpainter.cpp:1426
 1426    painting/qpainter.cpp: No such file or directory.
         in painting/qpainter.cpp
 (gdb) bt
 #0  0x00002b0b39a0d423 in QPainter::isActive (this=0x10f3af0) at
 painting/qpainter.cpp:1426
 #1  0x00002b0b39a0fe89 in QPainter::clipPath (this=0x10f3af0) at
 painting/qpainter.cpp:2254
 #2  0x00002b0b39aac5fb in QX11PaintEngine::updateState (this=0x11327e0,
 state=@0x10e7070) at painting/qpaintengine_x11.cpp:990
 #3  0x00002b0b39a12c5a in QPainterPrivate::updateStateImpl (this=0xfc11b0,
 newState=0x10e7070) at painting/qpainter.cpp:884
 #4  0x00002b0b39a12d3b in QPainterPrivate::updateState (this=0xfc11b0,
 newState=0x10e7070) at painting/qpainter.cpp:912
 #5  0x00002b0b39a1316c in QPainter::restore (this=<value optimized out>)
 at painting/qpainter.cpp:1546
 #6  0x00002b0b39e494d8 in QGraphicsScene::drawItems (this=<value optimized
 out>, painter=0x7fff719aba30, numItems=4, items=0x10f3a20, options=<value
 optimized out>,
     widget=0xa080a0) at graphicsview/qgraphicsscene.cpp:4029
 #7  0x00002b0b39e684db in QGraphicsView::paintEvent (this=0xa08260,
 event=<value optimized out>) at graphicsview/qgraphicsview.cpp:3058
 #8  0x00002b0b3996d198 in QWidget::event (this=0x10f3af0,
 event=0x7fff719ac130) at kernel/qwidget.cpp:7065
 #9  0x00002b0b39e62c5b in QGraphicsView::viewportEvent (this=0xa08260,
 event=0x7fff719ac130) at graphicsview/qgraphicsview.cpp:2267
 #10 0x00002b0b39469768 in
 QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value
 optimized out>, receiver=0xa080a0, event=0x7fff719ac130)
     at kernel/qcoreapplication.cpp:694
 #11 0x00002b0b3991ae2c in QApplicationPrivate::notify_helper
 (this=0x96eda0, receiver=0xa080a0, e=0x7fff719ac130) at
 kernel/qapplication.cpp:3768
 #12 0x00002b0b39922b2a in QApplication::notify (this=0x7fff719ae8f0,
 receiver=0xa080a0, e=0x7fff719ac130) at kernel/qapplication.cpp:3739
 #13 0x00002b0b3946a491 in QCoreApplication::notifyInternal
 (this=0x7fff719ae8f0, receiver=0xa080a0, event=0x7fff719ac130) at
 kernel/qcoreapplication.cpp:587
 #14 0x00002b0b3996bbcf in QWidgetPrivate::drawWidget (this=0xa649c0,
 pdev=0xa2f2c8, rgn=@0x7fff719ac390, offset=@0x7fff719ac380, flags=4,
 sharedPainter=0x10f3af0)
     at kernel/qwidget.cpp:4491
 #15 0x00002b0b3996c2b5 in QWidgetPrivate::paintSiblingsRecursive
 (this=0xabf8d0, pdev=0xa2f2c8, siblings=@0x7fff719ac560, index=0,
 rgn=@0x7fff719ac6d0, offset=@0x7fff719ac6c0,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4589
 #16 0x00002b0b3996b888 in QWidgetPrivate::drawWidget (this=0xabf8d0,
 pdev=0xa2f2c8, rgn=@0x7fff719ac6d0, offset=@0x7fff719ac6c0, flags=4,
 sharedPainter=0x10f3af0)
     at kernel/qwidget.cpp:4532
 #17 0x00002b0b3996c2b5 in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa35750, pdev=0xa2f2c8, siblings=@0x7fff719ac8a0, index=0,
 rgn=@0x7fff719aca10, offset=@0x7fff719aca00,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4589
 #18 0x00002b0b3996b888 in QWidgetPrivate::drawWidget (this=0xa35750,
 pdev=0xa2f2c8, rgn=@0x7fff719aca10, offset=@0x7fff719aca00, flags=4,
 sharedPainter=0x10f3af0)
     at kernel/qwidget.cpp:4532
 #19 0x00002b0b3996c2b5 in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa32420, pdev=0xa2f2c8, siblings=@0x7fff719acda0, index=0,
 rgn=@0x7fff719acaf0, offset=@0x7fff719acf00,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4589
 #20 0x00002b0b3996c1da in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa32420, pdev=0xa2f2c8, siblings=@0x7fff719acda0, index=2,
 rgn=@0x7fff719acbd0, offset=@0x7fff719acf00,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4579
 #21 0x00002b0b3996c1da in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa32420, pdev=0xa2f2c8, siblings=@0x7fff719acda0, index=3,
 rgn=@0x7fff719acf10, offset=@0x7fff719acf00,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4579
 #22 0x00002b0b3996b888 in QWidgetPrivate::drawWidget (this=0xa32420,
 pdev=0xa2f2c8, rgn=@0x7fff719acf10, offset=@0x7fff719acf00, flags=4,
 sharedPainter=0x10f3af0)
     at kernel/qwidget.cpp:4532
 #23 0x00002b0b3996c2b5 in QWidgetPrivate::paintSiblingsRecursive
 (this=0xb15660, pdev=0xa2f2c8, siblings=@0x7fff719ad2a0, index=1,
 rgn=@0x7fff719acff0, offset=@0x7fff719ad400,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4589
 #24 0x00002b0b3996c1da in QWidgetPrivate::paintSiblingsRecursive
 (this=0xb15660, pdev=0xa2f2c8, siblings=@0x7fff719ad2a0, index=2,
 rgn=@0x7fff719ad0d0, offset=@0x7fff719ad400,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4579
 #25 0x00002b0b3996c1da in QWidgetPrivate::paintSiblingsRecursive
 (this=0xb15660, pdev=0xa2f2c8, siblings=@0x7fff719ad2a0, index=3,
 rgn=@0x7fff719ad410, offset=@0x7fff719ad400,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4579
 #26 0x00002b0b3996b888 in QWidgetPrivate::drawWidget (this=0xb15660,
 pdev=0xa2f2c8, rgn=@0x7fff719ad410, offset=@0x7fff719ad400, flags=4,
 sharedPainter=0x10f3af0)
     at kernel/qwidget.cpp:4532
 #27 0x00002b0b3996c2b5 in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa43b10, pdev=0xa2f2c8, siblings=@0x7fff719ad7a0, index=17,
 rgn=@0x7fff719ad4f0, offset=@0xa9c0a8,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4589
 #28 0x00002b0b3996c1da in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa43b10, pdev=0xa2f2c8, siblings=@0x7fff719ad7a0, index=18,
 rgn=@0x7fff719ad5d0, offset=@0xa9c0a8,
 ---Type <return> to continue, or q <return> to quit---
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4579
 #29 0x00002b0b3996c1da in QWidgetPrivate::paintSiblingsRecursive
 (this=0xa43b10, pdev=0xa2f2c8, siblings=@0x7fff719ad7a0, index=19,
 rgn=@0x7fff719ad990, offset=@0xa9c0a8,
     flags=4, sharedPainter=0x10f3af0) at kernel/qwidget.cpp:4579
 #30 0x00002b0b3996b888 in QWidgetPrivate::drawWidget (this=0xa43b10,
 pdev=0xa2f2c8, rgn=@0x7fff719ad990, offset=@0xa9c0a8, flags=4,
 sharedPainter=0x10f3af0)
     at kernel/qwidget.cpp:4532
 #31 0x00002b0b39abf8c9 in QWidgetBackingStore::cleanRegion (this=0xa9c090,
 rgn=<value optimized out>, widget=0xa5f500, recursiveCopyToScreen=true)
     at painting/qbackingstore.cpp:1035
 #32 0x00002b0b39ac0529 in qt_syncBackingStore (rgn=<value optimized out>,
 widget=0xa5f500) at painting/qbackingstore.cpp:245
 #33 0x00002b0b399781e2 in QETWidget::translatePaintEvent (this=0xa5f500,
 event=<value optimized out>) at kernel/qapplication_x11.cpp:4720
 #34 0x00002b0b399850e5 in QApplication::x11ProcessEvent
 (this=0x7fff719ae8f0, event=0x7fff719ae2e0) at
 kernel/qapplication_x11.cpp:3155
 #35 0x00002b0b399ac9cc in x11EventSourceDispatch (s=0x97c070, callback=0,
 user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
 #36 0x00002b0b3d95d0f2 in g_main_context_dispatch () from
 /usr/lib/libglib-2.0.so.0
 #37 0x00002b0b3d960396 in ?? () from /usr/lib/libglib-2.0.so.0
 #38 0x00002b0b3d96082f in g_main_context_iteration () from
 /usr/lib/libglib-2.0.so.0
 #39 0x00002b0b394928bf in QEventDispatcherGlib::processEvents
 (this=0x978a20, flags=<value optimized out>) at
 kernel/qeventdispatcher_glib.cpp:325
 #40 0x00002b0b399ac16f in QGuiEventDispatcherGlib::processEvents
 (this=0x10f3af0, flags=<value optimized out>) at
 kernel/qguieventdispatcher_glib.cpp:204
 #41 0x00002b0b39468da2 in QEventLoop::processEvents (this=<value optimized
 out>, flags={i = 1905976752}) at kernel/qeventloop.cpp:149
 #42 0x00002b0b39468f2d in QEventLoop::exec (this=0x7fff719ae5f0, flags={i
 = 1905976832}) at kernel/qeventloop.cpp:200
 #43 0x00002b0b3946b3fd in QCoreApplication::exec () at
 kernel/qcoreapplication.cpp:845
 #44 0x00000000004bc774 in main (argc=1, argv=0x7fff719aeeb8) at
 /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:685
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1153>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list