Blender Crashing When Painting Stroke into a "Moving Animated Character" (heap-use-after-free) #75045

Open
opened 2020-03-24 01:27:58 +01:00 by Jimmy Gunawan · 20 comments

Blender Version
Broken: 4.0 alpha
Broken: version: 2.79 - 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: 375c7dc4ca
Worked: Never

Short description of error
I have this experiment of making LIVE talking head, via OSC. And I noticed that if I tried painting a stroke on a talking moving animated head, it will crash. Even with timeline not running.

I got a video (Might need iPhone X with MOM addon to test this....) :
https://youtu.be/jhHdG6ZXFDU

Exact steps for others to reproduce the error

**Blender Version** Broken: 4.0 alpha Broken: version: 2.79 - 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: `375c7dc4ca` Worked: Never **Short description of error** I have this experiment of making LIVE talking head, via OSC. And I noticed that if I tried painting a stroke on a talking moving animated head, it will crash. Even with timeline not running. I got a video (Might need iPhone X with MOM addon to test this....) : https://youtu.be/jhHdG6ZXFDU **Exact steps for others to reproduce the error** - Open attached file - Run animation - Paint over the animated object [paint_animated_shapekey_bug.blend](https://archive.blender.org/developer/F8426993/paint_animated_shapekey_bug.blend)
Author

Added subscriber: @BlenderSushiGuy

Added subscriber: @BlenderSushiGuy

#92358 was marked as duplicate of this issue

#92358 was marked as duplicate of this issue

#84532 was marked as duplicate of this issue

#84532 was marked as duplicate of this issue
Member

Added subscriber: @EitanSomething

Added subscriber: @EitanSomething
Member

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

Changed status from 'Needs Triage' to: 'Archived'
Eitan Traurig self-assigned this 2020-03-24 01:36:14 +01:00
Member

This report is being closed because the addon is not maintained by blender. Please report the bug to the developer of the addon.

This report is being closed because the addon is not maintained by blender. Please report the bug to the developer of the addon.
Author

This is not BPainter app, it's actually Blender normal Texture Painting causing Blender to crash when painting on animated shapes.

This is not BPainter app, it's actually Blender normal Texture Painting causing Blender to crash when painting on animated shapes.
Member

Can you provide the blend file

Can you provide the blend file
Member

I am unable to get blender to crash. The crash is probably related to the MOM addon and should be reported to the MOM developers

I am unable to get blender to crash. The crash is probably related to the MOM addon and should be reported to the MOM developers
Author

It's not MOM addon or BPainter addo, it's when you paint on 3D mesh with animated Shapekeys, Blender crashes. I can 100% confirm this.

It's not MOM addon or BPainter addo, it's when you paint on 3D mesh with animated Shapekeys, Blender crashes. I can 100% confirm this.
Member

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

Changed status from 'Archived' to: 'Needs Triage'
Eitan Traurig removed their assignment 2020-03-24 05:14:37 +01:00
Member

Sorry for closing prematurely. I will let someone more familiar with shapekeys take a look at it.

Sorry for closing prematurely. I will let someone more familiar with shapekeys take a look at it.
Member

Can you test to see if this crashes in 2.83. https://builder.blender.org/download/

Can you test to see if this crashes in 2.83. https://builder.blender.org/download/
Author

Hi Eitan, I tested with 2.83 Alpha latest, and still confirmed crashing.

Proof video:
https://youtu.be/dcDFYNlQmt4

Hi Eitan, I tested with 2.83 Alpha latest, and still confirmed crashing. Proof video: https://youtu.be/dcDFYNlQmt4
Author

What interesting is that this crashing bug / limitation existed since 2.79, I just realised. Ok, if we cannot actually paint on animated shapekeys / while timeline is running, it should not crash at least. Funny thing: we can "stamp" click but not brush stroke or moving it. Maybe it should be possible to paint this way, it would be really quite cool.

What interesting is that this crashing bug / limitation existed since 2.79, I just realised. Ok, if we cannot actually paint on animated shapekeys / while timeline is running, it should not crash at least. Funny thing: we can "stamp" click but not brush stroke or moving it. Maybe it should be possible to paint this way, it would be really quite cool.

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

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

heap-use-after-free

1 project_paint_face_init   paint_image_proj.c 3013 0x43bd12f      
2 project_bucket_init       paint_image_proj.c 3522 0x43beaed      
3 do_projectpaint_thread    paint_image_proj.c 5250 0x43c3eac      
4 task_scheduler_thread_run task.c             450  0xa8b2ab1      
5 start_thread                                      0x7ffff7c754e2 
6 clone                                             0x7ffff00206d3 

Full ASAN output here P1317

heap-use-after-free ``` 1 project_paint_face_init paint_image_proj.c 3013 0x43bd12f 2 project_bucket_init paint_image_proj.c 3522 0x43beaed 3 do_projectpaint_thread paint_image_proj.c 5250 0x43c3eac 4 task_scheduler_thread_run task.c 450 0xa8b2ab1 5 start_thread 0x7ffff7c754e2 6 clone 0x7ffff00206d3 ``` Full ASAN output here [P1317](https://archive.blender.org/developer/P1317.txt)
Philipp Oeser changed title from Blender Crashing When Painting Stroke into a "Moving Animated Character" to Blender Crashing When Painting Stroke into a "Moving Animated Character" (heap-use-after-free) 2020-03-30 18:23:51 +02:00
Member

Added subscribers: @Diogo_Valadares, @rjg

Added subscribers: @Diogo_Valadares, @rjg
Member

Added subscribers: @Odog8, @PratikPB2123

Added subscribers: @Odog8, @PratikPB2123
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:35 +01:00
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
6 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#75045
No description provided.