Sculpting Crash When Dyntopo Enabled With Tiling Settings Enabled #57988

Closed
opened 2018-11-21 23:35:00 +01:00 by Eoin O'Neill · 4 comments

System Information
Ubuntu 18.04 bionic (Linux 4.15.0-39-generic)
Gnome Shell
CPU: Intel Core i7-4770K
GPU: GeForce GTX 760
RAM: 11946MiB

Blender Version
Broken: blender2.8 , a9bf6a3b3a

Short description of error
Blender will crash when working in dyntopo when tiling on x y or z is enabled. The crash seems to be caused by an uninitialized bounding box pointer inside the Object structure. Backtrace will be provided below.

Exact steps for others to reproduce the error

  • Create a new blend file, use default cube or create a new cube or plane.
  • Click on the sculpt workspace
  • Click on dyntopo and enable with any setting (tested using relative detail)
  • Click on Symmetry/Lock and toggle X, Y, or Z tiling settings. Any offset should work.
  • Crash will occur immediately when trying to sculpt on surface.

Here's a backtrace with some relevant information.

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x000055555768d87d in do_tiled (sd=0x7fffc78f6d88, ob=0x7fffcd98be08, brush=0x7fffc6909608, ups=0x7fffc793fff8, 
    action=0x55555768b38e <sculpt_topology_update>)
    at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:3972
3972				start[dim] = (bbMin[dim] - orgLoc[dim] - radius) / step[dim];
(gdb) bt
- 0  0x000055555768d87d in do_tiled (sd=0x7fffc78f6d88, ob=0x7fffcd98be08, brush=0x7fffc6909608, ups=0x7fffc793fff8, action=0x55555768b38e <sculpt_topology_update>) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:3972
- 1  0x000055555768ddb9 in do_symmetrical_brush_actions (sd=0x7fffc78f6d88, ob=0x7fffcd98be08, action=0x55555768b38e <sculpt_topology_update>, ups=0x7fffc793fff8) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:4055
#2  0x0000555557690a6d in sculpt_stroke_update_step (C=0x7fffcdf1ca08, UNUSED_stroke=0x7fffb1fc5008, itemptr=0x7fffffffd590)
    at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:4981
#3  0x0000555557659bad in paint_brush_stroke_add_step (C=0x7fffcdf1ca08, op=0x7fffa8794688, mouse_in=0x7fffffffd64c, pressure=1)
    at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/paint_stroke.c:555
#4  0x000055555765bfb9 in paint_stroke_modal (C=0x7fffcdf1ca08, op=0x7fffa8794688, event=0x7fffae7ef088)
    at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/paint_stroke.c:1302
#5  0x0000555557690f25 in sculpt_brush_stroke_invoke (C=0x7fffcdf1ca08, op=0x7fffa8794688, event=0x7fffae7ef088)
    at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:5104
#6  0x000055555700d2ea in wm_operator_invoke (C=0x7fffcdf1ca08, ot=0x7fffc7a77108, event=0x7fffae7ef088, properties=0x7fffb1cc5908, reports=0x0, poll_only=false, use_last_properties=true)
    at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:1323
#7  0x000055555700ef94 in wm_handler_operator_call (C=0x7fffcdf1ca08, handlers=0x7fffc68dfa18, handler=0x7fffc694f288, event=0x7fffae7ef088, properties=0x7fffb1cc5908)
    at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:2041
#8  0x000055555700fa75 in wm_handlers_do_intern (C=0x7fffcdf1ca08, event=0x7fffae7ef088, handlers=0x7fffc68dfa18)
    at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:2343
#9  0x00005555570106f6 in wm_handlers_do (C=0x7fffcdf1ca08, event=0x7fffae7ef088, handlers=0x7fffc68dfa18)
    at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:2603
#10 0x0000555557011de6 in wm_event_do_handlers (C=0x7fffcdf1ca08)
    at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:3074
#11 0x00005555570065cb in WM_main (C=0x7fffcdf1ca08)
---Type <return> to continue, or q <return> to quit---q
 at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wQuit

My attempts to try to fix this on my own were in vain. However, I found that the problem is likely due to an invalid pointer to the object's bounding box:

(gdb) p /s *ob->bb
Cannot access memory at address 0x0

bbMin and bbMax are thus invalid pointers and cannot be used in the following line:

start[dim] = (bbMin[dim] - orgLoc[dim] - radius) / step[dim];

I would suggest checking that dyntopo is accurately creating and initializing bounding box data -- however, I'm not sure since I'm not familiar with the codebase.

