Generated Grid image textures deadlock background Cycles renders. #85287
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#85287
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: Fedora 32 x86_64
Graphics card: GeForce GTX 1060
Blender Version
Broken:
a9b53daf23
)213f8294b5
5be9ef4177
3e85bb34d0
Worked:
Short description of error
Background Cycles renders (to update material preview I think) randomly deadlock if Generated textures of Grid type are present. This can happen when editing materials in the Shading workspace.
Exact steps for others to reproduce the error
Open the attached file and start randomly dragging any of the sliders. Blender should freeze after a short while; there is even a small chance it can happen immediately after opening the file.
test-image-deadlock.blend
Stack traces captured with a local debug build: one thread holds the image manager mutex and is stuck yield-looping in the TBB scheduler code waiting for its tasks to complete, while others are waiting for the mutex.
deadlock.txt
Added subscriber: @angavrilov
Added subscriber: @brecht
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @rlneumiller
Also broken on Windows 10 1909 with Blender version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash:
0330d1af29
, type: ReleaseBisect points to
e50f1ddc65
I haven't been able to reproduce this myself on Linux. But from the backtrace and the bisect, I'm guessing it's the same issue as D7688.
Can anyone test if this works?
Unfortunately this doesn't seem to help for me.
It seems to me this is quite a weird failure that isn't caused by obvious stuff like recursively locking non-recursive mutexes: the parallel execution that gets stuck in wait simply manipulates data and as far as I can tell shouldn't be waiting on any mutexes at all, so I see no reason outside of TBB internals themselves for it to be stuck...
Since you can't reproduce, I wonder if it could depend on TBB version? I have 2020.2 from Fedora 32 distribution. Or if you are using a debug build, do you have kernels built so it uses GPU rendering? More frequently completing renders increase the probability of the deadlock (I actually had trouble reproducing with a debug build because of missing kernels before).
No noticible change here either (Windows 10 64bit 1909)
Note that I've discovered a potentially related issue as follows:
Load the blend file (same as the original) test-image-deadlock.blend.
Change the Shader editor in the viewport to the timeline editor
Drag the sliders in the Material properties panel
After some time (when the repro occurs) the preview image in the Material properties panel will cease to update
Switching the Timeline editor back to the Shader editor now will deadlock blender
Image shows that the Preview has not updated, but Blender UI continues to respond to user input.
It is the same issue: the preview image deadlocks first in the background, and then the shader editor locks the main UI thread on the same mutex.
This issue was referenced by
7149ccee57
Changed status from 'Confirmed' to: 'Resolved'