Entering Sculpt mode after using Multires Subdivide crashes Blender #75748

Closed
opened 2020-04-15 15:16:21 +02:00 by Antti Tikka · 44 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-15 07:36, hash: 530008df1d
Worked: Build from April 10th still worked

Short description of error
Entering Sculpt mode after using Multires Subdivide crashes Blender.

Exact steps for others to reproduce the error

  1. Add Multires modifier to the default cube
  2. Click Subdivide
  3. Switch into Sculpt mode
**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-15 07:36, hash: `530008df1d` Worked: Build from April 10th still worked **Short description of error** Entering Sculpt mode after using Multires Subdivide crashes Blender. **Exact steps for others to reproduce the error** 1. Add Multires modifier to the default cube 2. Click Subdivide 3. Switch into Sculpt mode
Author

Added subscriber: @Symstract

Added subscriber: @Symstract

#75931 was marked as duplicate of this issue

#75931 was marked as duplicate of this issue

#75923 was marked as duplicate of this issue

#75923 was marked as duplicate of this issue

#75911 was marked as duplicate of this issue

#75911 was marked as duplicate of this issue

#75887 was marked as duplicate of this issue

#75887 was marked as duplicate of this issue

#75864 was marked as duplicate of this issue

#75864 was marked as duplicate of this issue

#75858 was marked as duplicate of this issue

#75858 was marked as duplicate of this issue

#75838 was marked as duplicate of this issue

#75838 was marked as duplicate of this issue

#75817 was marked as duplicate of this issue

#75817 was marked as duplicate of this issue

#75807 was marked as duplicate of this issue

#75807 was marked as duplicate of this issue

#75776 was marked as duplicate of this issue

#75776 was marked as duplicate of this issue

#75773 was marked as duplicate of this issue

#75773 was marked as duplicate of this issue

#75771 was marked as duplicate of this issue

#75771 was marked as duplicate of this issue
Member

Added subscribers: @PabloDobarro, @ankitm

Added subscribers: @PabloDobarro, @ankitm
Member

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

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

caused by bf49bb354f
CC @PabloDobarro

- 0 in SCULPT_visibility_sync_all_vertex_to_face_sets at blender/source/blender/editors/sculpt_paint/sculpt.c:487
- 1 in sculpt_init_session at blender/source/blender/editors/sculpt_paint/sculpt.c:7495
- 2 in ED_object_sculptmode_enter_ex at blender/source/blender/editors/sculpt_paint/sculpt.c:7540
- 3 in sculpt_mode_toggle_exec at blender/source/blender/editors/sculpt_paint/sculpt.c:7706
- 4 in wm_operator_invoke at blender/source/blender/windowmanager/intern/wm_event_system.c:1283
- 5 in wm_operator_call_internal at blender/source/blender/windowmanager/intern/wm_event_system.c:1485
- 6 in WM_operator_name_call_ptr at blender/source/blender/windowmanager/intern/wm_event_system.c:1533
- 7 in ED_object_mode_toggle at blender/source/blender/editors/object/object_modes.c:177
- 8 in object_mode_set_exec at blender/source/blender/editors/object/object_edit.c:1434
- 9 in wm_operator_invoke at blender/source/blender/windowmanager/intern/wm_event_system.c:1283
- 10 in wm_operator_call_internal at blender/source/blender/windowmanager/intern/wm_event_system.c:1519
- 11 in WM_operator_name_call_ptr at blender/source/blender/windowmanager/intern/wm_event_system.c:1533
- 12 in ED_object_mode_generic_enter at blender/source/blender/editors/object/object_modes.c:229
- 13 in ED_workspace_change at blender/source/blender/editors/screen/workspace_edit.c:178
- 14 in WM_window_set_active_workspace at blender/source/blender/windowmanager/intern/wm_window.c:2345
- 15 in wm_event_do_notifiers at blender/source/blender/windowmanager/intern/wm_event_system.c:431
- 16 in WM_main at blender/source/blender/windowmanager/intern/wm.c:453
- 17 in main at blender/source/creator/creator.c:524
caused by bf49bb354f CC @PabloDobarro ``` - 0 in SCULPT_visibility_sync_all_vertex_to_face_sets at blender/source/blender/editors/sculpt_paint/sculpt.c:487 - 1 in sculpt_init_session at blender/source/blender/editors/sculpt_paint/sculpt.c:7495 - 2 in ED_object_sculptmode_enter_ex at blender/source/blender/editors/sculpt_paint/sculpt.c:7540 - 3 in sculpt_mode_toggle_exec at blender/source/blender/editors/sculpt_paint/sculpt.c:7706 - 4 in wm_operator_invoke at blender/source/blender/windowmanager/intern/wm_event_system.c:1283 - 5 in wm_operator_call_internal at blender/source/blender/windowmanager/intern/wm_event_system.c:1485 - 6 in WM_operator_name_call_ptr at blender/source/blender/windowmanager/intern/wm_event_system.c:1533 - 7 in ED_object_mode_toggle at blender/source/blender/editors/object/object_modes.c:177 - 8 in object_mode_set_exec at blender/source/blender/editors/object/object_edit.c:1434 - 9 in wm_operator_invoke at blender/source/blender/windowmanager/intern/wm_event_system.c:1283 - 10 in wm_operator_call_internal at blender/source/blender/windowmanager/intern/wm_event_system.c:1519 - 11 in WM_operator_name_call_ptr at blender/source/blender/windowmanager/intern/wm_event_system.c:1533 - 12 in ED_object_mode_generic_enter at blender/source/blender/editors/object/object_modes.c:229 - 13 in ED_workspace_change at blender/source/blender/editors/screen/workspace_edit.c:178 - 14 in WM_window_set_active_workspace at blender/source/blender/windowmanager/intern/wm_window.c:2345 - 15 in wm_event_do_notifiers at blender/source/blender/windowmanager/intern/wm_event_system.c:431 - 16 in WM_main at blender/source/blender/windowmanager/intern/wm.c:453 - 17 in main at blender/source/creator/creator.c:524 ```

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Member

