crash, texture paint mode #57157
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#57157
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
windows 10 radeon HD 7670
Blender Version
Broken: blender-2.80.0-git.121c94b0829-windows64
Short description of error
crash on texture paint mode
Exact steps for others to reproduce the error
the console display this:
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF669169C40 (the address always changes)
system-info.txt
debugmodeall.txt
Added subscriber: @nokipaike
Added subscriber: @lichtwerk
Confirmed, will have a look later...
Added subscriber: @JJones
My observation: ps.mvert_eval.co- [x] is getting corrupted in a memcpy during python gui call.
Steps:
Put a breakpoint at line 3387 of blender/editors/sculpt_paint/paint_image_proj.c
Create a single triangle instead in step 1 ( fewest vertices ).
In Step 4 you'll trigger the breakpoint.
In debugger local vars, go to ps.mvert_eval.co and set a data breakpoint on that data.
In step 5 you'll trigger the data breakpoint - this is where the corruption occurs:
Now continue on to step 6 and you'll hit the breakpoint again. The lt_vtri triplet it builds is corrupted because it was built from the corrupted ps.mvert_eval.co triplet which occurred at step 4.
the following edited for conciseness:
how is the situation with this bug?
I personally can not verify the event anymore,
but because now when you enter texture paint mode in the 3d view you have to select the painting brush tool for the first paint
so I can not figure out if this bug still exists or not
Yes, Bug is still there:
I updated and used my test file to get crash.. bug is still there. I also tried the original UVsphere steps from scratch and it didn't immediately crash.. but didn't paint either. I then rotated the sphere a bit and tried to draw and then it crashed.
COW:
I had done a bit more debugging since my last post and saw that the context was getting corrupted.. and the MVert data was being reloaded from there. I was looking further into it and it was leading me into the copy on write (COW) stuff which is new and a work in progress. This bug may be due to the unfinished state of COW or due to a memory handling bug or ? In any case I would expect it to cause crashes elsewhere as well.
I hope to get time to look into this bug later this week.
Added subscriber: @Sergey
Sorry this has been lying around for quite some time (it slipped under my radar...)
Also big thanx for doing the additional debugging!
I can confirm this is still happening with the same backtrace, but wont have enough time to dig deep enough into CoW atm.
I'm stepping down and would kindly ask @Sergey to have a look.
Added subscriber: @dfelinto
This seems similar to the underlying issue here: #57565
This bug is now fixed!
I was able to reproduce it before but not after this commit:
Thanks to Alexander Gavrilov angavrilov@gmail.com!
From his commit:
I assume I should leave it to Sergey or owner to mark resolved.
Changed status from 'Open' to: 'Resolved'