EnumProperty with ENUM_FLAG and item callback crashes on click #38489
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#38489
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 7, 64bit
Blender Version
Broken: 6852184 (2014-02-03, master modified)
Worked: 2.69 official (at least no crash)
Short description of error
A dynamically populated EnumProperty (items <- func) with ENUM_FLAG for multi-select crashes on click. No crash in 2.69 but:
Memoryblock free: pointer not in memlist
Exact steps for others to reproduce the error
Run attached script in 2.69 official, and see Object tab panel at the bottom. Select an object type and see how the second dropdown reacts (may clear label on change, although the property value doesn't change??)
Run it with a recent build, click on it and see it crashing.
The second property is not related to the crash. No crash with static enum items.
dynamic_enum_multiselect_enum_flag.py
Changed status to: 'Open'
Added subscriber: @CodeManX
Changed status from 'Open' to: 'Resolved'
Fixed the incorrect memfree, however the script still crashes, this is a known problem with dynamic defined items.
A workaround is to store the return value from
items_prop1
somewhere. eg: