Assert when using prop_tabs_enum #78575
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#78575
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-5.4.0-40-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce GTX 760/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21
Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-03 10:56, hash:
aab41401f9
Short description of error
Using [prop_tabs_enum ]] in an add-on results in an assert being triggered in
ui_block_align_but_to_region
( https:*developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/interface_align.c ). This happens becauseui_but_align_opposite_to_area_align_get
returns zero when called intemplate_ID_tabs
([ https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/interface_templates.c | interface_templates.c ) for this UI element.ce148716c8
introduced theprop_tabs_enum
function with the described behavior.Exact steps for others to reproduce the error
Added subscriber: @Baardaap
Added subscriber: @Foaly
I cannot reproduce.
blender-2.90.0-
5a13f682ee
-linux64Added subscriber: @rjg
I can't reproduce this with the same commit nor with the current master. For this error to occur, you would have to have an
uiBut
that doesn't fit in any of the alignment categories that are listed in ui_block_align_but_to_region .Strange. It's a straight debug build of master without any patches. I'll check if there's an addon causing this, I though I disabled them all, but maybe I overlooked one.
An add-on should't cause asserts I think? So then it would still be a bug?
That's it. The assert is caused by this add-on
https://github.com/mrossini-ethz/camera-calibration-pvr.git
Which I forgot to disable.
Does this still count as a bug or is this considered a bug in the add-on?
@Baardaap I'll take a look. It depends on whether the Python API is used correctly.
@Baardaap Which version of the add-on are you using? There are two branches for 2.8 and a devel branch.
I have 30d2682 from the blender-2.80 branch
This appear to be a bug in the add-on. Parts of the unfinished UI code has been disabled in commit ab9dfff41f7cb333c707f41052fc0c2c15ead9f5.
The source of the issue appears to be
layout.prop_tabs_enum(props, "perspective")
. This appears to be a bug.The API change was introduced in
ce148716c8
which also addedui_but_align_opposite_to_area_align_get
and modifiedtemplate_ID_tabs
(interface_templates.c ). Previously the alignment was assigned as:After the change it is:
ui_but_align_opposite_to_area_align_get
may return zero, which happens in this case and results in the assert being triggered inui_block_align_but_to_region
(interface_align.c )Changed status from 'Needs Triage' to: 'Confirmed'
BLI_Assert(0) when deleting anything from the outliner.to Assert when using prop_tabs_enumAdded subscriber: @JulianEisel
@JulianEisel This might be for you, since you've originally implemented this feature.
This issue was referenced by
057f3f2f3d
Changed status from 'Confirmed' to: 'Resolved'