Blender seems to crash in combination with the new undo system and dynatopo in sculpt mode #55051

Closed
opened 2018-05-13 11:46:11 +02:00 by Edward Agwi · 14 comments

System Information
Windows 10 / Nvidia GTX 970

Blender Version
Broken: 2.79-c84b8d4
Worked: 2.79b

If I'm in sculpt mode and use dynatopo and use Scrape/Peaks for example and undo it and sculpt again blender crashed everytime. I tested it also on a other PC(from a friend...Windows 7) on a blender build without any modfikations and it happen everytime.

  1. Start Blender
  2. Switch to sculpt mode and activate dynatopo
  3. Switch in the setting in dynatopo from relative detail du brush detail
  4. Switch to the Scrape/Peaks brush and flat the edge from the cube with it
  5. Undo the steps and try again to flatten something

It should crash than.

Here also a Video do demonstrate it twice:
https://youtu.be/l7tQMuqjCXY

Cheers!

**System Information** Windows 10 / Nvidia GTX 970 **Blender Version** Broken: 2.79-c84b8d4 Worked: 2.79b If I'm in sculpt mode and use dynatopo and use Scrape/Peaks for example and undo it and sculpt again blender crashed everytime. I tested it also on a other PC(from a friend...Windows 7) on a blender build without any modfikations and it happen everytime. 1. Start Blender 2. Switch to sculpt mode and activate dynatopo 3. Switch in the setting in dynatopo from relative detail du brush detail 4. Switch to the Scrape/Peaks brush and flat the edge from the cube with it 5. Undo the steps and try again to flatten something It should crash than. Here also a Video do demonstrate it twice: https://youtu.be/l7tQMuqjCXY Cheers!
Author

Added subscriber: @Shiv0r

Added subscriber: @Shiv0r

#55148 was marked as duplicate of this issue

#55148 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Campbell Barton was assigned by Philipp Oeser 2018-05-13 12:58:45 +02:00
Member

Can confirm the crash.

Seems to be related to the UNDO refactor.

1  BLI_mempool_len                 BLI_mempool.c     479  0x29e56c5 
2  BLI_ghash_free                  BLI_ghash.c       1014 0x29d91f2 
3  bm_log_entry_free               bmesh_log.c       411  0x21ce69f 
4  BM_log_entry_drop               bmesh_log.c       699  0x21d25cf 
5  sculpt_undo_free_list           sculpt_undo.c     619  0x1e43005 
6  sculpt_undosys_step_free        sculpt_undo.c     1052 0x1e45796 
7  undosys_step_free_and_unlink    undo_system.c     182  0x276d296 
8  BKE_undosys_step_push_with_type undo_system.c     398  0x276e02a 
9  BKE_undosys_step_push           undo_system.c     448  0x276e343 
10 sculpt_undo_push_end            sculpt_undo.c     998  0x1e455fe 
11 sculpt_stroke_done              sculpt.c          5040 0x1e3eae8 
12 stroke_done                     paint_stroke.c    754  0x1e0bc7f 
13 paint_stroke_modal              paint_stroke.c    1176 0x1e0cfa8 

GHash->entrypool is NULL here.

There are a couple of open/confirmed issues with the UNDO refactor, I'll go over them again and see if these tasks can be merged.

Can confirm the crash. Seems to be related to the UNDO refactor. ``` 1 BLI_mempool_len BLI_mempool.c 479 0x29e56c5 2 BLI_ghash_free BLI_ghash.c 1014 0x29d91f2 3 bm_log_entry_free bmesh_log.c 411 0x21ce69f 4 BM_log_entry_drop bmesh_log.c 699 0x21d25cf 5 sculpt_undo_free_list sculpt_undo.c 619 0x1e43005 6 sculpt_undosys_step_free sculpt_undo.c 1052 0x1e45796 7 undosys_step_free_and_unlink undo_system.c 182 0x276d296 8 BKE_undosys_step_push_with_type undo_system.c 398 0x276e02a 9 BKE_undosys_step_push undo_system.c 448 0x276e343 10 sculpt_undo_push_end sculpt_undo.c 998 0x1e455fe 11 sculpt_stroke_done sculpt.c 5040 0x1e3eae8 12 stroke_done paint_stroke.c 754 0x1e0bc7f 13 paint_stroke_modal paint_stroke.c 1176 0x1e0cfa8 ``` GHash->entrypool is NULL here. There are a couple of open/confirmed issues with the UNDO refactor, I'll go over them again and see if these tasks can be merged.
Member

#55033 is pretty similar

#55033 is pretty similar

Added subscriber: @TomG

Added subscriber: @TomG

I can confirm this is happening.

I can confirm this is happening.
Member

Added subscriber: @kopias

Added subscriber: @kopias
Member

Added subscribers: @YegorSmirnov, @czarek

Added subscribers: @YegorSmirnov, @czarek
Member

There have just been two fixes regarding sculpt/dyntopo (5330f1c5d1, 6242940639)
With these changes I cant reproduce this anymore (thanx @Campbell Barton (campbellbarton)! )

So @Shiv0r, @TomG, @czarek : could you check master build from https://builder.blender.org/download? (pretty sure this should be resolved there) and please report back if this indeed fixes it for you...

Marking as incomplete for the time being...

There have just been two fixes regarding sculpt/dyntopo (5330f1c5d1, 6242940639) With these changes I cant reproduce this anymore (thanx @Campbell Barton (campbellbarton)! ) So @Shiv0r, @TomG, @czarek : could you check master build from https://builder.blender.org/download? (pretty sure this should be resolved there) and please report back if this indeed fixes it for you... Marking as incomplete for the time being...

Have just tested the latest master and the bug is gone.

Have just tested the latest master and the bug is gone.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Glad to hear! Closing then.

Glad to hear! Closing then.

Thank you!

Thank you!
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#55051
No description provided.