Fix: Simulation Nodes: assert when scrubbing the timeline with simulation (Blender 3.6) #112363

Merged
Jacques Lucke merged 1 commits from JacquesLucke/blender:fix-states-around-frame into blender-v3.6-release 2023-09-14 16:53:40 +02:00
Member

This issue only become visible in debug builds. I'm not aware of bad behavior that this caused in release builds. Fixing this is necessary to test #112110 in a debug build.

This issue only become visible in debug builds. I'm not aware of bad behavior that this caused in release builds. Fixing this is necessary to test #112110 in a debug build.
Jacques Lucke added 1 commit 2023-09-14 10:01:41 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
a6117f13bc
fix
Jacques Lucke changed title from Fix: Simulation Nodes: assert when scrubbing the timeline with simulation to Fix: Simulation Nodes: assert when scrubbing the timeline with simulation (Blender 3.6) 2023-09-14 10:01:54 +02:00
Author
Member

@blender-bot build

@blender-bot build
Jacques Lucke requested review from Philipp Oeser 2023-09-14 10:02:30 +02:00
Jacques Lucke requested review from Hans Goudey 2023-09-14 10:02:30 +02:00
Philipp Oeser approved these changes 2023-09-14 11:43:43 +02:00
Philipp Oeser left a comment
Member

I can confirm the assert is gone (note though that I havent actually checked the logic, prefer if @HooglyBoogly reviews that)

I can confirm the assert is gone (note though that I havent actually checked the logic, prefer if @HooglyBoogly reviews that)
Hans Goudey approved these changes 2023-09-14 14:11:18 +02:00
Hans Goudey left a comment
Member

Takes a minute to understand the logic here, but it checks out :)

Takes a minute to understand the logic here, but it checks out :)
Jacques Lucke merged commit e55ca270e2 into blender-v3.6-release 2023-09-14 16:53:40 +02:00
Jacques Lucke deleted branch fix-states-around-frame 2023-09-14 16:53:41 +02:00
First-time contributor

@JacquesLucke Unfortunately, this build still gives me the failed assertion:

BLI_assert failed: X:\Blender\3\blender\source\blender\blenkernel\intern\simulation_state.cc:153, get_state_at_frame_for_write(), at 'frame > states_at_frames_.last()->frame'

To reproduce:

  1. take the default cube
  2. add geometry nodes modifier to the cube
  3. insert an empty simulation zone
  4. scrub the timeline to the right (say from 0 to 100) and, keeping the mousekey pressed, then scrub backwards from 100 to 50.

On scrubbing backwards, this assertion fails consistently for me on different machines, debug build e55ca270e2 on Windows 10.

@JacquesLucke Unfortunately, this build still gives me the failed assertion: ``` BLI_assert failed: X:\Blender\3\blender\source\blender\blenkernel\intern\simulation_state.cc:153, get_state_at_frame_for_write(), at 'frame > states_at_frames_.last()->frame' ``` To reproduce: 1. take the default cube 2. add geometry nodes modifier to the cube 3. insert an empty simulation zone 4. scrub the timeline to the right (say from 0 to 100) and, keeping the mousekey pressed, then scrub backwards from 100 to 50. On scrubbing backwards, this assertion fails consistently for me on different machines, debug build `e55ca270e2` on Windows 10.
Author
Member

@MKRelax I'm fairly certain that you tested the wrong commit. In e55ca270e2 there is no assert at simulation_state.cc:153. In the previous commit, there is an assert though.

@MKRelax I'm fairly certain that you tested the wrong commit. In e55ca270e2 there is no assert at `simulation_state.cc:153`. In the previous commit, there is an assert though.
First-time contributor

You're absolutely right. Apparently I was testing \build_windows_x64_vc16_Debug\bin\blender.exe from a previous build. Should have tested \build_windows_x64_vc16_Debug\bin\Debug\blender.exe.

The assert is indeed gone now. Sorry for the noise.

You're absolutely right. Apparently I was testing `\build_windows_x64_vc16_Debug\bin\blender.exe` from a previous build. Should have tested `\build_windows_x64_vc16_Debug\bin\Debug\blender.exe`. The assert is indeed gone now. Sorry for the noise.
Sign in to join this conversation.
No reviewers
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#112363
No description provided.