Regression: Box Hide occasionally causes artifacts #121107
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#121107
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: Linux-6.8.6-200.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67
Blender Version
Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-04-25 19:53, hash:
095d37c186b6
Worked: version: 3.6.11, branch: blender-v3.6-release, commit date: 2024-04-15 07:27, hash:
0d97ea8e3dc2
Also tested and verified broken behavior on 4.1.1
Short description of error
Rapid Box Hide actions on a dense mesh can sometimes cause weird artifacts
Exact steps for others to reproduce the error
With a developer build, I get an assert crash on a
MutableSpan
operator[]
call.But the rest of the stacktrace provides nothing readable. I noticed that running blender with only a single thread seems to prevent the issue from occurring.
Running with a debugger gets this particular block as triggering the assert:
on
hide[i] = value
Adding this assert into
paint_hide.cc
invert_hide_update
shows the problem I think.I suspect that the usage of the the thread local vector in this way is not thread-safe for cases where there are fewer threads than PBVH nodes.
Adding this
Shows that multiple different nodes are using the same thread id and
thereforethe sameVector<bool>
reference.A dump of the data is in the attached
sorted_dump.tsv
Unable to confirm the assert (neither artifacts) in debug build:
71e7775bcbf4f53ffeade9b34f6e6a8c6946e0e0
Box Hide occasionally causes artifactsto Regression: Box Hide occasionally causes artifactsAlso cannot repro here
@Sean-Kim : maybe you can try bisecting this yourself?
@lichtwerk - Sure, I can bisect this. It's probably
4e66769ec0
, but I'll spend some time verifying that assumption.I'm not having much luck actually building that revision or surrounding ones with either a regular or lite build. In the recent sculpt module meeting, @HooglyBoogly said he would start looking at a fix for this, so I think it's probably just fine to remove the status tag on this altogether.