Crash when switching to other scene IF there are 2 view layers (2.91 Alpha regression, compared to the latest 2.90 Beta) #80033

Closed
opened 2020-08-23 09:44:37 +02:00 by Yassir A. P. · 8 comments

System Information
Operating system: Windows-10-10.0.16299-SP0 64 Bits
Graphics card: GeForce GT 720M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-22 22:24, hash: 010c1370af
Worked: version: 2.90.0 Beta, commit date: 2020-08-21 15:35, hash: ebf10b72b0

Short description of error
Please bear with me explaining this as I already did many possible steps/conditions that can reproduce the crash.

Blender crashes IF:

  1. There are 1 or 2 scenes, and 2 view layers in any one scene, switching to other scene (either from scene drop down list or clicking other scene from Outliner) OR choosing any button from the add New Scene options (from top bar) (screenshot) 2020-08-23-[12-34-32]-126.png
    BUT it doesn't crash if I switch to another view layer first, then switch to another scene.

  2. There are 2 scenes, and only 1 view layer in each scene, it crashes if I choose any option of the add New Scene button (screenshot) OR copying current Scene then pasting it, then switch to other scene.
    BUT it doesn't crash if I : A) switch to another scene; B) delete current scene; C) switch to another scene first BEFORE adding New Scene (copy paste or topbar button)

  3. There are 3 or more scenes, and 1 view layer each, it crashes either by switching to another scene OR adding new Scene (from top bar) OR copy-pasting a Scene (from Outliner) then switching to another Scene.

Exact steps for others to reproduce the error
I created 3 simple .blend files for each case:
1---2scenes-2viewlayers-on1stscene.blend

  1. There is 1 or 2 scenes, and 2 view layers in any one scene: A) Switch to another scene > crash; B) Delete current Scene (from topbar) > crash; C) Add New Scene (topbar) > choose any option from the pop-up > crash.
    2---2scenes-1viewlayer-each.blend
  2. There are 2 scenes, 1 view layer each: A) Add New Scene (from top bar)> choose any option from the pop up > crash; B) Copy-Paste current Scene > switch to another Scene > crash;
    3---3scenes-1viewlayer-each.blend
  3. There are 3 scenes: A) Switch to another scene > crash; B) Add New Scene (from top bar)> choose any option from the pop up > crash; C) Delete current Scene (from topbar) > crash; D) Copy-Paste current Scene > switch to another Scene > crash.

I don't know if this is only in Windows or only with specific machine/drivers, so I also attach my system info, generated with all addons disabled because I can reproduce them without any addon enabled. system-info.txt
Thanks in advance for all people's hard work!

