Crash when attempting to sculpt a mesh with a multiresolution modifier and applied mirror modifier #70465

Closed
opened 2019-10-03 00:05:12 +02:00 by ghoulish · 11 comments

Update reply below contains reproduceable steps to create objects showcasing this bug from scratch; original post in this post left for posterity. The issue appears to involve a Multiresolution modifier with subdivision levels causing a crash when attempting to sculpt the relevant object but only in the case where a specifically configured Mirror modifier had been copied and applied after creation of the Multiresolution modifier.

System Information
Operating system: Windows 7 Ultimate - Version 6.1.7601 Service Pack 1 Build 7601
Graphics card: Nvidia GeForce GTX 950

Blender Version
Broken: 2.80, 2.81 release

Short description of error
Trying to use sculpt tools on a specific object in my file ("sculpt_figure res2 breasts") causes Blender to crash. I had not encountered any crashing issues involving sculpting up until I tried sculpting this particular object. The crash reproduces on multiple systems. I have attached the blend file in question.

Removing either the Multi-resolution modifier or the Armature modifier from this object ("sculpt_figure res2 breasts") allows the object to be sculpted without crashing. Adding a new Multi-resolution or Armature modifier after either modifier has been removed also allows sculpting without crashing. The crash only happens when attempting to sculpt the object as is without removing and/or re-adding said modifiers.

The object in question ("sculpt_figure res2 breasts") was created by duplicating the object "sculpt_figure res2" and removing a selection of faces from the duplicated mesh, adding edge creasing to edges in the duplicated mesh, applying a mirror modifier belonging to the duplicated mesh, and adding a multi-resolution modifier to the duplicated mesh. I am not certain the order in which these actions were performed.

Exact steps for others to reproduce the error
Open the provided file "sculpt8_2.blend."
Select the object "sculpt_figure res2 breasts" in the "sculpt" collection if not already selected.
Enter sculpt mode.
Select a sculpt tool (tested with Draw brush, Thumb brush, Mask brush).
Click the sculpt tool on the mesh to attempt sculpting

sculpt8_2.blend