Added subscribers: @MeshVoid, @SlateBlue

Added subscribers: @MeshVoid, @SlateBlue

Added subscriber: @ebarranco

Added subscriber: @ebarranco
Member

Added subscriber: @wevon-2

Added subscriber: @wevon-2

Added subscriber: @Yusz

Added subscriber: @Yusz

Added subscriber: @angelo9888

Added subscriber: @angelo9888

Added subscriber: @TheRedWaxPolice

Added subscriber: @TheRedWaxPolice

This crash is painful... A temporary workaround is to disable the multires before entering the sculpt mode.. image.png then enable it.. 😐

This crash is painful... A temporary workaround is to disable the multires before entering the sculpt mode.. ![image.png](https://archive.blender.org/developer/F8477228/image.png) then enable it.. 😐
Member

Added subscriber: @HoyaChoe

Added subscriber: @HoyaChoe
Member

Added subscriber: @zubenelgennubi

Added subscriber: @zubenelgennubi

Added subscriber: @costa

Added subscriber: @costa

Added subscriber: @lastrodamo

Added subscriber: @lastrodamo

I have the same crash with the latest release 2.83 beta

I have the same crash with the latest release 2.83 beta

Added subscriber: @YegorSmirnov

Added subscriber: @YegorSmirnov

Added subscriber: @koko_ze

Added subscriber: @koko_ze

Added subscriber: @RodDavis

Added subscriber: @RodDavis
Member

Added subscriber: @jemian

Added subscriber: @jemian

Added subscriber: @Isfuelo

Added subscriber: @Isfuelo

Added subscriber: @rjg

Added subscriber: @rjg

With the multires modifier enabled, there's no mesh data in the SculptSession. mvert, mpoly and mloop are NULL. Looks to me like sculpt_update_object (paint.c ) should set them to their actual values instead of NULL when the multires modifier is used.

  if (mmd) {
    ss->multires.active = true;
    ss->multires.modifier = mmd;
    ss->multires.level = mmd->sculptlvl;
    ss->totvert = me_eval->totvert;
    ss->totpoly = me_eval->totpoly;
    ss->totfaces = me->totpoly;
    ss->mvert = NULL;
    ss->mpoly = NULL;
    ss->mloop = NULL;
  }
With the multires modifier enabled, there's no mesh data in the `SculptSession`. `mvert`, `mpoly` and `mloop` are `NULL`. Looks to me like `sculpt_update_object` ([paint.c ](https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/paint.c)) should set them to their actual values instead of `NULL` when the multires modifier is used. ``` if (mmd) { ss->multires.active = true; ss->multires.modifier = mmd; ss->multires.level = mmd->sculptlvl; ss->totvert = me_eval->totvert; ss->totpoly = me_eval->totpoly; ss->totfaces = me->totpoly; ss->mvert = NULL; ss->mpoly = NULL; ss->mloop = NULL; } ```

Just noticed, there appears to be a patch D7431 for this that hasn't been committed yet.

Just noticed, there appears to be a patch [D7431](https://archive.blender.org/developer/D7431) for this that hasn't been committed yet.
Member

Added subscribers: @rthc, @Russ1642

Added subscribers: @rthc, @Russ1642
Member

Added subscriber: @Mike94

Added subscriber: @Mike94
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Pablo Dobarro self-assigned this 2020-04-20 02:22:05 +02:00
Member

Should be fixed in 35cbf3b5dc

Should be fixed in 35cbf3b5dcd2

Added subscriber: @pixeltrain3d

Added subscriber: @pixeltrain3d

Removed subscriber: @Yusz

Removed subscriber: @Yusz

Added subscriber: @Brias

Added subscriber: @Brias
Thomas Dinges added this to the 2.83 LTS milestone 2023-02-08 16:38:05 +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
16 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#75748
No description provided.