Blender crash when I switch scenes #62147

Closed
opened 2019-03-03 09:37:17 +01:00 by Vlad Lagunov · 6 comments

Dell XPS 15 9570
Operating system: Windows 10 10.0.17763
Graphics card: GeForce GTX 1050Ti with Max-Q Design

Blender Version
Broken:
(example: 2.80, ae977d13f8, blender2.8, 2019-03-03, as found on the splash screen)

When I try to switch scene, blender immediatly crashes. Also before this issue appeared, active camera changed after switching between scenes.

.blend file: https://yadi.sk/d/m6t-4ZQBZIBTIQ
foster.blend

Dell XPS 15 9570 Operating system: Windows 10 10.0.17763 Graphics card: GeForce GTX 1050Ti with Max-Q Design **Blender Version** Broken: (example: 2.80, ae977d13f8e9, blender2.8, 2019-03-03, as found on the splash screen) When I try to switch scene, blender immediatly crashes. Also before this issue appeared, active camera changed after switching between scenes. .blend file: https://yadi.sk/d/m6t-4ZQBZIBTIQ [foster.blend](https://archive.blender.org/developer/F6758378/foster.blend)
Author

Added subscriber: @Vlad-Salmon

Added subscriber: @Vlad-Salmon
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Confirmed, checking...

Confirmed, checking...
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

This is also tied to the use of a Background scene.
(Basically same issue as in #61763)

Looks like we are going into scene_remove_unused_view_layers twice [once for the scene to switch to, once for the background scene...]
For the background scene it cannot find the view_layer_eval [--> thus asserts]
Also not sure if we can afford to free the other viewlayers there?

subscribing @Sergey here as well [as this has minimal extra information copared to #61763], but at the same time will close this as a duplicate of #61763

once:

1   DEG::(anonymous namespace)::scene_remove_unused_view_layers      deg_eval_copy_on_write.cc 362  0x2fbc40d 
2   DEG::(anonymous namespace)::scene_setup_view_layers_before_remap deg_eval_copy_on_write.cc 412  0x2fbc559 
3   DEG::deg_expand_copy_on_write_datablock                          deg_eval_copy_on_write.cc 752  0x2fbce0c 
4   DEG::deg_update_copy_on_write_datablock                          deg_eval_copy_on_write.cc 976  0x2fbd509 
5   DEG::depsgraph_ensure_view_layer                                 deg_eval.cc               274  0x2fbb607 
6   DEG::deg_evaluate_on_refresh                                     deg_eval.cc               294  0x2fbb681 
7   DEG_evaluate_on_framechange                                      depsgraph_eval.cc         83   0x2f9167c 
8   BKE_scene_graph_update_for_newframe                              scene.c                   1545 0x2bfe40d 
9   ED_update_for_newframe                                           screen_edit.c             1418 0x227f66e 
10  ED_scene_change_update                                           scene_edit.c              125  0x226e275 
11  WM_window_set_active_scene                                       wm_window.c               2217 0x1cdcec9

twice:

1  DEG::(anonymous namespace)::scene_remove_unused_view_layers                                                                                                                                   deg_eval_copy_on_write.cc 357  0x2fbc37f      
2  DEG::(anonymous namespace)::scene_setup_view_layers_before_remap                                                                                                                              deg_eval_copy_on_write.cc 412  0x2fbc559      
3  DEG::deg_expand_copy_on_write_datablock                                                                                                                                                       deg_eval_copy_on_write.cc 752  0x2fbce0c      
4  DEG::deg_update_copy_on_write_datablock                                                                                                                                                       deg_eval_copy_on_write.cc 976  0x2fbd509      
5  DEG::deg_evaluate_copy_on_write                                                                                                                                                               deg_eval_copy_on_write.cc 1126 0x2fbd8ec      
6  std::__invoke_impl<void, void ( *&)(Depsgraph *, DEG::IDNode const *), Depsgraph *, DEG::IDNode *&>                                                                                           invoke.h                  60   0x2fa8e61      

Another Note: this file also crashes in Outliner -> Blender File view [that is an - unrelated - issue with displaying paintcurves there -- should be fixed in D4445...]

This is also tied to the use of a Background scene. (Basically same issue as in #61763) Looks like we are going into `scene_remove_unused_view_layers` twice [once for the scene to switch to, once for the background scene...] For the background scene it cannot find the `view_layer_eval` [--> thus asserts] Also not sure if we can afford to free the other viewlayers there? subscribing @Sergey here as well [as this has minimal extra information copared to #61763], but at the same time will close this as a duplicate of #61763 once: ``` 1 DEG::(anonymous namespace)::scene_remove_unused_view_layers deg_eval_copy_on_write.cc 362 0x2fbc40d 2 DEG::(anonymous namespace)::scene_setup_view_layers_before_remap deg_eval_copy_on_write.cc 412 0x2fbc559 3 DEG::deg_expand_copy_on_write_datablock deg_eval_copy_on_write.cc 752 0x2fbce0c 4 DEG::deg_update_copy_on_write_datablock deg_eval_copy_on_write.cc 976 0x2fbd509 5 DEG::depsgraph_ensure_view_layer deg_eval.cc 274 0x2fbb607 6 DEG::deg_evaluate_on_refresh deg_eval.cc 294 0x2fbb681 7 DEG_evaluate_on_framechange depsgraph_eval.cc 83 0x2f9167c 8 BKE_scene_graph_update_for_newframe scene.c 1545 0x2bfe40d 9 ED_update_for_newframe screen_edit.c 1418 0x227f66e 10 ED_scene_change_update scene_edit.c 125 0x226e275 11 WM_window_set_active_scene wm_window.c 2217 0x1cdcec9 ``` twice: ``` 1 DEG::(anonymous namespace)::scene_remove_unused_view_layers deg_eval_copy_on_write.cc 357 0x2fbc37f 2 DEG::(anonymous namespace)::scene_setup_view_layers_before_remap deg_eval_copy_on_write.cc 412 0x2fbc559 3 DEG::deg_expand_copy_on_write_datablock deg_eval_copy_on_write.cc 752 0x2fbce0c 4 DEG::deg_update_copy_on_write_datablock deg_eval_copy_on_write.cc 976 0x2fbd509 5 DEG::deg_evaluate_copy_on_write deg_eval_copy_on_write.cc 1126 0x2fbd8ec 6 std::__invoke_impl<void, void ( *&)(Depsgraph *, DEG::IDNode const *), Depsgraph *, DEG::IDNode *&> invoke.h 60 0x2fa8e61 ``` Another Note: this file also crashes in Outliner -> `Blender File` view [that is an - unrelated - issue with displaying paintcurves there -- should be fixed in [D4445](https://archive.blender.org/developer/D4445)...]
Member

Closed as duplicate of #61763

Closed as duplicate of #61763
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
2 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#62147
No description provided.