**System Information** Operating system: Windows-10-10.0.16299-SP0 64 Bits Graphics card: GeForce GT 720M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-22 22:24, hash: `010c1370af` Worked: version: 2.90.0 Beta, commit date: 2020-08-21 15:35, hash: `ebf10b72b0` **Short description of error** Please bear with me explaining this as I already did many possible steps/conditions that can reproduce the crash. Blender crashes IF: 1. There are 1 or 2 scenes, and 2 view layers in any one scene, switching to other scene (either from scene drop down list or clicking other scene from Outliner) OR choosing any button from the add New Scene options (from top bar) (screenshot) ![2020-08-23-[12-34-32]-126.png](https://archive.blender.org/developer/F8805510/2020-08-23-_12-34-32_-126.png) BUT it doesn't crash if I switch to another view layer first, then switch to another scene. 2. There are 2 scenes, and only 1 view layer in each scene, it crashes if I choose any option of the add New Scene button (screenshot) OR copying **current** Scene then pasting it, then switch to other scene. BUT it doesn't crash if I : A) switch to another scene; B) delete current scene; C) switch to another scene first BEFORE adding New Scene (copy paste or topbar button) 3. There are 3 or more scenes, and 1 view layer each, it crashes either by switching to another scene OR adding new Scene (from top bar) OR copy-pasting a Scene (from Outliner) then switching to another Scene. **Exact steps for others to reproduce the error** I created 3 simple .blend files for each case: [1---2scenes-2viewlayers-on1stscene.blend](https://archive.blender.org/developer/F8805606/1---2scenes-2viewlayers-on1stscene.blend) 1. There is 1 or 2 scenes, and 2 view layers in any one scene: A) Switch to another scene > crash; B) Delete current Scene (from topbar) > crash; C) Add New Scene (topbar) > choose any option from the pop-up > crash. [2---2scenes-1viewlayer-each.blend](https://archive.blender.org/developer/F8805607/2---2scenes-1viewlayer-each.blend) 2. There are 2 scenes, 1 view layer each: A) Add New Scene (from top bar)> choose any option from the pop up > crash; B) Copy-Paste **current** Scene > switch to another Scene > crash; [3---3scenes-1viewlayer-each.blend](https://archive.blender.org/developer/F8805609/3---3scenes-1viewlayer-each.blend) 3. There are 3 scenes: A) Switch to another scene > crash; B) Add New Scene (from top bar)> choose any option from the pop up > crash; C) Delete current Scene (from topbar) > crash; D) Copy-Paste **current** Scene > switch to another Scene > crash. I don't know if this is only in Windows or only with specific machine/drivers, so I also attach my system info, generated with all addons disabled because I can reproduce them without any addon enabled. [system-info.txt](https://archive.blender.org/developer/F8805623/system-info.txt) Thanks in advance for all people's hard work!
Author

Added subscriber: @Yassir

Added subscriber: @Yassir

Added subscriber: @iss

Added subscriber: @iss

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

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

All cases are pretty much same:

Exception thrown: read access violation. this->time_source was nullptr.

>	blender.exe!blender::deg::Depsgraph::tag_time_source() Line 107	C++

 	blender.exe!DEG_graph_time_tag_update(Depsgraph * depsgraph) Line 776	C++
 	blender.exe!DEG_time_tag_update(Main * bmain) Line 769	C++
 	blender.exe!ED_update_for_newframe(Main * bmain, Depsgraph * depsgraph) Line 1582	C
 	blender.exe!ED_scene_change_update(Main * bmain, Scene * scene, ViewLayer * layer) Line 127	C
 	blender.exe!WM_window_set_active_scene(Main * bmain, bContext * C, wmWindow * win, Scene * scene) Line 2345	C
 	blender.exe!rna_Window_scene_update(bContext * C, PointerRNA * ptr) Line 739	C
 	blender.exe!rna_property_update(bContext * C, Main * bmain, Scene * scene, PointerRNA * ptr, PropertyRNA * prop) Line 2277	C
 	blender.exe!RNA_property_update(bContext * C, PointerRNA * ptr, PropertyRNA * prop) Line 2346	C
 	blender.exe!template_ID_set_property_exec_fn(bContext * C, void * arg_template, void * item) Line 330	C
 	blender.exe!ui_apply_but_funcs_after(bContext * C) Line 923	C
 	blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10843	C
 	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 634	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2750	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2861	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3286	C
 	blender.exe!WM_main(bContext * C) Line 479	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 548	C
 	[External Code]	
All cases are pretty much same: `Exception thrown: read access violation. this->time_source was nullptr.` ``` > blender.exe!blender::deg::Depsgraph::tag_time_source() Line 107 C++ blender.exe!DEG_graph_time_tag_update(Depsgraph * depsgraph) Line 776 C++ blender.exe!DEG_time_tag_update(Main * bmain) Line 769 C++ blender.exe!ED_update_for_newframe(Main * bmain, Depsgraph * depsgraph) Line 1582 C blender.exe!ED_scene_change_update(Main * bmain, Scene * scene, ViewLayer * layer) Line 127 C blender.exe!WM_window_set_active_scene(Main * bmain, bContext * C, wmWindow * win, Scene * scene) Line 2345 C blender.exe!rna_Window_scene_update(bContext * C, PointerRNA * ptr) Line 739 C blender.exe!rna_property_update(bContext * C, Main * bmain, Scene * scene, PointerRNA * ptr, PropertyRNA * prop) Line 2277 C blender.exe!RNA_property_update(bContext * C, PointerRNA * ptr, PropertyRNA * prop) Line 2346 C blender.exe!template_ID_set_property_exec_fn(bContext * C, void * arg_template, void * item) Line 330 C blender.exe!ui_apply_but_funcs_after(bContext * C) Line 923 C blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10843 C blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 634 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2750 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2861 C blender.exe!wm_event_do_handlers(bContext * C) Line 3286 C blender.exe!WM_main(bContext * C) Line 479 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 548 C [External Code] ```
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Has this been fixed by {5b021dff41}?

Has this been fixed by {5b021dff41}?

In #80033#1006579, @JacquesLucke wrote:
Has this been fixed by {5b021dff41}?

Yes works fine here. Will merge report.

> In #80033#1006579, @JacquesLucke wrote: > Has this been fixed by {5b021dff41}? Yes works fine here. Will merge report.

Closed as duplicate of #80035

Closed as duplicate of #80035
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
3 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#80033
No description provided.