Mode locked and crash if objects become disabled in viewport while not in object mode (fixed in 3.6, 3.3 LTS issue only) #94633

Open
opened 2022-01-04 13:48:23 +01:00 by Henrik D. · 13 comments
Member

System Information
Operating system: Linux-5.15.0-2-amd64-x86_64-with-glibc2.33 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.86

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-03 17:16, hash: b7ad58b945
Worked: didn't crash but showed an error message in 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef4177

Short description of error
Mode locked and crash if objects become disabled in viewport while not in object mode (fixed in 3.6, 3.3 LTS issue only)

Exact steps for others to reproduce the error

  • add a shapekey to the default cube
  • enter sculptmode
  • disable the cube in the viewport using the outliner as above
  • move mouse cursor to 3D view port, then Blender crashes

Original report

Short description of error
Objects that are in a mode which is not Edit Mode nor Object Mode, will lock the mode setting (so the mode options are greyed out and unusable) if they get disabled in the viewport. Hiding will not cause the this bug, it needs to be disabled in viewport using that display icon in the outliner, not the eye.

The solution for this is probably to make the disable in viewport action switch the mode to object mode if the active objects gets removed (much like delete from outliner). Another solution would be to still allow the mode switch.

Much worse though! Blender crashes sometimes when it gets into this state. I can reliably crash blender as described below.

Exact steps for others to reproduce the error
Go into weightpaint mode of the default cube and disable it in the viewport using the outliner (you need to enable the option first). Now you are stuck and have to enable it in the viewport first to be able to edit anything.

Now restart blender etc. and try this:

  1. Go into Vertex Paint Mode of the default cube
  2. Hit Tab to go into Edit Mode
  3. Disable the cube in the viewport using the outliner as above
  4. Hit Tab to switch out of Edit Mode -> Crash
**System Information** Operating system: Linux-5.15.0-2-amd64-x86_64-with-glibc2.33 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.86 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-03 17:16, hash: `b7ad58b945` Worked: didn't crash but showed an error message in 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `5be9ef4177` **Short description of error** Mode locked and crash if objects become disabled in viewport while not in object mode (fixed in 3.6, 3.3 LTS issue only) **Exact steps for others to reproduce the error** - add a shapekey to the default cube - enter sculptmode - disable the cube in the viewport using the outliner as above - move mouse cursor to 3D view port, then Blender crashes **Original report** **Short description of error** Objects that are in a mode which is not Edit Mode nor Object Mode, will lock the mode setting (so the mode options are greyed out and unusable) if they get disabled in the viewport. Hiding will not cause the this bug, it needs to be disabled in viewport using that display icon in the outliner, not the eye. The solution for this is probably to make the disable in viewport action switch the mode to object mode if the active objects gets removed (much like delete from outliner). Another solution would be to still allow the mode switch. Much worse though! Blender crashes sometimes when it gets into this state. I can reliably crash blender as described below. **Exact steps for others to reproduce the error** Go into weightpaint mode of the default cube and disable it in the viewport using the outliner (you need to enable the option first). Now you are stuck and have to enable it in the viewport first to be able to edit anything. Now restart blender etc. and try this: 1. Go into Vertex Paint Mode of the default cube 2. Hit Tab to go into Edit Mode 3. Disable the cube in the viewport using the outliner as above 4. Hit Tab to switch out of Edit Mode -> Crash
Author
Member

Added subscriber: @HDMaster84

Added subscriber: @HDMaster84

#95459 was marked as duplicate of this issue

#95459 was marked as duplicate of this issue

Added subscriber: @iss

Added subscriber: @iss

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

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

Can confirm locked modes and crash on NULL dereference

>	blender.exe!sculpt_update_object(Depsgraph * depsgraph, Object * ob, Mesh * me_eval, bool need_pmap, bool need_mask, bool UNUSED_need_colors) Line 1670	C

 	blender.exe!BKE_sculpt_update_object_for_edit(Depsgraph * depsgraph, Object * ob_orig, bool need_pmap, bool need_mask, bool need_colors) Line 1806	C
 	blender.exe!vertex_paint_init_session(Depsgraph * depsgraph, Scene * scene, Object * ob, eObjectMode object_mode) Line 1117	C
 	blender.exe!ed_vwpaintmode_enter_generic(Main * bmain, Depsgraph * depsgraph, Scene * scene, Object * ob, const eObjectMode mode_flag) Line 1256	C
 	blender.exe!ED_object_vpaintmode_enter_ex(Main * bmain, Depsgraph * depsgraph, Scene * scene, Object * ob) Line 1262	C
 	blender.exe!vpaint_mode_toggle_exec(bContext * C, wmOperator * op) Line 2625	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 1325	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const wmOperatorCallContext context, const bool poll_only, wmEvent * event) Line 1520	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, wmOperatorCallContext context, PointerRNA * properties) Line 1568	C
 	blender.exe!ED_object_mode_set_ex(bContext * C, eObjectMode mode, bool use_undo, ReportList * reports) Line 219	C
 	blender.exe!object_mode_set_exec(bContext * C, wmOperator * op) Line 1750	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 1325	C
 	blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2314	C
 	blender.exe!wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2667	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 2994	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3129	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3690	C
 	blender.exe!WM_main(bContext * C) Line 642	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 565	C
 	[External Code]	
