Weird Crash while sculpting #97235

Closed
opened 2022-04-11 08:28:32 +02:00 by Marc Robert · 21 comments

System Information
Operating system: Windows-11-11.0.22000.469-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 770/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: c77597cd0e
Worked: (newest version of Blender that worked as expected)

Short description of error
Hello, Blender crashes randomly on my sculpt, happened roughly 2-3 times within 1 hour.
I didn't manage to notice what was actively causing it... So it's kinda tricky to reproduce.

This happened as well on version 3.0.0 (with the same file)

Exact steps for others to reproduce the error
Sculpting, grabing, smoothing the mesh.
sclpt_head.7z

**System Information** Operating system: Windows-11-11.0.22000.469-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 770/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: `c77597cd0e` Worked: (newest version of Blender that worked as expected) **Short description of error** Hello, Blender crashes randomly on my sculpt, happened roughly 2-3 times within 1 hour. I didn't manage to notice what was actively causing it... So it's kinda tricky to reproduce. This happened as well on version 3.0.0 (with the same file) **Exact steps for others to reproduce the error** Sculpting, grabing, smoothing the mesh. [sclpt_head.7z](https://archive.blender.org/developer/F12994571/sclpt_head.7z)
Author

Added subscriber: @trebor777

Added subscriber: @trebor777

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I cannot reproduce the problem.
Can you try running blender in debug mode? Perhaps some information in the logs can help identify the problem.

To run in debug mode, in the Blender's installation directory, double click on the blender_debug_gpu.cmd.
Try to reproduce the error again.
Once it crashes, the Windows Explorer should open and show you up to two files, a debug log and the system information.
Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop.
Please also upload the crash log located in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer).
2019_12_04_upload_icon_developer_blender_org.png

I cannot reproduce the problem. Can you try running blender in debug mode? Perhaps some information in the logs can help identify the problem. To run in `debug mode`, in the Blender's installation directory, double click on the `blender_debug_gpu.cmd`. Try to reproduce the error again. Once it crashes, the Windows Explorer should open and show you up to two files, a `debug log` and the `system information`. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in `C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt` (or simply type `%TEMP%` into the path bar of the Windows Explorer). ![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)
Author

Thanks for looking at it.
It's pretty weird indeed. I'll be sure to try it out in debug mode and give you the log files.

Thanks for looking at it. It's pretty weird indeed. I'll be sure to try it out in debug mode and give you the log files.
Author

Hello again,
I've reproduced it with the crash with the debug mode.
Despite what the files say, I'm on Windows 11 ( was an upgrade from Win10) if that's of any use.blender_debug_output.txt
Here are the files

sclpt_head.crash.txt

blender_system_info.txt

Looking at the crash file, it's seems related to this issue.
https://developer.blender.org/T89164

I'll try to reproduce it with Smoothing/brush size

Hello again, I've reproduced it with the crash with the debug mode. Despite what the files say, I'm on Windows 11 ( was an upgrade from Win10) if that's of any use.[blender_debug_output.txt](https://archive.blender.org/developer/F12998607/blender_debug_output.txt) Here are the files [sclpt_head.crash.txt](https://archive.blender.org/developer/F12998606/sclpt_head.crash.txt) [blender_system_info.txt](https://archive.blender.org/developer/F12998608/blender_system_info.txt) Looking at the crash file, it's seems related to this issue. https://developer.blender.org/T89164 I'll try to reproduce it with Smoothing/brush size

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

Thanks for the logs.
In fact it is the same call stack as #89164 (Crash in sculpt mode using "Smooth" brush and tab with tablet stylus). The same do_enhance_details_brush_task_cb_ex callback.
Could it be that the fix did not solve 100% of the cases?
@lichtwerk, any thoughts?

Thanks for the logs. In fact it is the same call stack as #89164 (Crash in sculpt mode using "Smooth" brush and tab with tablet stylus). The same `do_enhance_details_brush_task_cb_ex` callback. Could it be that the fix did not solve 100% of the cases? @lichtwerk, any thoughts?
Member

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
Member

Hm, not sure (I cannot reproduce this yet and I also cannot reproduce #89164 anymore, so that should still be fixed).
The situation where detail_directions are not initialized should be resolved.

So without being able to reproduce with a debugger, I am unsure what the reason is.
Of course we could also try to narrow it down:

  • is this also happening in simpler files?
  • is this also happening without dyntopo?
  • is this also happening without pressure sensitivity?
  • is this happening anywhere on the model?

I know, this can be cumbersome on something that happens only occasionally.
@trebor777 : are you building your own blender? could run it in a debugger?

Hm, not sure (I cannot reproduce this yet and I also cannot reproduce #89164 anymore, so that should still be fixed). The situation where `detail_directions` are not initialized should be resolved. So without being able to reproduce with a debugger, I am unsure what the reason is. Of course we could also try to narrow it down: - is this also happening in simpler files? - is this also happening without dyntopo? - is this also happening without pressure sensitivity? - is this happening anywhere on the model? I know, this can be cumbersome on something that happens only occasionally. @trebor777 : are you building your own blender? could run it in a debugger?
Author

@lichtwerk : Sadly No I'm using the official build on Windows.
What I've noticed is that it's not immediate, it takes some time before it happens (I'd say around 10mins, sometimes more), which makes it pretty random. (memory related? undo? leak maybe?)

I'll try to identify steps when I get back to this personal project

@lichtwerk : Sadly No I'm using the official build on Windows. What I've noticed is that it's not immediate, it takes some time before it happens (I'd say around 10mins, sometimes more), which makes it pretty random. (memory related? undo? leak maybe?) I'll try to identify steps when I get back to this personal project
Author

@lichtwerk @mano-wii
2022-04-15 15-24-10.mkv
I've recorded myself while sculpting in order to catch it.

So in the video the crash happens right at the end. At the beginning i'm trying different things to repro it, then i move on to sculpting a bit. Smoothing some area with the SHIFT key and boom crash.

@lichtwerk @mano-wii [2022-04-15 15-24-10.mkv](https://archive.blender.org/developer/F13002765/2022-04-15_15-24-10.mkv) I've recorded myself while sculpting in order to catch it. So in the video the crash happens right at the end. At the beginning i'm trying different things to repro it, then i move on to sculpting a bit. Smoothing some area with the SHIFT key and boom crash.
Member

Added subscriber: @JosephEagar

Added subscriber: @JosephEagar
Member

Time for ASAN

Time for ASAN
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Does the crash happen only if dynamic topology is on?

Does the crash happen only if dynamic topology is on?
Author

Hello actually no, dynTopo is off

Hello actually no, dynTopo is off

This issue was referenced by bfb4dcaa1a

This issue was referenced by bfb4dcaa1a7ec5bfd2b25cf7aa5b6173d6c53358
Member

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

Changed status from 'Needs Triage' to: 'Resolved'
Joseph Eagar self-assigned this 2022-04-27 22:05:40 +02:00
Member

Okay I have hopefully fixed it. Please test.

Okay I have hopefully fixed it. Please test.
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#97235
No description provided.