Crash with Load UI off and calling the same template twice #76392

Closed
opened 2020-05-04 10:15:29 +02:00 by Reiner Prokein · 12 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.41

Blender Version
Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-01 21:55, hash: 83304e4c22
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

When Load UI is off, and you click at file - new - create a new template, and then go again at file - new - create the same template, then Blender crashes.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

Open Preferences, go to Save & Load, untick Load UI.
Go to File > New > Sculpting . Now go again to File > New > Sculpting. Blender will crash to desktop. This can be repeated with the other templates too. When you call the same template twice with Load UI off then Blender crashes.

See attached video, screenshot and crash log.

2020-05-04 09-55-40.mp4

crash.jpg

blender.crash.txt

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.41 **Blender Version** Broken: version: 2.90 (sub 0), branch: master, commit date: 2020-05-01 21:55, hash: `83304e4c22` Worked: (newest version of Blender that worked as expected) **Short description of error** [Please fill out a short description of the error here] When Load UI is off, and you click at file - new - create a new template, and then go again at file - new - create the same template, then Blender crashes. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] Open Preferences, go to Save & Load, untick Load UI. Go to File > New > Sculpting . Now go again to File > New > Sculpting. Blender will crash to desktop. This can be repeated with the other templates too. When you call the same template twice with Load UI off then Blender crashes. See attached video, screenshot and crash log. [2020-05-04 09-55-40.mp4](https://archive.blender.org/developer/F8511273/2020-05-04_09-55-40.mp4) ![crash.jpg](https://archive.blender.org/developer/F8511274/crash.jpg) [blender.crash.txt](https://archive.blender.org/developer/F8511275/blender.crash.txt)
Author

Added subscriber: @tiles

Added subscriber: @tiles
Member

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

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

Added subscriber: @ankitm

Added subscriber: @ankitm

Added subscriber: @rjg

Added subscriber: @rjg

bmain->wm.first is null.

BLO_update_defaults_startup_blend(Main * bmain, const unsigned char * app_template) Line 483	C
wm_homefile_read(bContext * C, ReportList * reports, bool use_factory_settings, bool use_empty_data, bool use_data, bool use_userdef, const unsigned char * filepath_startup_override, const unsigned char * app_template_override, bool * r_is_factory_startup) Line 955	C
wm_homefile_read_exec(bContext * C, wmOperator * op) Line 1984	C
wm_homefile_read_invoke(bContext * C, wmOperator * op, const wmEvent * UNUSED_event) Line 2030	C
wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1271	C
wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1519	C
WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1534	C
ui_apply_but_funcs_after(bContext * C) Line 890	C
ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10695	C
wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 617	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2725	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2836	C
wm_event_do_handlers(bContext * C) Line 3231	C
WM_main(bContext * C) Line 453	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 530	C
`bmain->wm.first` is null. ``` BLO_update_defaults_startup_blend(Main * bmain, const unsigned char * app_template) Line 483 C wm_homefile_read(bContext * C, ReportList * reports, bool use_factory_settings, bool use_empty_data, bool use_data, bool use_userdef, const unsigned char * filepath_startup_override, const unsigned char * app_template_override, bool * r_is_factory_startup) Line 955 C wm_homefile_read_exec(bContext * C, wmOperator * op) Line 1984 C wm_homefile_read_invoke(bContext * C, wmOperator * op, const wmEvent * UNUSED_event) Line 2030 C wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1271 C wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1519 C WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1534 C ui_apply_but_funcs_after(bContext * C) Line 890 C ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10695 C wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 617 C wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2725 C wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2836 C wm_event_do_handlers(bContext * C) Line 3231 C WM_main(bContext * C) Line 453 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 530 C ```
Member

Added subscriber: @Imaginer

Added subscriber: @Imaginer
Member

This happens in 2.83 as well.

This happens in 2.83 as well.
Campbell Barton self-assigned this 2020-05-05 11:31:37 +02:00

Added subscriber: @brecht

Added subscriber: @brecht

This may be related to bc3aab3fa5.

This may be related to bc3aab3fa5.

Looked into #75893 and don't think it's related.
While a NULL check here looks valid (as all screen data has been cleared). The actual result of the operation does load in new screen data, so I'd like to double check that this isn't bypassing versioning that should be done.

Looked into #75893 and don't think it's related. While a NULL check here looks valid (as all screen data has been cleared). The actual result of the operation does load in new screen data, so I'd like to double check that this isn't bypassing versioning that should be done.

This issue was referenced by c036ef1369

This issue was referenced by c036ef136960addd27f00857815adbb190abdc89

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
7 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#76392
No description provided.