Assert using PropertyGroup and PointerProperty prop in Panel #96503
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#96503
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 version compiled at 15/03/2022 18:00
Using an add-on that displays some props, a assert rises. The add-on was working without modifications since today compilation, but maybe failed for several days.
Important: Assert only visible in Debug mode.
To reproduce:
Add-on
bug.zip
2022-03-15 19-36-52.mp4
Error:
BLI_assert failed: D:\MyBlender\BlenderDEV\blender\source\blender\makesrna\intern\rna_access.c:5534, rna_idp_path(), at '!RNA_pointer_is_null(&child_ptr)
Added subscriber: @antoniov
Added subscriber: @JulianEisel
@JulianEisel This is the task we were talking about for the RNA assert.
Added subscriber: @SimonThommes
Added subscriber: @iss
Perhaps I am doing something wrong, but can't reproduce issue here.
@iss Are you on Windows with a Debug compilation? Really, it's hard to reproduce, in my PC was working normally and yesterday started..also some Blender Studio users started to find it. I tried a fresh build from February 1st and the bug was still there...very weird.
I'm able to reproduce on Linux, this looks like the same issue that I was having.
Changed status from 'Needs Triage' to: 'Confirmed'
As we can reproduce on Linux (Simon) and Windows we can be sure is not a Windows compiler only issue.
@JulianEisel Do we need to tag this error as
Core
or maybe isPython API
?Assert using prop in Panelto Assert using PropertyGroup prop in PanelI have narrowed down the cause of the error. The error occurs only when using a
PropertyGroup
and is defined in thescene
asPointerProperty
If the prop is not a propertygroup, works.
Settings are defines in
register
as:Following with the investigation of the bug I have found that the assert is only when you have several add-ons using
PointerProperty
. If you have only one add-on, then never fails.Assert using PropertyGroup prop in Panelto Assert using PropertyGroup and PointerProperty prop in PanelAfter more testing the problem is when you have a
PointerProperty
defined.This is the python I used to test (no need more add-ons to crash)
And this is the video of the crash using the Outliner
2022-03-16 22-27-32.mp4
Doing a debug in C, the error is in the function
rna_idp_path
when try to find the pointer in line5533 PointerRNA child_ptr = RNA_property_pointer_get(ptr, prop);
Here the debug data and callstack
I was only involved with this to help Simon debug the issue, I'm not planning on looking into this further currently. So I'd prefer not to be assigned to this.
This issue was referenced by
2397287a51
Changed status from 'Confirmed' to: 'Resolved'