[QGIS-trac] Re: [Quantum GIS] #2837: (linux) merge shapefiles crashes qgis

Quantum GIS qgis at qgis.org
Sun Jun 27 12:47:14 EDT 2010


#2837: (linux) merge shapefiles crashes qgis
---------------------------------------------------------+------------------
   Reporter:  lutra                                      |              Owner:  cfarmer      
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.5.0
  Component:  Python plugins and bindings                |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  Debian                                     |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
Changes (by alexbruy):

 * cc: alexbruy (added)


Comment:

 Confirmed QGIS crash on Slackware linux. Under Windows XP merging the
 following files works fine.
 But on Linux QGIS craches too when I try to open shapefile pen_01.shp.
 Here is debug output before crash

 {{{
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 186:
 (adjustExtentToSize) -24040.6198250000015832,40992.8055770874052541 :
 -22359.4931749999996100,41256.3346206665009959
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsscalecalculator.cpp:
 139: (calculateGeographicDistance) Distance across map extent (m):
 1.13268e+07
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsscalecalculator.cpp:
 90: (calculate) Using conversionFactor of 39.3701
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 197:
 (adjustExtentToSize) Scale (assuming meters as map units) = 1:8.82862e+07
 Debug: /home/alex/devel/cpp/qgis/trunk/src/gui/qgsmapoverviewcanvas.cpp:
 162: (drawExtentRect) panning: extent to widget: [-2147483648,-2147483648]
 [1x1]
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 212:
 (render) ========== Rendering ==========
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 236:
 (render) Starting to render layer stack.
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 323:
 (render) Rendering at layer item pen_0120100627193701245
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 331:
 (render) If there is a QPaintEngine error here, it is caused by an emit
 call
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 342:
 (render) Rendering layer pen_01
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 343:
 (render)   Layer minscale 0
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 344:
 (render)   Layer maxscale 1e+08
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 345:
 (render)   Scale dep. visibility enabled? 0
 Debug: /home/alex/devel/cpp/qgis/trunk/src/core/qgsmaprenderer.cpp: 346:
 (render)   Input extent: -24000.5930000000007567,40999.0800781250000000 :
 -22399.5200000000004366,41250.0601196289062500
 Debug:
 /home/alex/devel/cpp/qgis/trunk/src/providers/ogr/qgsogrprovider.cpp: 586:
 (select) Setting spatial filter using POLYGON((-24040.61982500
 40341.74243660, -24040.61982500 41907.39776115, -22359.49317500
 41907.39776115, -22359.49317500 40341.74243660, -24040.61982500
 40341.74243660))
 ERROR 1: Corrupted .shp file : shape 3 : panPartStart[4] = 10,
 panPartStart[3] = 229
 Segmentation fault
 }}}

 Running ogrinfo on this shape produces

 {{{
 bash-3.1$ ogrinfo ~/samples/vector/cart_2/pen_01.shp
 INFO: Open of `/home/alex/samples/vector/cart_2/pen_01.shp'
       using driver `ESRI Shapefile' successful.
 1: pen_01 (Line String)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2837#comment:6>
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