[QGIS-trac] [Quantum GIS] #1452: crash loading big shapefile

Quantum GIS qgis at qgis.org
Wed Dec 10 14:30:29 EST 2008


#1452: crash loading big shapefile
---------------------------------------------------------+------------------
   Reporter:  msieczka                                   |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.0.0
  Component:  OGR Layer support                          |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  Debian                                     |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 QGIS crashes loading a 382 MB shapefile, 180514 polygons:

 {{{
 $ ogrinfo -al -so neg_patch_poly_bnd_area_splt

 INFO: Open of `robota/fucha/2008_javier/neg_patch_poly_bnd_area_splt'
       using driver `ESRI Shapefile' successful.

 Layer name: neg_patch_poly_bnd_area_splt
 Geometry: Polygon
 Feature Count: 180514
 Extent: (-180.000000, -90.000000) - (180.000000, 90.000000)
 Layer SRS WKT:
 GEOGCS["GCS_WGS_1984",
     DATUM["WGS_1984",
         SPHEROID["WGS_1984",6378137,298.257223563]],
     PRIMEM["Greenwich",0],
     UNIT["Degree",0.017453292519943295]]
 cat: Real (11.0)
 }}}

 Backtrace:

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x7f6abcda2710 (LWP 21711)]
 0x00007f6abb8f80fc in ?? () from /usr/lib/libQtGui.so.4
 (gdb) bt
 #0  0x00007f6abb8f80fc in ?? () from /usr/lib/libQtGui.so.4
 #1  0x00007f6abb8c1295 in ?? () from /usr/lib/libQtGui.so.4
 #2  0x00007f6abb8bde4f in QStroker::processCurrentSubpath ()
    from /usr/lib/libQtGui.so.4
 #3  0x00007f6abb8beee0 in QStrokerOps::strokePath ()
    from /usr/lib/libQtGui.so.4
 #4  0x00007f6abb8f758a in ?? () from /usr/lib/libQtGui.so.4
 #5  0x00007f6abc6d38ef in QgsVectorLayer::drawPolygon (this=0x2b2b980,
     feature=0x7f6a69433010 "\001\003", p=0x7fffc4edde70, mtp=0x1fa2c78,
     ct=0x0, drawingToEditingCanvas=true)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/qgsvectorlayer.cpp:649
 #6  0x00007f6abc6d4908 in QgsVectorLayer::drawFeature (this=0x2b2b980,
     p=0x7fffc4edde70, fet=@0x7fffc4edd8d0,
 theMapToPixelTransform=0x1fa2c78,
     ct=0x0, marker=0x7fffc4edd920, widthScale=3.8582677165354333,
     rasterScaleFactor=1, drawingToEditingCanvas=true)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/qgsvectorlayer.cpp:3389
 #7  0x00007f6abc6d5043 in QgsVectorLayer::draw (this=0x2b2b980,
     rendererContext=@0x1fa2c38)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/qgsvectorlayer.cpp:767
 #8  0x00007f6abc685776 in QgsMapRenderer::render (this=0x1fa2ba0,
     painter=0x7fffc4edde70)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/qgsmaprenderer.cpp:340
 #9  0x00007f6abca85049 in QgsMapCanvasMap::render (this=0x1fc0630)
     at /home/shoofi/src/straight/qgis-trunk/src/gui/qgsmapcanvasmap.cpp:84
 #10 0x00007f6abca7fc72 in QgsMapCanvas::refresh (this=0x1f99700)
     at /home/shoofi/src/straight/qgis-trunk/src/gui/qgsmapcanvas.cpp:365
 #11 0x00000000004c517e in QgisApp::addVectorLayers (this=0x1eee610,
     theLayerQStringList=@0x7fffc4ede1a0, enc=@0x7fffc4ede190)
     at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:2171
 #12 0x00000000004c6c64 in QgisApp::addVectorLayer (this=0x1eee610)
     at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:2109
 #13 0x000000000069b636 in QgisApp::qt_metacall (this=0x1eee610,
     _c=QMetaObject::InvokeMetaMethod, _id=86, _a=0x7fffc4ede3b0)
     at /home/shoofi/src/straight/qgis-
 trunk/build/src/app/moc_qgisapp.cxx:328
 #14 0x00007f6abc27c6d4 in QMetaObject::activate () from
 /usr/lib/libQtCore.so.4
 #15 0x00007f6abb786d77 in QAction::triggered () from
 /usr/lib/libQtGui.so.4
 #16 0x00007f6abb787540 in QAction::activate () from /usr/lib/libQtGui.so.4
 #17 0x00007f6abba97cca in ?? () from /usr/lib/libQtGui.so.4
 #18 0x00007f6abba97f65 in QAbstractButton::mouseReleaseEvent ()
    from /usr/lib/libQtGui.so.4
 #19 0x00007f6abbb5f74a in QToolButton::mouseReleaseEvent ()
    from /usr/lib/libQtGui.so.4
 #20 0x00007f6abb7df139 in QWidget::event () from /usr/lib/libQtGui.so.4
 #21 0x00007f6abb78ca5d in QApplicationPrivate::notify_helper ()
    from /usr/lib/libQtGui.so.4
 #22 0x00007f6abb79504a in QApplication::notify () from
 /usr/lib/libQtGui.so.4
 #23 0x00007f6abc638ebe in QgsApplication::notify (this=0x7fffc4edfc20,
     receiver=0x1f6f710, event=0x7fffc4eded40)
     at /home/shoofi/src/straight/qgis-trunk/src/core/qgsapplication.cpp:78
 #24 0x00007f6abc268381 in QCoreApplication::notifyInternal ()
    from /usr/lib/libQtCore.so.4
 #25 0x00007f6abb7943e8 in QApplicationPrivate::sendMouseEvent ()
    from /usr/lib/libQtGui.so.4
 #26 0x00007f6abb7f8909 in ?? () from /usr/lib/libQtGui.so.4
 #27 0x00007f6abb7f77ff in QApplication::x11ProcessEvent ()
    from /usr/lib/libQtGui.so.4
 #28 0x00007f6abb81ec84 in ?? () from /usr/lib/libQtGui.so.4
 #29 0x00007f6ab80c778b in g_main_context_dispatch ()
    from /usr/lib/libglib-2.0.so.0
 #30 0x00007f6ab80caf5d in ?? () from /usr/lib/libglib-2.0.so.0
 #31 0x00007f6ab80cb11b in g_main_context_iteration ()
    from /usr/lib/libglib-2.0.so.0
 #32 0x00007f6abc29070f in QEventDispatcherGlib::processEvents ()
    from /usr/lib/libQtCore.so.4
 #33 0x00007f6abb81e44f in ?? () from /usr/lib/libQtGui.so.4
 #34 0x00007f6abc266ca2 in QEventLoop::processEvents ()
    from /usr/lib/libQtCore.so.4
 #35 0x00007f6abc266e2d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
 #36 0x00007f6abc2692dd in QCoreApplication::exec ()
    from /usr/lib/libQtCore.so.4
 #37 0x00000000004b5639 in main (argc=1, argv=0x7fffc4ee0318)
     at /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:683
 }}}

 Debian testing amd64, QGIS SVN trunk r9770, QT 4.4.3, GDAL 1.6 SVN trunk
 r15902 (05.12.2008).

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1452>
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