Ticket #2173 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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:
Platform Version: Platform: Debian
Must Fix for Release: No 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

Changed 3 years ago by jef

  • status changed from new to closed
  • resolution set to duplicate

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

Note: See TracTickets for help on using tickets.