Object propertys in interface let Blender crash when pressing CTRL+Z #44580
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#44580
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Windows 7 x64,CPU i7 3820, 8 GB RAM, GPU 2x GTX680
Blender 2.74.5 (94d80c8)
I'm having a custom property assigned to an object and using that in a python interface script with layout.prop(data path to object, "Name of property"). When doing some actions in the viewport and undoing them with CTRL+Z Blender crashes. When having the custom properties in the scene data blender doesn't crash.
Blender crashes
Bug.blend
Changed status to: 'Open'
Added subscriber: @michaellackner
Changed status from 'Open' to: 'Archived'
You are storing bpy.data.objects["Cube"] in a global var in your py script… this is one of the best ways to get Blender crashing.
You shall never ever keep a static ref to some blender data in a script - many operations in Blender (including undo) will change addresses of data, so stored py var will reference invalid memory very quickly.
See also http://www.blender.org/api/blender_python_api_2_74_0/info_gotcha.html#help-my-script-crashes-blender and next sections.
Wow.. wasn't aware of that.. Sorry for reporting that useless bug. Keep up that great work!