[QGIS-trac] [Quantum GIS] #2538: QGIS 1.0.2 (Windows binary) crashes on signal from QgsMapToolEmitPoint

Quantum GIS qgis at qgis.org
Wed Mar 10 06:27:28 EST 2010


#2538: QGIS 1.0.2 (Windows binary) crashes on signal from QgsMapToolEmitPoint
---------------------------------------------------------+------------------
   Reporter:  nodereus                                   |              Owner:  borysiasty  
       Type:  bug                                        |             Status:  new         
   Priority:  critical: causes crash or data corruption  |          Milestone:              
  Component:  Python plugins and bindings                |            Version:  1.0.2       
   Keywords:  QgsMapToolEmitPoint segfault               |   Platform_version:  Windows - XP
   Platform:  Windows                                    |           Must_fix:  No          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Windows binary of stable QGIS 1.0.2 crashes when a python plugin has a
 QgsMapToolEmitPoint based class emit a SIGNAL('canvasClicked(QgsPoint& ,
 Qt::MouseButton )').

 Note that I had the exact same problem when I compiled 1.0.2 from source
 on Ubuntu 9.10, appearantly due to incompatibility with the versions of
 Qt4 and SIP that ship with that distro. In that case, I could 'fix' it
 there by backporting the qgsmaptoolemitpoint code from 1.3 (where the
 signal's signature is changed to use a 'const QgsPoint&'). It seems likely
 that the problems are related.

 To reproduce:
 Connect the signal 'canvasClicked(QgsPoint& , Qt::MouseButton )' from a
 QgsMapToolEmitPoint instance to any slot, and click on the canvas with
 that maptool active.

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