Opened 14 years ago

Closed 14 years ago

#2173 closed bug (duplicate)

Crash in python console when renderer changes

Reported by: springmeyer Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.4.0
Component: Symbology Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

To replicate:

1) Add layer 2) open python console

l = qgis.utils.iface.mapCanvas().layer(0)
print l.isUsingRendererV2()
ren = l.rendererV2()

3) edit symbology of layer with console open 4) type 'print ren' in console again... crash

The object no longer exists and should be returned as None rather than crashing QGIS.

Change History (1)

comment:1 by jef, 14 years ago

Resolution: duplicate
Status: newclosed

duplicate of #777 - the problem are python references to destroyed objects.

Note: See TracTickets for help on using tickets.