Can confirm locked modes and crash on NULL dereference ``` > blender.exe!sculpt_update_object(Depsgraph * depsgraph, Object * ob, Mesh * me_eval, bool need_pmap, bool need_mask, bool UNUSED_need_colors) Line 1670 C blender.exe!BKE_sculpt_update_object_for_edit(Depsgraph * depsgraph, Object * ob_orig, bool need_pmap, bool need_mask, bool need_colors) Line 1806 C blender.exe!vertex_paint_init_session(Depsgraph * depsgraph, Scene * scene, Object * ob, eObjectMode object_mode) Line 1117 C blender.exe!ed_vwpaintmode_enter_generic(Main * bmain, Depsgraph * depsgraph, Scene * scene, Object * ob, const eObjectMode mode_flag) Line 1256 C blender.exe!ED_object_vpaintmode_enter_ex(Main * bmain, Depsgraph * depsgraph, Scene * scene, Object * ob) Line 1262 C blender.exe!vpaint_mode_toggle_exec(bContext * C, wmOperator * op) Line 2625 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 1325 C blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const wmOperatorCallContext context, const bool poll_only, wmEvent * event) Line 1520 C blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, wmOperatorCallContext context, PointerRNA * properties) Line 1568 C blender.exe!ED_object_mode_set_ex(bContext * C, eObjectMode mode, bool use_undo, ReportList * reports) Line 219 C blender.exe!object_mode_set_exec(bContext * C, wmOperator * op) Line 1750 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 1325 C blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2314 C blender.exe!wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2667 C blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 2994 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3129 C blender.exe!wm_event_do_handlers(bContext * C) Line 3690 C blender.exe!WM_main(bContext * C) Line 642 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 565 C [External Code] ```
Member

Added subscribers: @Zcyber, @PratikPB2123

Added subscribers: @Zcyber, @PratikPB2123

This issue was referenced by 066bf316ce

This issue was referenced by 066bf316ced0ad3f82336090508bc5972b162794

This issue was referenced by cb39058f2f

This issue was referenced by cb39058f2f31815279ac72fce08ead7cbc979517
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Joseph Eagar self-assigned this 2022-07-11 08:43:17 +02:00

I am the person who reported this glitch, it is said that it's solved, but it still happens in latest Blender version 3.2.2. Please check it again.

When object has at least one shape key, same glitch happens.
For example there is a cube, and it has a shape key and I select this cube and activate sculpt mode and hide it using "Disable in Viewports" after that move mouse cursor to 3D view port, then Blender crashes.

I checked crash log and it says

Exception Record:

ExceptionCode : EXCEPTION_ACCESS_VIOLATION
Exception Address : 0x00007FF791F64EAD
Exception Module : blender.exe
Exception Flags : 0x00000000
Exception Parameters : 0x2
Parameters- [x] : 0x0000000000000000
Parameters- [x] : 0x0000000000000720

I am the person who reported this glitch, it is said that it's solved, but it still happens in latest Blender version 3.2.2. Please check it again. When object has at least one shape key, same glitch happens. For example there is a cube, and it has a shape key and I select this cube and activate sculpt mode and hide it using "Disable in Viewports" after that move mouse cursor to 3D view port, then Blender crashes. I checked crash log and it says Exception Record: ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FF791F64EAD Exception Module : blender.exe Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters- [x] : 0x0000000000000000 Parameters- [x] : 0x0000000000000720
Member

Changed status from 'Resolved' to: 'Confirmed'

Changed status from 'Resolved' to: 'Confirmed'
Member

Can still repro the crash

Can still repro the crash
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:11:35 +01:00
Member

Can still repro in 3.3.16 LTS, but this seems fixed in 3.6.

Will update repro steps and mark as an 3.3 LTS issue only...

Can still repro in 3.3.16 LTS, but this seems fixed in 3.6. Will update repro steps and mark as an 3.3 LTS issue only...
Philipp Oeser added this to the 3.3 LTS milestone 2024-03-04 09:20:24 +01:00
Philipp Oeser changed title from Mode locked and crash if objects become disabled in viewport while not in object mode to Mode locked and crash if objects become disabled in viewport while not in object mode (fixed in 3.6, 3.3 LTS issue only) 2024-03-04 09:20:45 +01: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
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#94633
No description provided.