GPv3: Assert in keyframe drawing code with GPv2 demo file #124585

Closed
opened 2024-07-12 11:42:16 +02:00 by Lukas Tönne · 5 comments
Member

System Information
Operating system:
Graphics card:

Blender Version
Broken: 4.3 main
Worked:

Short description of error
Assert fails in keyframe drawing code when loading the (Cutout-Rig) Boy Head Test demo file.

Exact steps for others to reproduce the error

  1. Download and open the (Cutout-Rig) Boy Head Test file.

Callstack: callstack.txt

**System Information** Operating system: Graphics card: **Blender Version** Broken: 4.3 main Worked: **Short description of error** Assert fails in keyframe drawing code when loading the [(Cutout-Rig) Boy Head Test](https://cloud.blender.org/p/gallery/5d9c6fbd2ed9a72b3fae65b0) demo file. **Exact steps for others to reproduce the error** 1. Download and open the [(Cutout-Rig) Boy Head Test](https://cloud.blender.org/p/gallery/5d9c6fbd2ed9a72b3fae65b0) file. Callstack: [callstack.txt](/attachments/f22216e0-3817-4545-9e17-dee886b86a97)
Lukas Tönne added the
Type
Report
Severity
Normal
Status
Needs Triage
labels 2024-07-12 11:42:17 +02:00
Lukas Tönne added this to the Grease Pencil project 2024-07-12 11:42:17 +02:00
Author
Member

Also has some errors from depsgraph cycles, not sure if related:

ERROR (bke.fcurve): source/blender/blenkernel/intern/fcurve_driver.cc:188 dtar_get_prop_val: driver has an invalid target to use (path = location[0])
WARN (bke.anim_sys): source/blender/blenkernel/intern/anim_sys.cc:360 BKE_animsys_rna_path_resolve: Animato: Invalid path. ID = 'Simplify Controller',  'modifiers["Subdivision"].levels[0]'
WARN (bke.anim_sys): source/blender/blenkernel/intern/anim_sys.cc:4229 BKE_animsys_eval_driver: invalid driver - modifiers["Subdivision"].levels[0]
Also has some errors from depsgraph cycles, not sure if related: ``` ERROR (bke.fcurve): source/blender/blenkernel/intern/fcurve_driver.cc:188 dtar_get_prop_val: driver has an invalid target to use (path = location[0]) WARN (bke.anim_sys): source/blender/blenkernel/intern/anim_sys.cc:360 BKE_animsys_rna_path_resolve: Animato: Invalid path. ID = 'Simplify Controller', 'modifiers["Subdivision"].levels[0]' WARN (bke.anim_sys): source/blender/blenkernel/intern/anim_sys.cc:4229 BKE_animsys_eval_driver: invalid driver - modifiers["Subdivision"].levels[0] ```
Member

Yes, can confirm the assert

Yes, can confirm the assert
Member

Caused by f3b393a74a.
@ChrisLend could you take a look?

Caused by https://projects.blender.org/blender/blender/commit/f3b393a74ac26898f491acd9953dcd331928eda4. @ChrisLend could you take a look?
Member

I looked into this for a bit and here is what I can make out:

  • We're in channel_list_build_keylists and it's called with a range of (-5.125, 46.125).
  • Going into summary_to_keylist then fcurve_to_keylist.
  • Before f3b393a74a update_keyblocks was called with the BezTriple at the start index with the number of indices in the range.
  • After f3b393a74a it's called on the whole fcurve.
  • In add_bezt_to_keyblocks_list the assert is hit because we ran out of columns in keylist->key_columns and all of them are < 52 (where the bezt[1].vec[1][0] is).
I looked into this for a bit and here is what I can make out: * We're in `channel_list_build_keylists` and it's called with a `range` of `(-5.125, 46.125)`. * Going into `summary_to_keylist` then `fcurve_to_keylist`. * Before https://projects.blender.org/blender/blender/commit/f3b393a74ac26898f491acd9953dcd331928eda4 `update_keyblocks` was called with the `BezTriple` at the start index with the number of indices in the range. * After https://projects.blender.org/blender/blender/commit/f3b393a74ac26898f491acd9953dcd331928eda4 it's called on the whole fcurve. * In `add_bezt_to_keyblocks_list` the assert is hit because we ran out of columns in `keylist->key_columns` and all of them are `< 52` (where the `bezt[1].vec[1][0]` is).

I think the only real solution is to make sure that transforming keys in the dopesheet sorts them during transform just like it does in the Graph Editor.
Will work on a patch for that

I think the only real solution is to make sure that transforming keys in the dopesheet sorts them during transform just like it does in the Graph Editor. Will work on a patch for that
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-08-01 14:04:53 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
4 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#124585
No description provided.