GPU: Debug 'Shaders' Folder appearing in 3.6 &. 4.0 on Mac #109314

Closed
opened 2023-06-24 00:11:17 +02:00 by Guido · 0 comments

System Information
Operating system: macOS-13.4.1-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2

As mentioned by @brecht in #108357 I put it here into a new report.

Blender Version
Broken: version: 3.6.0 Release Candidate, branch: blender-v3.6-release, commit date: 2023-06-22 20:19, hash: fa1121765d53
I tested with vanilla blender 3.1.2, 3.2, 3.3.1, 3.4.1, 3.5, 3.6a, 3.6b &. 4.0.
The Shader folder ONLY gets build when starting up blender from Blender version 3.6alpha to 4.0

Short description of error

When I downloaded blender from blender.org to test , I placed the blender app on the desktop for a quick test.
So when I start blender from the desktop, a folder 'Shaders' will be created on the desktop with all shader files (see file).

Wouldn't it be better to place it here (see image): /Users/USERNAME/Library/Application\ Support/Blender/4.0

This happens in any folder 'Blender' is installed in & the compiled builds blender-git folder.
Happens with downloaded from blender.org versions as well as compiled/build versions.

Another try to fix it:

brew update && brew upgrade (Already up-to-date)

I updated to latest Xcode 14.3.1

I deleted the 'build_darwin' folder in 'blender-git' folder.

make update && make without problems. see 'build log.txt'

New 'Shaders' folder was build after starting of blender in the blender-git folder.

as you can see the '.cache/cyles/kernels/AMD_Radeon_Pro_5700_XT' folder is not updated (see date) after rendering in the 3dviewport. (I also tried deleting it but it will NOT be rebuild) BUT the uncompiled Shaders in the 'Shaders' folder will !?


@Michael-Parkin-White-Apple
Michael Parkin-White commented 2 weeks ago

Regarding the "Shaders" folder:

This is a debug export used to preview generated Metal shaders for the Metal viewport backend, but should only be a debug option. It is likely it became erroneously enabled in another PR while the option was toggled on for debugging.
This itself is not necessary and can be removed, and should also have no bearing on application behaviour.
Viewport shaders (EEVEE, UI, workbench etc) make use of the system shader cache, as these shaders tend to be small in size.
This is also unrelated to the Cycles shader cache which is in-part manually managed using Metal binary archives. Deleting the cycles shader cache can help if issues had previously occurred or the data was in some way corrupted.
Regarding the crash on exit, this is something I am looking into relating to the Metal viewport, and has a separate report (Crash on exit with Metal backend #108792)

Regarding the mentioned performance issues, I can't personally comment on this, as it is unclear if it's a specific regression or just highlighting something which is unexpectedly slow. However @Michael-Jones would be the correct person to look into this, if it is indeed caused by Metal Cycles.

**System Information** Operating system: macOS-13.4.1-x86_64-i386-64bit 64 Bits Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2 As mentioned by @brecht in https://projects.blender.org/blender/blender/issues/108357 I put it here into a new report. **Blender Version** Broken: version: 3.6.0 Release Candidate, branch: blender-v3.6-release, commit date: 2023-06-22 20:19, hash: `fa1121765d53` I tested with vanilla blender 3.1.2, 3.2, 3.3.1, 3.4.1, 3.5, 3.6a, 3.6b &. 4.0. The Shader folder ONLY gets build when starting up blender from Blender version 3.6alpha to 4.0 **Short description of error** When I downloaded blender from blender.org to test , I placed the blender app on the desktop for a quick test. So when I start blender from the desktop, a folder 'Shaders' will be created on the desktop with all shader files (see file). Wouldn't it be better to place it here (see image): /Users/USERNAME/Library/Application\ Support/Blender/4.0 This happens in any folder 'Blender' is installed in & the compiled builds blender-git folder. Happens with downloaded from blender.org versions as well as compiled/build versions. Another try to fix it: brew update && brew upgrade (Already up-to-date) I updated to latest Xcode 14.3.1 I deleted the 'build_darwin' folder in 'blender-git' folder. make update && make without problems. see 'build log.txt' New 'Shaders' folder was build after starting of blender in the blender-git folder. as you can see the '.cache/cyles/kernels/AMD_Radeon_Pro_5700_XT' folder is not updated (see date) after rendering in the 3dviewport. (I also tried deleting it but it will NOT be rebuild) BUT the uncompiled Shaders in the 'Shaders' folder will !? -------------------- @Michael-Parkin-White-Apple Michael Parkin-White commented 2 weeks ago Regarding the "Shaders" folder: This is a debug export used to preview generated Metal shaders for the Metal viewport backend, but should only be a debug option. It is likely it became erroneously enabled in another PR while the option was toggled on for debugging. This itself is not necessary and can be removed, and should also have no bearing on application behaviour. Viewport shaders (EEVEE, UI, workbench etc) make use of the system shader cache, as these shaders tend to be small in size. This is also unrelated to the Cycles shader cache which is in-part manually managed using Metal binary archives. Deleting the cycles shader cache can help if issues had previously occurred or the data was in some way corrupted. Regarding the crash on exit, this is something I am looking into relating to the Metal viewport, and has a separate report (Crash on exit with Metal backend #108792) Regarding the mentioned performance issues, I can't personally comment on this, as it is unclear if it's a specific regression or just highlighting something which is unexpectedly slow. However @Michael-Jones would be the correct person to look into this, if it is indeed caused by Metal Cycles.
Guido added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-06-24 00:11:18 +02:00
YimingWu added
Status
Needs Info from Developers
Platform
macOS
and removed
Status
Needs Triage
labels 2023-06-24 04:30:41 +02:00
Clément Foucault added this to the 3.6 LTS milestone 2023-06-24 10:47:15 +02:00
Clément Foucault added this to the EEVEE & Viewport project 2023-06-24 10:47:20 +02:00
Clément Foucault changed title from Unknown 'Shaders' - Folder will be build next to blender app when starting vanilla blender 3.1.2, 3.2, 3.3.1, 3.4.1, 3.5, 3.6a, 3.6b &. 4.0. --Intel MacOS-- to GPU: Debug 'Shaders' Folder appearing in 3.6 &. 4.0 on Mac 2023-06-24 10:51:34 +02:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-06-24 17:40:57 +02: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 Assignees
1 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#109314
No description provided.