Regression: Fill mask in sculpt mode on partially hidden mesh causing instant crash #130010

Closed
opened 2024-11-08 05:28:47 +01:00 by Michael · 4 comments

System Information
Operating system: Windows 11
Graphics card: rtx 4090

Blender Version
Broken: 4.1, 4.3
Worked: 4.0

Short description of error
Fill mask in sculpt mode on partially hidden mesh causing instant crash.

Exact steps for others to reproduce the error

  • Add multi-res to any mesh, in edit mode selecfault some verticubes
  • In sculpt mode create a face set from edit mode selection
  • Shift + H to isolate face set selection then Mask, Fill Mask.

image

**System Information** Operating system: Windows 11 Graphics card: rtx 4090 **Blender Version** Broken: 4.1, 4.3 Worked: 4.0 **Short description of error** Fill mask in sculpt mode on partially hidden mesh causing instant crash. **Exact steps for others to reproduce the error** - Add multi-res to any mesh, in edit mode selecfault some verticubes - In sculpt mode create a face set from edit mode selection - Shift + H to isolate face set selection then Mask, Fill Mask. ![image](/attachments/f507d305-ac39-4d97-a41c-bee14da1b983)
Michael added the
Severity
Normal
Status
Needs Triage
Type
Bug
labels 2024-11-08 05:28:47 +01:00
Member

Hi, thanks for the report. Can confirm the crash (4.0 is good)

Hi, thanks for the report. Can confirm the crash (4.0 is good)
Pratik Borhade changed title from Fill mask in sculpt mode on partially hidden mesh causing instant crash. to Regression: Fill mask crash on multires mesh 2024-11-08 06:18:31 +01:00
Pratik Borhade changed title from Regression: Fill mask crash on multires mesh to Regression: Fill mask in sculpt mode on partially hidden mesh causing instant crash 2024-11-08 06:23:25 +01:00
Member

In 4.3, mask operations crashes straightaway when default cube has multires modifier.
Invalid subdiv_ccg.masks span

In 4.3, mask operations crashes straightaway when default cube has multires modifier. Invalid `subdiv_ccg.masks` span
Member

In 4.3, mask operations crashes straightaway when default cube has multires modifier.

I think I found cause of this issue.
BKE_sculpt_mask_layers_ensure -> BKE_scene_graph_evaluated_ensure changes sculpt->subdiv_ccg pointer. So the earlier reference &subdiv_ccg in fill_mask_grids becomes invalid.
Will make the PR.

> In 4.3, mask operations crashes straightaway when default cube has multires modifier. I think I found cause of this issue. `BKE_sculpt_mask_layers_ensure` -> `BKE_scene_graph_evaluated_ensure` changes `sculpt->subdiv_ccg` pointer. So the earlier reference `&subdiv_ccg` in `fill_mask_grids` becomes invalid. Will make the PR.
Pratik Borhade self-assigned this 2024-11-08 07:17:36 +01:00
Pratik Borhade added this to the 4.3 milestone 2024-11-08 07:17:39 +01:00
Member

Fix !130014

Fix !130014
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-11-08 11:16:26 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
2 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#130010
No description provided.