Opened 14 years ago

Closed 14 years ago

#2538 closed bug (invalid)

QGIS 1.0.2 (Windows binary) crashes on signal from QgsMapToolEmitPoint

Reported by: nodereus Owned by:
Priority: critical: causes crash or data corruption Milestone: Version 1.6.0
Component: Python plugins and bindings Version: 1.0.2
Keywords: QgsMapToolEmitPoint segfault Cc:
Must Fix for Release: No Platform: Windows
Platform Version: Windows - XP Awaiting user input: no

Description

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.

Change History (6)

comment:1 by nodereus, 14 years ago

For the record -- those links in the ticket were generated by the tracker and do not go anywhere. I just did not expect it to treat camelcase as wiki links.

comment:2 by jef, 14 years ago

Owner: borysiasty removed

see also r11540.

comment:3 by pcav, 14 years ago

Milestone: Version 1.0.3

comment:4 by pcav, 14 years ago

Milestone: Version 1.6.0

in reply to:  4 comment:5 by jef, 14 years ago

Replying to pcav: Does trunk have this problem at all?

comment:6 by pcav, 14 years ago

Resolution: invalid
Status: newclosed

Closing it, pending any user feedback. 1.0 is no longer supported anyway. Please reopen if necessary.

Note: See TracTickets for help on using tickets.