Stopping Animation in Some Scenes Immediately Crashes Blender #103008

Closed
opened 2022-12-08 05:00:03 +01:00 by Omar · 18 comments

System Information
Operating system: Linux-5.15.0-52-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01

Blender Version
Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: a95bf1ac01
Caused by 42b51bf6a9

Short description of error
I have a particle animation in one scene, that is using other scenes as background. When I switch to another scene, starting then stopping the animation player crashes blender every time.

Exact steps for others to reproduce the error
[Based on the default startup or an attached .blend file{F14044147}
From the Attached file, switch to another scene, ex Bushes.
Start the animation player, then stop. Blender crashes.

**System Information** Operating system: Linux-5.15.0-52-generic-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01 **Blender Version** Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: `a95bf1ac01` Caused by 42b51bf6a9 **Short description of error** I have a particle animation in one scene, that is using other scenes as background. When I switch to another scene, starting then stopping the animation player crashes blender every time. **Exact steps for others to reproduce the error** [Based on the default startup or an attached .blend file{[F14044147](https://archive.blender.org/developer/F14044147/HouseSprites.blend)} From the Attached file, switch to another scene, ex Bushes. Start the animation player, then stop. Blender crashes.
Author

Added subscriber: @Omer-Almadani

Added subscriber: @Omer-Almadani

#103162 was marked as duplicate of this issue

#103162 was marked as duplicate of this issue

#103245 was marked as duplicate of this issue

#103245 was marked as duplicate of this issue

#103201 was marked as duplicate of this issue

#103201 was marked as duplicate of this issue

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

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

Added subscribers: @mont29, @Sergey, @iss

Added subscribers: @mont29, @Sergey, @iss

@Sergey, @mont29 Seems, that scenes used as background set are not evaluated and DEG_get_evaluated_scene will return NULL. Looking at code, this seems to be rather desired behavior, but I was not expecting this due to assert which suggests that I will get COW pointer at least. Do you have any suggestions?

@Sergey, @mont29 Seems, that scenes used as background set are not evaluated and `DEG_get_evaluated_scene` will return `NULL`. Looking at code, this seems to be rather desired behavior, but I was not expecting this due to assert which suggests that I will get COW pointer at least. Do you have any suggestions?

Added subscriber: @cassidy

Added subscriber: @cassidy

Bug reproducible in;
Operating system: Windows-10-10.0.19044-SP0 64 Bits
version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: a95bf1ac01

Bug reproducible in; Operating system: Windows-10-10.0.19044-SP0 64 Bits version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: `a95bf1ac01`

Added subscriber: @kufgeo

Added subscriber: @kufgeo

Added subscriber: @brecht

Added subscriber: @brecht

@iss, even disregarding background scenes, there can be scenes that are not shown in any window, and so there would be no point evaluating them. Stopping sound playback should not cause such scenes to be evaluated either.

It should be enough to loop over windows and the scenes and view layers used in them. This is assuming that when a scene becomes no longer used in any window, audio playback is stopped. Which you may want to verify if it's working correctly now.

@iss, even disregarding background scenes, there can be scenes that are not shown in any window, and so there would be no point evaluating them. Stopping sound playback should not cause such scenes to be evaluated either. It should be enough to loop over windows and the scenes and view layers used in them. This is assuming that when a scene becomes no longer used in any window, audio playback is stopped. Which you may want to verify if it's working correctly now.

In #103008#1459195, @brecht wrote:
It should be enough to loop over windows and the scenes and view layers used in them. This is assuming that when a scene becomes no longer used in any window, audio playback is stopped. Which you may want to verify if it's working correctly now.

This was my original intention. There is also alternative solution to stop playback globally for all sounds. So I think, that best would be to revert the change and re-evaluate new solution.

> In #103008#1459195, @brecht wrote: > It should be enough to loop over windows and the scenes and view layers used in them. This is assuming that when a scene becomes no longer used in any window, audio playback is stopped. Which you may want to verify if it's working correctly now. This was my original intention. There is also alternative solution to stop playback globally for all sounds. So I think, that best would be to revert the change and re-evaluate new solution.
Member

Added subscribers: @yozba, @PratikPB2123

Added subscribers: @yozba, @PratikPB2123

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Richard Antalik self-assigned this 2022-12-14 18:46:16 +01:00

Pushed reverting change so this issue should be resolved.

Pushed reverting change so this issue should be resolved.

Added subscribers: @Max-49, @deadpin

Added subscribers: @Max-49, @deadpin
Member

Added subscriber: @Kaja3Dartist

Added subscriber: @Kaja3Dartist
Bastien Montagne added this to the Core project 2023-02-09 15:43:46 +01:00
Bastien Montagne removed this from the Core project 2023-02-09 18:19:07 +01: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
8 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#103008
No description provided.