[QGIS-trac] Re: [Quantum GIS] #2996: OSM causing crash

Quantum GIS qgis at qgis.org
Mon Feb 21 07:34:31 EST 2011


#2996: OSM causing crash
---------------------------------------------------------+------------------
   Reporter:  djq                                        |              Owner:  wonder       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.7.0
  Component:  Python plugins and bindings                |            Version:  1.6.0        
   Keywords:  osm, plugin                                |   Platform_version:  10.6         
   Platform:  OS X                                       |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------

Comment(by wonder):

 There is a hack that causes this crash on OSX. I do not have access to a
 Mac, so I will just suggest a fix and hope that someone tries it out and
 confirms if it works:

 In src/providers/osm/osmprovider.cpp, in method
 {{{QgsOSMDataProvider::changeAttributeValues}}}  there is the offending
 line

 {{{
 QgsVectorLayer* layer = ( QgsVectorLayer* ) x.value( 0 ).toUInt();
 }}}

 Here the conversion {{{toUInt()}}} should be probably changed to
 {{{toULong()}}} or {{{toULongLong()}}}.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2996#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