Update reply below contains reproduceable steps to create objects showcasing this bug from scratch; original post in this post left for posterity. The issue appears to involve a Multiresolution modifier with subdivision levels causing a crash when attempting to sculpt the relevant object but only in the case where a specifically configured Mirror modifier had been copied and applied after creation of the Multiresolution modifier. **System Information** Operating system: Windows 7 Ultimate - Version 6.1.7601 Service Pack 1 Build 7601 Graphics card: Nvidia GeForce GTX 950 **Blender Version** Broken: 2.80, 2.81 release **Short description of error** Trying to use sculpt tools on a specific object in my file ("sculpt_figure res2 breasts") causes Blender to crash. I had not encountered any crashing issues involving sculpting up until I tried sculpting this particular object. The crash reproduces on multiple systems. I have attached the blend file in question. Removing either the Multi-resolution modifier or the Armature modifier from this object ("sculpt_figure res2 breasts") allows the object to be sculpted without crashing. Adding a new Multi-resolution or Armature modifier after either modifier has been removed also allows sculpting without crashing. The crash only happens when attempting to sculpt the object as is without removing and/or re-adding said modifiers. The object in question ("sculpt_figure res2 breasts") was created by duplicating the object "sculpt_figure res2" and removing a selection of faces from the duplicated mesh, adding edge creasing to edges in the duplicated mesh, applying a mirror modifier belonging to the duplicated mesh, and adding a multi-resolution modifier to the duplicated mesh. I am not certain the order in which these actions were performed. **Exact steps for others to reproduce the error** Open the provided file "sculpt8_2.blend." Select the object "sculpt_figure res2 breasts" in the "sculpt" collection if not already selected. Enter sculpt mode. Select a sculpt tool (tested with Draw brush, Thumb brush, Mask brush). Click the sculpt tool on the mesh to attempt sculpting [sculpt8_2.blend](https://archive.blender.org/developer/F7786507/sculpt8_2.blend)
Author

Added subscriber: @Ghoulish

Added subscriber: @Ghoulish
Author

I've found a way to reproduce this crash bug entirely from scratch with no required example file. To cause the bug to occur perform the following steps:

  1. Add a cube mesh object.
  2. Add a Mirror modifier to the cube object.
  3. Enable "Bisect: X" option in Mirror modifier.
  4. Enable "Clipping" option in Mirror modifier.
  5. Add a Multiresolution modifier to the cube object.
  6. Generate a subdivision level in the Multiresolution modifier (click the Subdivide button).
  7. Copy the cube object's Mirror modifier (click the Copy button).
  8. Apply the copied Mirror modifier (click the Apply button).
  9. Switch to Sculpt mode.
  10. Attempt to draw on the mesh using a sculpt brush (example: Draw brush).
I've found a way to reproduce this crash bug entirely from scratch with no required example file. To cause the bug to occur perform the following steps: 1. Add a cube mesh object. 2. Add a Mirror modifier to the cube object. 3. Enable "Bisect: X" option in Mirror modifier. 4. Enable "Clipping" option in Mirror modifier. 5. Add a Multiresolution modifier to the cube object. 6. Generate a subdivision level in the Multiresolution modifier (click the Subdivide button). 7. Copy the cube object's Mirror modifier (click the Copy button). 8. Apply the copied Mirror modifier (click the Apply button). 9. Switch to Sculpt mode. 10. Attempt to draw on the mesh using a sculpt brush (example: Draw brush).
ghoulish changed title from Attempting to use sculpt tools on a specific object causes crash to Crash when attempting to sculpt a mesh with a multiresolution modifier and applied mirror modifier 2019-10-03 09:19:22 +02:00

Added subscriber: @alausic

Added subscriber: @alausic

I am trying to reproduce this bug and blender crashes after step 8.
Here is my conf.

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: Intel(R) HD Graphics 4400 Intel 4.3.0 - Build 20.19.15.4963

Blender Version
Broken: version: 2.81 (sub 12), branch: master, commit date: 2019-09-30 17:27, hash: ddb157999e
Worked: (optional)

I am trying to reproduce this bug and blender crashes after step 8. Here is my conf. **System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: Intel(R) HD Graphics 4400 Intel 4.3.0 - Build 20.19.15.4963 **Blender Version** Broken: version: 2.81 (sub 12), branch: master, commit date: 2019-09-30 17:27, hash: `ddb157999e` Worked: (optional)

Added subscribers: @ideasman42, @mano-wii

Added subscribers: @ideasman42, @mano-wii

I don't know if it's related to the problem, but when opening the file the BLI_assert of this line failed:
https://developer.blender.org/diffusion/B/browse/master/source/blender/modifiers/intern/MOD_skin.c$1442

This assert has been added in the commit abd68c6e
@ideasman42, mind taking a look at this assert?

I don't know if it's related to the problem, but when opening the file the BLI_assert of this line failed: https://developer.blender.org/diffusion/B/browse/master/source/blender/modifiers/intern/MOD_skin.c$1442 This assert has been added in the commit abd68c6e @ideasman42, mind taking a look at this assert?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

For me, this is already asserting in step 8 of @Ghoulish manual repo steps:
BLI_assert failed: /blender/source/blender/blenlib/intern/math_geom.c:3621, axis_dominant_v3_to_m3(), at '!(fabsf(_test_unit - 1.0f) >= 0.0002f) || !(fabsf(_test_unit) >= 0.0002f)'

For me, this is already asserting in step 8 of @Ghoulish manual repo steps: `BLI_assert failed: /blender/source/blender/blenlib/intern/math_geom.c:3621, axis_dominant_v3_to_m3(), at '!(fabsf(_test_unit - 1.0f) >= 0.0002f) || !(fabsf(_test_unit) >= 0.0002f)'`
Member

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Member

I can reproduce the crash by following the steps. The patch in D6665 fixes the crash, so I consider that the issue is the same as the other report.

I can reproduce the crash by following the steps. The patch in [D6665](https://archive.blender.org/developer/D6665) fixes the crash, so I consider that the issue is the same as the other report.
Member

Closed as duplicate of #70173

Closed as duplicate of #70173
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
5 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#70465
No description provided.