Maniphest T80033

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

Assigned To
None
Authored By
Yassir A. P. (yassir_a_p)
Aug 23 2020, 9:44 AM
Tags
  • BF Blender
  • Nodes & Physics
  • Dependency Graph
Subscribers
Jacques Lucke (JacquesLucke)
Richard Antalik (ISS)
Yassir A. P. (yassir_a_p)

Description

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: rB010c1370aff6
Worked: version: 2.90.0 Beta, commit date: 2020-08-21 15:35, hash: rBebf10b72b05f

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)

BUT it doesn't crash if I switch to another view layer first, then switch to another scene.

  1. 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)

  1. 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. 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.

  1. 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;

  1. 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.


Thanks in advance for all people's hard work!

Related Objects

Mentioned Here
rB5b021dff4136: Fix T80035: Fix crash switching/adding scenes

Event Timeline

Yassir A. P. (yassir_a_p) created this task.Aug 23 2020, 9:44 AM
Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Aug 25 2020, 4:48 AM
Richard Antalik (ISS) added projects: Nodes & Physics, Dependency Graph.
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

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]
Jacques Lucke (JacquesLucke) added a subscriber: Jacques Lucke (JacquesLucke).Sep 1 2020, 3:16 PM

Has this been fixed by rB5b021dff4136: Fix T80035: Fix crash switching/adding scenes?

Richard Antalik (ISS) added a comment.Sep 1 2020, 9:08 PM
In T80033#1006579, @Jacques Lucke (JacquesLucke) wrote:

Has this been fixed by rB5b021dff4136: Fix T80035: Fix crash switching/adding scenes?

Yes works fine here. Will merge report.