Sculpt Dyntopo undo crash #55336
Labels
No Label
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Content
Type
Design
Type
Report
Type
To Do
Type
Web Development
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/blender-studio#55336
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender Version
Broken: 2.8 2891fb645b9
Short description of error
When using undo after sculpting with any brush with dyntopo turned on, Blender crashes.
Added subscriber: @JulienKaspar
blender/blender#58102 was marked as duplicate of this issue
Added subscriber: @klowner
I was digging into this a little today but couldn't quite determine how to fix the issue.
Here's an address-sanitizer dump of the crash:
https://gist.github.com/Klowner/dcb1155008452762be26e698d09cbbba
It looks like
sculpt_pbvh_clear()
frees the Object'sob->sculpt->pbvh
, but then then thedraw_manager_*
stuff still has a pointer to the freedpbvh
and attempts to read from it.The problem here is internally there are two undo timelines of undo history that get out of sync.
I've committed a fix for the common case that fails: - simple double free, and missing cow update: blender/blender@6242940639, blender/blender@d9d3e7778c.
However issues remain:
BLI_assert(!"Cannot drop BMLogEntry from middle");
.So I'd like to keep this open since the way undo and sculpt mode bmesh log should be made to work more reliably.
Added subscriber: @Pik-1
I can confirm the bug. It happens systematically to me when following these steps:
Last tested revision: blender/blender@1d4ad68198
Stacktrace and error:
System information:
Added subscribers: @eoinoneill, @lichtwerk
Did a completely clean build today (rebuilt the dependencies and everything), the issue seems to be gone.
Revision blender/blender@11f2c65128
Added subscriber: @jeacom
Hey, I wanna make a patch and submit for review but this problem is happening when I try to build blender for debugging.
I wanna make some changes to sculpt.c, should I just ignore or it can cause problems?
This issue was referenced by blender/blender@f87b93a567
This issue was referenced by blender/blender@06d1c2f737
Changed status from 'Open' to: 'Resolved'