Crash on loading blends with nested BG scenes #79575

Closed
opened 2020-08-06 06:15:51 +02:00 by Lars Cawley · 8 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14

Blender Version
Broken: version: 2.83.1, branch: master, commit date: 2020-06-25 09:47, hash: 8289fc688b
Worked: (newest version of Blender that worked as expected)

Short description of error
Blender crashes when a file that has linked BG scene that in turn has nested BG scene(s) Three levels of nested BG scenes seems to cause trouble.

Exact steps for others to reproduce the error
1: make a blend (mine has some text at each step as reference), save.
2: link step 1's blend scene into a new blend and set as the BG scene, save.
3: link the blend from step 2's scene into a 3rd blend and set as the BG scene, save.
4: link the blend from step 3's scene into a 4rd blend and set as the BG scene, save.
5: try to load the saved blend from step 4.
Based on an issue we are having with our production files I tried to replicate an crash. I can't say I can reproduce it without fail but I have a series of nest BG scene blends that crash Blender. Up to the 3rd scene seems OK, but the 4th crashes. If I change the names and text the 4th seems OK, but won't save a new text object in the scene.
Crashing_nested_BG_scenes.zip

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14 **Blender Version** Broken: version: 2.83.1, branch: master, commit date: 2020-06-25 09:47, hash: `8289fc688b` Worked: (newest version of Blender that worked as expected) **Short description of error** Blender crashes when a file that has linked BG scene that in turn has nested BG scene(s) Three levels of nested BG scenes seems to cause trouble. **Exact steps for others to reproduce the error** 1: make a blend (mine has some text at each step as reference), save. 2: link step 1's blend scene into a new blend and set as the BG scene, save. 3: link the blend from step 2's scene into a 3rd blend and set as the BG scene, save. 4: link the blend from step 3's scene into a 4rd blend and set as the BG scene, save. 5: try to load the saved blend from step 4. Based on an issue we are having with our production files I tried to replicate an crash. I can't say I can reproduce it without fail but I have a series of nest BG scene blends that crash Blender. Up to the 3rd scene seems OK, but the 4th crashes. If I change the names and text the 4th seems OK, but won't save a new text object in the scene. [Crashing_nested_BG_scenes.zip](https://archive.blender.org/developer/F8750952/Crashing_nested_BG_scenes.zip)
Author

Added subscriber: @Dekko_Bokko

Added subscriber: @Dekko_Bokko

Added subscriber: @iss

Added subscriber: @iss

Exception thrown: read access violation. sce_iter was 0x20786D90C98.

>	blender.exe!scene_validate_setscene__liblink(Scene * sce, const int totscene) Line 6090	C

 	blender.exe!lib_link_scenes_check_set(Main * bmain) Line 6289	C
 	blender.exe!lib_link_all(FileData * fd, Main * bmain) Line 9711	C
 	blender.exe!read_libraries(FileData * basefd, ListBase * mainlist) Line 12119	C
 	blender.exe!blo_read_file_internal(FileData * fd, const unsigned char * filepath) Line 9948	C
 	blender.exe!BLO_read_from_file(const unsigned char * filepath, eBLOReadSkip skip_flags, ReportList * reports) Line 320	C
 	blender.exe!BKE_blendfile_read(bContext * C, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 444	C
 	blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 712	C
 	blender.exe!wm_file_read_opwrap(bContext * C, const unsigned char * filepath, ReportList * reports, const bool autoexec_init) Line 2177	C
 	blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2319	C
 	blender.exe!operator_state_dispatch(bContext * C, wmOperator * op, OperatorDispatchTarget * targets) Line 2213	C
 	blender.exe!wm_open_mainfile_dispatch(bContext * C, wmOperator * op) Line 2346	C
 	blender.exe!wm_open_mainfile_invoke(bContext * C, wmOperator * op, const wmEvent * UNUSED_event) Line 2351	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1284	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1532	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1547	C
 	blender.exe!WM_operator_name_call_with_properties(bContext * C, const unsigned char * opstring, short context, IDProperty * properties) Line 1567	C
 	blender.exe!wm_open_mainfile_after_dialog_callback(bContext * C, void * user_data) Line 2238	C
 	blender.exe!wm_block_file_close_discard(bContext * C, void * arg_block, void * arg_data) Line 3071	C
 	blender.exe!ui_apply_but_funcs_after(bContext * C) Line 922	C
 	blender.exe!ui_popup_handler(bContext * C, const wmEvent * event, void * userdata) Line 10889	C
 	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 622	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2743	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2854	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3283	C
 	blender.exe!WM_main(bContext * C) Line 478	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 548	C
 	[External Code]	
`Exception thrown: read access violation. sce_iter was 0x20786D90C98.` ``` > blender.exe!scene_validate_setscene__liblink(Scene * sce, const int totscene) Line 6090 C blender.exe!lib_link_scenes_check_set(Main * bmain) Line 6289 C blender.exe!lib_link_all(FileData * fd, Main * bmain) Line 9711 C blender.exe!read_libraries(FileData * basefd, ListBase * mainlist) Line 12119 C blender.exe!blo_read_file_internal(FileData * fd, const unsigned char * filepath) Line 9948 C blender.exe!BLO_read_from_file(const unsigned char * filepath, eBLOReadSkip skip_flags, ReportList * reports) Line 320 C blender.exe!BKE_blendfile_read(bContext * C, const unsigned char * filepath, const BlendFileReadParams * params, ReportList * reports) Line 444 C blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 712 C blender.exe!wm_file_read_opwrap(bContext * C, const unsigned char * filepath, ReportList * reports, const bool autoexec_init) Line 2177 C blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2319 C blender.exe!operator_state_dispatch(bContext * C, wmOperator * op, OperatorDispatchTarget * targets) Line 2213 C blender.exe!wm_open_mainfile_dispatch(bContext * C, wmOperator * op) Line 2346 C blender.exe!wm_open_mainfile_invoke(bContext * C, wmOperator * op, const wmEvent * UNUSED_event) Line 2351 C blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1284 C blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1532 C blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1547 C blender.exe!WM_operator_name_call_with_properties(bContext * C, const unsigned char * opstring, short context, IDProperty * properties) Line 1567 C blender.exe!wm_open_mainfile_after_dialog_callback(bContext * C, void * user_data) Line 2238 C blender.exe!wm_block_file_close_discard(bContext * C, void * arg_block, void * arg_data) Line 3071 C blender.exe!ui_apply_but_funcs_after(bContext * C) Line 922 C blender.exe!ui_popup_handler(bContext * C, const wmEvent * event, void * userdata) Line 10889 C blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 622 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2743 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2854 C blender.exe!wm_event_do_handlers(bContext * C) Line 3283 C blender.exe!WM_main(bContext * C) Line 478 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 548 C [External Code] ```

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

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

Yes, I am sorry about the file naming. I can replicate the crash by linking the linking_scene.blend's scene into a fresh blend and setting it to the background, saving and then attempting to open it. The linking_scene.blend itself opens fine.

Yes, I am sorry about the file naming. I can replicate the crash by linking the linking_scene.blend's scene into a fresh blend and setting it to the background, saving and then attempting to open it. The linking_scene.blend itself opens fine.

This issue was referenced by 5c917ef032

This issue was referenced by 5c917ef0323a3741216d696af09b53b4025abb78

This issue was referenced by d4804f00fb

This issue was referenced by d4804f00fbbd6da311c49b2ae498a4cadf9efe92

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Campbell Barton self-assigned this 2020-08-06 09:15:58 +02: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
4 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#79575
No description provided.