**System Information** Ubuntu 18.04 bionic (Linux 4.15.0-39-generic) Gnome Shell CPU: Intel Core i7-4770K GPU: GeForce GTX 760 RAM: 11946MiB **Blender Version** Broken: blender2.8 , a9bf6a3b3ad **Short description of error** Blender will crash when working in dyntopo when tiling on x y or z is enabled. The crash seems to be caused by an uninitialized bounding box pointer inside the Object structure. Backtrace will be provided below. **Exact steps for others to reproduce the error** - Create a new blend file, use default cube or create a new cube or plane. - Click on the `sculpt` workspace - Click on `dyntopo` and enable with any setting (tested using relative detail) - Click on `Symmetry/Lock` and toggle X, Y, or Z tiling settings. Any offset should work. - Crash will occur immediately when trying to sculpt on surface. Here's a backtrace with some relevant information. ``` Thread 1 "blender" received signal SIGSEGV, Segmentation fault. 0x000055555768d87d in do_tiled (sd=0x7fffc78f6d88, ob=0x7fffcd98be08, brush=0x7fffc6909608, ups=0x7fffc793fff8, action=0x55555768b38e <sculpt_topology_update>) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:3972 3972 start[dim] = (bbMin[dim] - orgLoc[dim] - radius) / step[dim]; (gdb) bt - 0 0x000055555768d87d in do_tiled (sd=0x7fffc78f6d88, ob=0x7fffcd98be08, brush=0x7fffc6909608, ups=0x7fffc793fff8, action=0x55555768b38e <sculpt_topology_update>) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:3972 - 1 0x000055555768ddb9 in do_symmetrical_brush_actions (sd=0x7fffc78f6d88, ob=0x7fffcd98be08, action=0x55555768b38e <sculpt_topology_update>, ups=0x7fffc793fff8) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:4055 #2 0x0000555557690a6d in sculpt_stroke_update_step (C=0x7fffcdf1ca08, UNUSED_stroke=0x7fffb1fc5008, itemptr=0x7fffffffd590) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:4981 #3 0x0000555557659bad in paint_brush_stroke_add_step (C=0x7fffcdf1ca08, op=0x7fffa8794688, mouse_in=0x7fffffffd64c, pressure=1) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/paint_stroke.c:555 #4 0x000055555765bfb9 in paint_stroke_modal (C=0x7fffcdf1ca08, op=0x7fffa8794688, event=0x7fffae7ef088) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/paint_stroke.c:1302 #5 0x0000555557690f25 in sculpt_brush_stroke_invoke (C=0x7fffcdf1ca08, op=0x7fffa8794688, event=0x7fffae7ef088) at /home/eoin/Source/blender/blender-git/source/blender/editors/sculpt_paint/sculpt.c:5104 #6 0x000055555700d2ea in wm_operator_invoke (C=0x7fffcdf1ca08, ot=0x7fffc7a77108, event=0x7fffae7ef088, properties=0x7fffb1cc5908, reports=0x0, poll_only=false, use_last_properties=true) at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:1323 #7 0x000055555700ef94 in wm_handler_operator_call (C=0x7fffcdf1ca08, handlers=0x7fffc68dfa18, handler=0x7fffc694f288, event=0x7fffae7ef088, properties=0x7fffb1cc5908) at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:2041 #8 0x000055555700fa75 in wm_handlers_do_intern (C=0x7fffcdf1ca08, event=0x7fffae7ef088, handlers=0x7fffc68dfa18) at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:2343 #9 0x00005555570106f6 in wm_handlers_do (C=0x7fffcdf1ca08, event=0x7fffae7ef088, handlers=0x7fffc68dfa18) at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:2603 #10 0x0000555557011de6 in wm_event_do_handlers (C=0x7fffcdf1ca08) at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wm_event_system.c:3074 #11 0x00005555570065cb in WM_main (C=0x7fffcdf1ca08) ---Type <return> to continue, or q <return> to quit---q at /home/eoin/Source/blender/blender-git/source/blender/windowmanager/intern/wQuit ``` My attempts to try to fix this on my own were in vain. However, I found that the problem is likely due to an invalid pointer to the object's bounding box: ``` (gdb) p /s *ob->bb Cannot access memory at address 0x0 ``` `bbMin` and `bbMax` are thus invalid pointers and cannot be used in the following line: ``` start[dim] = (bbMin[dim] - orgLoc[dim] - radius) / step[dim]; ``` I would suggest checking that dyntopo is accurately creating and initializing bounding box data -- however, I'm not sure since I'm not familiar with the codebase.
Author

Added subscriber: @eoinoneill

Added subscriber: @eoinoneill
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Duplicate of #57070

Duplicate of #57070
Member

Closed as duplicate of #57070

Closed as duplicate of #57070
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
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#57988
No description provided.