Assertion Failure: Moving Keyframe in Graph Editor beyond enum range #82669

Open
opened 2020-11-12 18:00:23 +01:00 by Christoph Lendenfeld · 10 comments

System Information
Operating system: Linux Mint Mate 19
Graphics card: Nvidia GTX 850M

Blender Version
Broken: master 2020-11-12 @ Merge branch 'blender-v2.91-release' only on debug builds 987732181f
Worked: Anything that is not a debug build will not show any problems

Short description of error
This issue is split off from #44219 (Pose Breakdowner bug in Gooseberry rigs)
Moving a keyframe of an enum in the graph editor allows it to go beyond the range of the enum. This causes an assert to fail

Exact steps for others to reproduce the error

**System Information** Operating system: Linux Mint Mate 19 Graphics card: Nvidia GTX 850M **Blender Version** Broken: master 2020-11-12 @ Merge branch 'blender-v2.91-release' only on debug builds 987732181f779ca792de933aa5f001168b1f6f26 Worked: Anything that is not a debug build will not show any problems **Short description of error** This issue is split off from #44219 (Pose Breakdowner bug in Gooseberry rigs) Moving a keyframe of an enum in the graph editor allows it to go beyond the range of the enum. This causes an assert to fail **Exact steps for others to reproduce the error** * Open the file * Move the keyframe up * Blender crashed as soon as you exceed the enum range [enum_property_crash.blend](https://archive.blender.org/developer/F9267184/enum_property_crash.blend)
Author
Member

Added subscriber: @ChrisLend

Added subscriber: @ChrisLend
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Are you sure this is a regression?

I am getting following assert in Debug builds:

BLI_assert failed: source/blender/blenlib/intern/math_rotation.c:1589, get_rotation_order_info(), at 'order >= 0 && order <= 6'

But no crash in Release builds

Are you sure this is a regression? I am getting following assert in Debug builds: ``` BLI_assert failed: source/blender/blenlib/intern/math_rotation.c:1589, get_rotation_order_info(), at 'order >= 0 && order <= 6' ``` But no crash in Release builds
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Christoph Lendenfeld self-assigned this 2020-11-13 11:49:23 +01:00
Author
Member

Sorry I missed that. I didn't know asserts would cause a crash in debug builds.
In that case I will close that issue then.
I think it makes no sense to keep it as a known issue if it never is a problem in final builds.

Sorry I missed that. I didn't know asserts would cause a crash in debug builds. In that case I will close that issue then. I think it makes no sense to keep it as a known issue if it never is a problem in final builds.
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Member

Well it is always good to have an eye on asserts [after all, they tell you something is not working as expected]
In this case I am not so sure if it is worth chasing this more... Keyframing enums is special, not sure how we'd safeguard properly here.

Still, letting @dr.sybren know

P.S.: you can disable "crash" on asserts in Debug builds with this CMAKE option WITH_ASSERT_ABORT

Well it is always good to have an eye on asserts [after all, they tell you something is not working as expected] In this case I am not so sure if it is worth chasing this more... Keyframing enums is special, not sure how we'd safeguard properly here. Still, letting @dr.sybren know P.S.: you can disable "crash" on asserts in Debug builds with this CMAKE option `WITH_ASSERT_ABORT`

In #82669#1053887, @ChrisLend wrote:
Sorry I missed that. I didn't know asserts would cause a crash in debug builds.
In that case I will close that issue then.

The assertion failing shows that there is a problem, in that the data fed to a function doesn't adhere to the expected range, so the function will not do the right thing. We shouldn't be accepting a failing assert in the same way that we don't accept a failing unit test.

We could keep this report open as a Known Issue, or as a low-priority bug. Not sure how hard it would be to find a proper fix for this, though.

> In #82669#1053887, @ChrisLend wrote: > Sorry I missed that. I didn't know asserts would cause a crash in debug builds. > In that case I will close that issue then. The assertion failing shows that there is a problem, in that the data fed to a function doesn't adhere to the expected range, so the function will not do the right thing. We shouldn't be accepting a failing assert in the same way that we don't accept a failing unit test. We could keep this report open as a Known Issue, or as a low-priority bug. Not sure how hard it would be to find a proper fix for this, though.

Changed status from 'Resolved' to: 'Confirmed'

Changed status from 'Resolved' to: 'Confirmed'
Christoph Lendenfeld changed title from Crash: Moving Keyframe in Graph Editor beyond enum range to Assertion Failure: Moving Keyframe in Graph Editor beyond enum range 2020-11-16 12:26:30 +01:00
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:35:58 +01:00
Christoph Lendenfeld removed their assignment 2023-05-04 12:30:04 +02:00
Sign in to join this conversation.
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#82669
No description provided.