Crash when using annotation tool on object hidden in sculpt mode #83013
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83013
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.77
Blender Version
Broken: version:
0f45cab862
Worked: 2.83.9
Short description of error
Blender should crash. However, if the Annotate tool is enabled in sculpt mode and the object is hidden afterwards, it doesn't crash.
Added subscriber: @sebus_93
Added subscriber: @rjg
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm this crash in 2.90.1, 2.91 and 2.92. The versions 2.83.x are not affected.
The object
ob
isNULL
which causes a crash when attempting to useStack trace from current master branch
e09d0c0d077cff79b55ce32ec5124d5faa73e2e7
:Crash when i hide an object in sculpt mode and use the Annotation toolto Crash when using annotation tool on object hidden in sculpt modeAdded subscriber: @ce3po
Added subscriber: @rlneumiller
The following fixes the issue to the extent that it behaves as it does in 2.83.10.
With 2.83.10, when attempting to reproduce this issue, rather than crashing, Annotate has no effect until you exit sculpt mode.
I would consider this to be more of a workaround than a proper fix.
Also reproduces with the measure tool.
Added subscribers: @ideasman42, @PabloDobarro
@ideasman42 This is crashing because when hiding the object, the UI switches to Object mode and the SculptSession is freed, but the object keeps being in Sculpt Mode. Any operation that checks the active mode of that object will behave in an unexpected way. What is the reason for doing this when changing the visibility?
If this is related to not supporting multi object editing in paint modes, I think it makes more sense to prevent the visibility of the active object from being changed.
Also, this is also no consistent with other visibility changes. If you hide the object directy, it goes from Sculpt Mode to Object Mode, but it you hide the collection that contains that object, it stays in Sculpt Mode.
@PabloDobarro agree this is not consistent / useful behavior.
As far as I know this was not intentionally designed this way it's just the result of the contexts
active_object
returning NULL when an object is hidden in the 3D view.I've created as design task to address this #85532 (Proposal to change behavior when the active object is hidden)
For 2.92 I'll check on a short term fix.
This issue was referenced by
52cfc620c8
Changed status from 'Confirmed' to: 'Resolved'