Keyframes Freak Out While Tweaking NLA Strip #92549

Closed
opened 2021-10-28 01:01:26 +02:00 by Jonathan Lampel · 14 comments

System Information
Operating system: Windows-10-10.0.18363-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-10-27 16:56, hash: 39c11c03d0
This is also broken in the 3.0 Alpha!
Worked: (newest version of Blender that worked as expected)
Commit that introduced this issue: 7f1fe10595

Short description of error
The keyframes in an NLA strip start to freak out in Tweak mode, even when just changing the UI such as zooming in or out, but it also sometimes occurs while adding new keyframes, selecting keyframes, renaming the action, etc. Essentially whenever the animation updates.

Exact steps for others to reproduce the error
keyframe_bug.blend

  1. Open the attached file, which is just a default cube with two NLA strips.
  2. Enter tweak mode on the second strip
  3. Move your mouse around the Action Editor, zoom in and out, select keyframes, or place a new keyframe

a5rGacokA9.gif

**System Information** Operating system: Windows-10-10.0.18363-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-10-27 16:56, hash: `39c11c03d0` This is also broken in the 3.0 Alpha! Worked: (newest version of Blender that worked as expected) Commit that introduced this issue: 7f1fe10595 **Short description of error** The keyframes in an NLA strip start to freak out in Tweak mode, even when just changing the UI such as zooming in or out, but it also sometimes occurs while adding new keyframes, selecting keyframes, renaming the action, etc. Essentially whenever the animation updates. **Exact steps for others to reproduce the error** [keyframe_bug.blend](https://archive.blender.org/developer/F11555755/keyframe_bug.blend) 1. Open the attached file, which is just a default cube with two NLA strips. 2. Enter tweak mode on the second strip 3. Move your mouse around the Action Editor, zoom in and out, select keyframes, or place a new keyframe ![a5rGacokA9.gif](https://archive.blender.org/developer/F11555748/a5rGacokA9.gif)

Added subscriber: @JonathanLampel-4

Added subscriber: @JonathanLampel-4

Added subscriber: @iss

Added subscriber: @iss

Can confirm the issue, but not quite sure if this is runtime bug or your file is corrupted. In case of runtime bug, it's introduced between b42354672e and 26141664f0.

Will check if I can reproduce from scratch

Can confirm the issue, but not quite sure if this is runtime bug or your file is corrupted. In case of runtime bug, it's introduced between b42354672e and 26141664f0. Will check if I can reproduce from scratch

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

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

I wasn't able to reproduce this from scratch. @JonathanLampel-4 can you provide steps how to cause this state?

Will confirm anyway, but not sure if this is possible to fix in already broken files.

I wasn't able to reproduce this from scratch. @JonathanLampel-4 can you provide steps how to cause this state? Will confirm anyway, but not sure if this is possible to fix in already broken files.

Sure! This was actually happening in a much larger file and I reproduced it with the default scene to keep things simple. I think it may have to do with having more than one NLA strip. Here's what to do:

  • Give the default cube location, rotation, and scale keyframes on three different frames, just to have some animation data
  • Switch to the Animation workspace and add an NLA editor
  • Change the Dope Sheet to the Action Editor
  • Push the current action down and create a new one
  • Give the cube some more keyframes in the second action
  • Push the second action down
  • Tweak the first action a little bit by moving keys around or adding new ones
  • Tweak the second action, zoom in and out in the Action Editor, and add new keyframes
Sure! This was actually happening in a much larger file and I reproduced it with the default scene to keep things simple. I think it may have to do with having more than one NLA strip. Here's what to do: - Give the default cube location, rotation, and scale keyframes on three different frames, just to have some animation data - Switch to the Animation workspace and add an NLA editor - Change the Dope Sheet to the Action Editor - Push the current action down and create a new one - Give the cube some more keyframes in the second action - Push the second action down - Tweak the first action a little bit by moving keys around or adding new ones - Tweak the second action, zoom in and out in the Action Editor, and add new keyframes

Can't reproduce this issue from scratch with provided steps. This could be caused perhaps by addon or maybe even UI layout, can you check if you can reproduce when you load factory settings?

Can't reproduce this issue from scratch with provided steps. This could be caused perhaps by addon or maybe even UI layout, can you check if you can reproduce when you load factory settings?

I think I have another clue! While trying this again to capture it on video using factory defaults I noticed that it really only happens when there are more more than one NLA strips and the strip is moved around before entering tweak mode. keyframe_freakout.mp4

I think I have another clue! While trying this again to capture it on video using factory defaults I noticed that it really only happens when there are more more than one NLA strips and the strip is moved around before entering tweak mode. [keyframe_freakout.mp4](https://archive.blender.org/developer/F11606521/keyframe_freakout.mp4)
Sybren A. Stüvel self-assigned this 2021-11-01 12:56:18 +01:00

In future reports, please don't attach large videos. A textual description can be read in seconds, instead of waiting for minutes to watch a video. Also not all developers will have headphones on while working, so might miss any voice-over you maybe recorded. Of course in some cases it can be interesting to have a demo video, but then it's best if it's short & to the point.

In any case, I can reproduce the issue with the example file as well, will see if I can figure out where it comes from.

In future reports, please don't attach large videos. A textual description can be read in seconds, instead of waiting for minutes to watch a video. Also not all developers will have headphones on while working, so might miss any voice-over you maybe recorded. Of course in some cases it can be interesting to have a demo video, but then it's best if it's short & to the point. In any case, I can reproduce the issue with the example file as well, will see if I can figure out where it comes from.
Sybren A. Stüvel removed their assignment 2021-11-01 13:53:20 +01:00
Jeroen Bakker was assigned by Sybren A. Stüvel 2021-11-01 13:53:20 +01:00

Added subscribers: @Jeroen-Bakker, @dr.sybren

Added subscribers: @Jeroen-Bakker, @dr.sybren

Moving to @Jeroen-Bakker, as he worked on optimizations in this area, which might have caused this.

Moving to @Jeroen-Bakker, as he worked on optimizations in this area, which might have caused this.
Member

{7f1fe10595}~1 doesn't have this issue, 7f1fe10595 has this issue. So it is threading related.

{7f1fe10595}~1 doesn't have this issue, 7f1fe10595 has this issue. So it is threading related.
Member

bb3de31f84 fixes the issue by reverting the keylist drawing threading. There seems to be some data that is shared between threads, making incorrect decisions along the way. An assert failed at keyframes_keylist.cc#793 that shows the data corruption.

bb3de31f84 fixes the issue by reverting the keylist drawing threading. There seems to be some data that is shared between threads, making incorrect decisions along the way. An assert failed at `keyframes_keylist.cc#793` that shows the data corruption.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
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#92549
No description provided.