Page MenuHome

Regression: Crash when using "Mask From Cavity"
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Linux-5.15.0-48-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: Quadro GP100/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.85.02

Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-10-04 12:59, hash: rB0458b24a239e
Worked: 3.4.0 Alpha, branch: master, commit date: 2022-09-30 08:29, hash: rB2004827bc990
Caused by rB416d1d039363: Sculpt: Add debug code to print sculpt undo stack.

Short description of error
Under certain circumstances Blender is easy to crash after or when using the "Mask From Cavity" operator.

Exact steps for others to reproduce the error

  • Add a new object
  • Enter sculpt mode
  • Use "Mask" -> "Mask From Cavity"

Alternatively:

  • On an existing object enter sculpt mode
  • Use "Mask" -> "Mask From Cavity"
  • Add a modifier like Bevel Or Subdivision Surface

Event Timeline

Evan Wilson (EAW) changed the task status from Needs Triage to Confirmed.EditedOct 4 2022, 6:47 PM
Evan Wilson (EAW) triaged this task as High priority.
bpy.ops.sculpt.mask_from_cavity(use_automask_settings=False)  # Operator

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FF6D08A5436
Exception Module      : blender.exe
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
	Parameters[0] : 0x0000000000000000
	Parameters[1] : 0x0000000000000000


Stack trace:
blender.exe         :0x00007FF6D08A53F0  sculpt_attr_elem_count_get C:\blender-git\blender\source\blender\blenkernel\intern\paint.cc:2400
blender.exe         :0x00007FF6D08A5470  sculpt_attr_update C:\blender-git\blender\source\blender\blenkernel\intern\paint.cc:2554
blender.exe         :0x00007FF6D08A5860  sculpt_attribute_update_refs C:\blender-git\blender\source\blender\blenkernel\intern\paint.cc:2790
blender.exe         :0x00007FF6D08A94B0  BKE_sculpt_object_pbvh_ensure C:\blender-git\blender\source\blender\blenkernel\intern\paint.cc:2293
blender.exe         :0x00007FF6D08A5BD0  sculpt_update_object C:\blender-git\blender\source\blender\blenkernel\intern\paint.cc:1754
blender.exe         :0x00007FF6D08A9E00  BKE_sculpt_update_object_after_eval C:\blender-git\blender\source\blender\blenkernel\intern\paint.cc:1917
blender.exe         :0x00007FF6D0A79810  mesh_build_data C:\blender-git\blender\source\blender\blenkernel\intern\DerivedMesh.cc:1612
blender.exe         :0x00007FF6D0A7BDF0  makeDerivedMesh C:\blender-git\blender\source\blender\blenkernel\intern\DerivedMesh.cc:1744
blender.exe         :0x00007FF6D0A0D8C0  BKE_object_handle_data_update C:\blender-git\blender\source\blender\blenkernel\intern\object_update.cc:165
blender.exe         :0x00007FF6D0A0D720  BKE_object_eval_uber_data C:\blender-git\blender\source\blender\blenkernel\intern\object_update.cc:329
blender.exe         :0x00007FF6D0C616C0  blender::deg::`anonymous namespace'::evaluate_node C:\blender-git\blender\source\blender\depsgraph\intern\eval\deg_eval.cc:104
blender.exe         :0x00007FF6D0C61460  blender::deg::`anonymous namespace'::deg_task_run_func C:\blender-git\blender\source\blender\depsgraph\intern\eval\deg_eval.cc:128
blender.exe         :0x00007FF6D59838C0  tbb::internal::function_task<Task>::execute C:\blender-git\lib\win64_vc15\tbb\include\tbb\task.h:1060
tbb.dll             :0x00007FFB09D7F220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FFB09D7F220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
blender.exe         :0x00007FF6D1669D20  tbb::internal::task_group_base::wait C:\blender-git\lib\win64_vc15\tbb\include\tbb\task_group.h:168
blender.exe         :0x00007FF6D0C60F10  blender::deg::deg_evaluate_on_refresh C:\blender-git\blender\source\blender\depsgraph\intern\eval\deg_eval.cc:459
blender.exe         :0x00007FF6D0884E60  scene_graph_update_tagged C:\blender-git\blender\source\blender\blenkernel\intern\scene.cc:2680
blender.exe         :0x00007FF6D0B6E7E0  wm_event_do_notifiers C:\blender-git\blender\source\blender\windowmanager\intern\wm_event_system.cc:689
blender.exe         :0x00007FF6D0B533A0  WM_main C:\blender-git\blender\source\blender\windowmanager\intern\wm.c:646
blender.exe         :0x00007FF6CFC212F0  main C:\blender-git\blender\source\creator\creator.c:580
blender.exe         :0x00007FF6D5B7F290  __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
KERNEL32.DLL        :0x00007FFB114B7020  BaseThreadInitThunk
ntdll.dll           :0x00007FFB13402680  RtlUserThreadStart

version: 3.4.0 Alpha, branch: master, commit date: 2022-10-04 15:35, hash: 4d9588ee454e, type: Release
build date: 2022-10-04, 15:56:38
platform: 'Windows-10-10.0.19043-SP0'

Julien Kaspar (JulienKaspar) changed the subtype of this task from "Report" to "Bug".Oct 4 2022, 6:55 PM
Pratik Borhade (PratikPB2123) renamed this task from Crash when using "Mask From Cavity" to Regression: Crash when using "Mask From Cavity".Oct 5 2022, 6:43 AM
Pratik Borhade (PratikPB2123) updated the task description. (Show Details)