Regression: 'Viewport Render Animation' stuck and crashes #96880

Closed
opened 2022-03-30 10:51:08 +02:00 by Hanley Arnold · 18 comments

System Information
Operating system: macOS Monterey 12.3
Graphics card: Apple Silicon M1 Max

Blender Version
Caused by 0a32ac02e9

Short description of error
Trying to render even the simplest animation (a cube moving up, 250 frames) through "Render viewport animation" gets stuck at about frame 25. The cursor changes to a weird box shape, and the whole process gets stuck, seemingly indefinitely.

Exact steps for others to reproduce the error

  • Open Blender
  • Create a simple animation (cube moving up for example)
  • {nav View > Viewport Render Animation}
**System Information** Operating system: `macOS Monterey 12.3` Graphics card: `Apple Silicon M1 Max` **Blender Version** Caused by 0a32ac02e9 **Short description of error** Trying to render even the simplest animation (a cube moving up, 250 frames) through "Render viewport animation" gets stuck at about frame 25. The cursor changes to a weird box shape, and the whole process gets stuck, seemingly indefinitely. **Exact steps for others to reproduce the error** * Open Blender * Create a simple animation (cube moving up for example) * {nav View > Viewport Render Animation}
Author

Added subscriber: @HanleyArnold

Added subscriber: @HanleyArnold

#97566 was marked as duplicate of this issue

#97566 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Hi, thanks for the report.
Probably the same problem as reported in #96370 and #96471
Do you have Adaptive Subdivision option enabled?

Hi, thanks for the report. Probably the same problem as reported in #96370 and #96471 Do you have Adaptive Subdivision option enabled?
Author

No... This is the default blender file. Haven't changed any setting

No... This is the default blender file. Haven't changed any setting
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

I can confirm the problem.
The code gets stuck in BLI_condition_wait inside schedule_write_result.
If you add a breakpoint right after that, strangely the render continues for a little longer.

__psynch_cvwait (@__psynch_cvwait:5)
_pthread_cond_wait (@_pthread_cond_wait:310)
schedule_write_result(OGLRender*, RenderResult*) (/Users/germanocavalcante/blender-git/blender/source/blender/editors/render/render_opengl.cc:1111)
screen_opengl_render_anim_step(bContext*, wmOperator*) (/Users/germanocavalcante/blender-git/blender/source/blender/editors/render/render_opengl.cc:1189)
screen_opengl_render_modal(bContext*, wmOperator*, wmEvent const*) (/Users/germanocavalcante/blender-git/blender/source/blender/editors/render/render_opengl.cc:1238)
wm_handler_operator_call (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2303)
wm_handlers_do_intern (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3183)
wm_handlers_do (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3235)
wm_event_do_handlers (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3825)
WM_main (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm.c:623)
main (/Users/germanocavalcante/blender-git/blender/source/creator/creator.c:547)
start (@start:133)

It is a regression introduced between:
Worked: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-12 19:46, hash: 97c2c39916
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: c77597cd0e

I'l bisect...

I can confirm the problem. The code gets stuck in `BLI_condition_wait` inside `schedule_write_result`. If you add a breakpoint right after that, strangely the render continues for a little longer. ``` __psynch_cvwait (@__psynch_cvwait:5) _pthread_cond_wait (@_pthread_cond_wait:310) schedule_write_result(OGLRender*, RenderResult*) (/Users/germanocavalcante/blender-git/blender/source/blender/editors/render/render_opengl.cc:1111) screen_opengl_render_anim_step(bContext*, wmOperator*) (/Users/germanocavalcante/blender-git/blender/source/blender/editors/render/render_opengl.cc:1189) screen_opengl_render_modal(bContext*, wmOperator*, wmEvent const*) (/Users/germanocavalcante/blender-git/blender/source/blender/editors/render/render_opengl.cc:1238) wm_handler_operator_call (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:2303) wm_handlers_do_intern (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3183) wm_handlers_do (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3235) wm_event_do_handlers (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm_event_system.c:3825) WM_main (/Users/germanocavalcante/blender-git/blender/source/blender/windowmanager/intern/wm.c:623) main (/Users/germanocavalcante/blender-git/blender/source/creator/creator.c:547) start (@start:133) ``` It is a regression introduced between: Worked: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-12 19:46, hash: `97c2c39916` Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: `c77597cd0e` I'l bisect...
Germano Cavalcante changed title from Render viewport animation stuck and crashes to Regression: 'Viewport Render Animation' stuck and crashes (Apple Silicon) 2022-04-13 16:32:47 +02:00

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker

{0a32ac02e976a4723802ed09bed64c0625e889a2} is the first bad commit

{0a32ac02e976a4723802ed09bed64c0625e889a2} is the first bad commit

Added subscriber: @Memento

Added subscriber: @Memento
Member

I can confirm actually on Windows

I can confirm actually on Windows
Pratik Borhade changed title from Regression: 'Viewport Render Animation' stuck and crashes (Apple Silicon) to Regression: 'Viewport Render Animation' stuck and crashes 2022-04-25 09:57:24 +02:00
Member

Added subscriber: @MikhailRachinskiy

Added subscriber: @MikhailRachinskiy

This issue was referenced by 5b2a6b6ebb

This issue was referenced by 5b2a6b6ebb7fb6116e6094eba4e9ae931d1a8934

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2022-05-03 23:08:35 +02:00

Added subscriber: @somaistaken

Added subscriber: @somaistaken
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
7 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#96880
No description provided.