Page MenuHome

Crash when accessing a 'GizmoGroup' attribute on '__del__'
Confirmed, NormalPublicBUG


System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits

Blender Version
Broken: version: 2.93.0 Alpha, commit date: 11-feb, hash: rB3fea77ceedcda
Worked: Never?

Short description of error
Crash (at least on Debug build) when accessing an attribute of a GizmoGroup in __del__ (as the RNA_struct_free function freed the "StructRNA" of the GizmoGroup before it is accessed).

Exact steps for others to reproduce the error

  • Open attached file or add these lines to the MyLightWidgetGroup object of the template:
def __del__(self):
    if not hasattr(self, "energy_gizmo"):
  • Run the script 2 times to unregister the first GizmoGroup

(You may need to run an address sanitizer).

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Fri, Feb 12, 4:02 AM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".