Crash when going to Properties Editor object properties with Custom Property containing nested dictionary [named "asset_data"] #84091
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#84091
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?
System Information
Operating system: Linux-4.15.0-126-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: Radeon RX Vega (VEGA10, DRM 3.23.0, 4.15.0-126-generic, LLVM 10.0.0) X.Org 4.6 (Core Profile) Mesa 20.0.8
Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-12-22 20:58, hash:
8d3d4c8840
Worked: 2.90 seems to work fine.
Caused by
b71eb3a105
Short description of error
Crash when selecting object properties tab. This started happening when I added (as append) some assets from BlenderKit. I have no idea which BlenderKit asset broke the file. I was just messing around testing some stuff.
Exact steps for others to reproduce the error
Open the file with UI. Select object properties. Crash.
See attached file, I think I was able to delete all nonsense like textures or my custom library stuff from it.
CrashFile2.blend
Added subscriber: @CarlG
Added subscribers: @VilemDuha, @EAW
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm.
@VilemDuha Here is my stack trace: CrashFile2.crash.txt
Tested using: version: 2.92.0 Alpha, branch: master, commit date: 2020-12-24 19:11, hash:
af316d2761
, type: Releasebuild date: 2020-12-24, 22:31:17
OS: Windows-10-10.0.19041.630-SP0 64 Bits
GPU: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35
CPU: i7-950 @3.07 GHz SSE2 SSE3 SSE41
RAM: 8.00 GB
Confirmed also here, I did investigate. Not really caused by the addon, but by a nested dictionary in a custom property - a thing that is working fine in previous versions.
Crash your blender instantly with running this with an object selected and then switching to object properties:
The reason why object properties is probably very clear too, that's where blender displays custom properties in a panel
Just a guess: removing the ability for custom properties to contain quotes from Blender’s python API seems like a likely candidate as the cause of this issue.
ceba6b2c21
Added subscriber: @lichtwerk
Will check
Crash when going to object properties with BlenderKit asset.to Crash when going to Properties Editor object properties with Custom Property containing nested dictionarySetting to High prio since it is a crash regression and we have bisected to the culprit commit.
Added subscribers: @JulianEisel, @mont29
For some reason, I cannot reproduce from scratch using the script @VilemDuha provided.
Anyways, opening that file, I assume blender gets confused with the Custom Property
asset_data
:rna_idp_path
,RNA_struct_find_property
will find a property matching "asset_data" (but it is not the Custom Property, but the new one introduced inb71eb3a105
)ID_asset_data_get
, but of course that will return bogus (because we are not actually dealing with the expected "internal" asset_data, but a Custom Property...)I havent checked code further, it would be kind of surprising if Custom Properties are as fragile as not being allowed to be named equally to existing datablock properties.
@JulianEisel, @mont29 might know more already?
Crash when going to Properties Editor object properties with Custom Property containing nested dictionaryto Crash when going to Properties Editor object properties with Custom Property containing nested dictionary [named "asset_data"]Didn't think it could be the name. Did one more test - when I assign as 'asset_data' I get a crash.
However, when I first assign the same dict as a different property name ('test'), go to object properties (where it correctly draws) I can actually afterward assign also 'asset_data' without a crash.
This works only when I first go to object properties between the assignments. If I assign both props one after another I get the crash.
Added subscriber: @ideasman42
In
d1cedf53fa
@ideasman42 revertedcbae82ba96
giving the following reasons:@ideasman42, given the above list and the 8 commits on Dec 9-10 to rnaaccess.c, I figure you might best know more about why this issue is occurring and how to answer @lichtwerk's
questionstatement above:I had the same issue, thanks for the clarifications @lichtwerk and @VilemDuha!
This issue was referenced by
ad63d2f60e
Changed status from 'Confirmed' to: 'Resolved'
Oh, cool, and thanks. Seems to have been fixed in 2020-12-28 21:34 version (Linux).