Grease pencil extrude generates broken vertex weights #62872
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#62872
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Operating system: Ubuntu 18.04
Graphics card: Radeon RX 580 Series
Blender Version
Blender 2.80 (sub 51), Commit date: 2019-03-22 21:47, Hash
faecac0b5e
Blender 2.80 (sub 51), Commit date: 2019-03-21 23:13, Hash
1ae6aaad43
Both recent versions have this bug
Short description of error
Blender sometimes crashes while pressing ctrl+z after any action. Hard to tell exact steps to reproduce bug. In my most recent cases it crashed 1) after I pressed ctrl+z after drawing a grease pencil stroke, 2) after I selected some objects and bones and pressed ctrl+z.
Here are --debug-gpu logs for two recent releases of blender 2.8 and console output
test.crash.txt
test2.crash.txt
bl debug log
Added subscriber: @AnnaIv
Added subscriber: @matc
Does
./blender --debug-gpu
always crash for you? What kernel version are you currently using? (uname -a
)Yes, it always crashes in debug-gpu mode. I mean, it may work okay for some time, but after I do some action (not some particular action, as I can see) and press ctrl+z it may crash blender.
**My kernel version is:**Linux 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I was drawing my character and managed to make extremely crashy blender file.
How to reproduce crash:
test crash.blend
Added subscriber: @ZedDB
I think that you might need newer GPU drivers. The ones that come with 18.04 per default is ancient by now.
What is the output of
glxinfo | grep OpenGL
?Added subscriber: @Sergey
Actually, nevermind I can reproduce this crash on my end too.
If I open that file and select the character and go into GP draw mode, draw 10 strokes or so and then undo a bunch I get the following segfault:
@Sergey is this for you? It seem to be DEG stuff.
Currently I'm using proprietary AMD Radeon drivers "amdgpu-pro-18.40-676022-ubuntu-18.04"
I'm also on AMD Ryzen 2600x processor.
It takes me drawing one grease pencil stroke to instantly crash this file after pressing ctrl+z
My error does not appear to be related to DEG. I had to draw two strokes and hit undo twice to trigger the crash. (Fedora with 4.20.16 kernel). I was not able to trigger the crash on windows 10 .
Added subscriber: @intrigus-3
Added subscriber: @antoniov
This goes deeper into grease pencil code, which does not handle vertex groups weights correctly in some cases.
For example, extrude operator leaves two stroke points which points to the same weights array.
@antoniov, there is missing duplication of
dw
ingpencil_add_move_points()
. Simply open the file from below, extrude, save and reload and see heap-use-after-free indirect_link_dverts()
.gpencil_stroke_extrude.blend
P.S. Not sure we can easily fix existing files, so attaching a corrected one which should have all pointers assigned correctly.test crash fixed.blend
@Sergey Thanks for the info, I think I can fix it.
With this change it's possible to work with the original file. There are 10 blocks ("Data from GD") remaining, that are not freed until the file has been saved once.
Edit: I did a quick test on windows 10. The patch removes the
Couldn't unmap memory
errors when opening the file. The 10 blocks remain unfreed, until once saved and blender reopened.Added subscriber: @brecht
Changed status from 'Open' to: 'Resolved'
With the extrude bug fixed I think we can close this issue.
Blender 2.8 "ctrl+z" crashes, segmentation faultto Grease pencil extrude generates broken vertex weights