Shader Nodetree Error: Invalid implicit socket conversion: Shader -> Color #102789

Open
opened 2022-11-26 15:31:36 +01:00 by fv · 22 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.33

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: I don't know but the problem is also present in the version 3.0.0

Short description of error

Read prefs: C:\Users\rfnei\AppData\Roaming\Blender Foundation\Blender\3.3\config\userpref.blend
Shader Nodetree Error: Invalid implicit socket conversion
ERROR (gpu.shader): GPU_material_compile FragShader:
    |

 7164 | invert(float_from_Closure(tmp34), node_tree.u36, tmp37);
    |
    | Error: C1503: undefined variable "float_from_Closure"


Shader Nodetree Error: Invalid implicit socket conversion
ERROR (gpu.shader): GPU_material_compile FragShader:
    |

 7164 | invert(node_tree.u35, vec4_from_Closure(tmp34), tmp37);
    |
    | Error: C1503: undefined variable "vec4_from_Closure"

Shader Nodetree Error: Invalid implicit socket conversion
Shader Nodetree Error: Invalid implicit socket conversion

Exact steps for others to reproduce the error

  1. EEVEE render
  2. Shader editor: put some shader socket to color socket
  3. Check the console
**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.33 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: I don't know but the problem is also present in the version 3.0.0 **Short description of error** ```lang=glsl Read prefs: C:\Users\rfnei\AppData\Roaming\Blender Foundation\Blender\3.3\config\userpref.blend Shader Nodetree Error: Invalid implicit socket conversion ERROR (gpu.shader): GPU_material_compile FragShader: | 7164 | invert(float_from_Closure(tmp34), node_tree.u36, tmp37); | | Error: C1503: undefined variable "float_from_Closure" Shader Nodetree Error: Invalid implicit socket conversion ERROR (gpu.shader): GPU_material_compile FragShader: | 7164 | invert(node_tree.u35, vec4_from_Closure(tmp34), tmp37); | | Error: C1503: undefined variable "vec4_from_Closure" Shader Nodetree Error: Invalid implicit socket conversion Shader Nodetree Error: Invalid implicit socket conversion ``` **Exact steps for others to reproduce the error** 1. EEVEE render 2. Shader editor: put some shader socket to color socket 3. Check the console
Author

Added subscriber: @fv

Added subscriber: @fv

Added subscriber: @mod_moder

Added subscriber: @mod_moder

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Hello. Please add info from image.png
And also little describe context (render engine, node tree example, ...)

Hello. Please add info from ![image.png](https://archive.blender.org/developer/F13771057/image.png) And also little describe context (render engine, node tree example, ...)
Author

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.33

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: I don't know but the problem is also present in the version 3.0.0

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.33 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: I don't know but the problem is also present in the version 3.0.0

Yes, there are still a few left. Can you test it on the new version 3.3 (downloaded from the site), and also describe directly your steps to reproduce

Yes, there are still a few left. Can you test it on the new version 3.3 (downloaded from the site), and also describe directly your steps to reproduce
Author

I think this is the new one, I downloaded it today, few hours ago.

Step to reproduce :
(coming soon)

I think this is the new one, I downloaded it today, few hours ago. Step to reproduce : (coming soon)

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

I can't confirn in
3.3.2 Release Candidate, branch: master, commit date: 2022-11-17 15:31, hash: 15b2b53b87

I can't confirn in 3.3.2 Release Candidate, branch: master, commit date: 2022-11-17 15:31, hash: `15b2b53b87`
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Hi, thanks for the report. Please provide the exact way of reproducing the error

Hi, thanks for the report. Please provide the exact way of reproducing the error

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Render engin: EEVEE
Node tree: Something shader put in Invert

image.png

Read prefs: C:\Users\rfnei\AppData\Roaming\Blender Foundation\Blender\3.3\config\userpref.blend
Shader Nodetree Error: Invalid implicit socket conversion
ERROR (gpu.shader): GPU_material_compile FragShader:
      |
 7164 | invert(float_from_Closure(tmp34), node_tree.u36, tmp37);
      |
      | Error: C1503: undefined variable "float_from_Closure"

Shader Nodetree Error: Invalid implicit socket conversion
ERROR (gpu.shader): GPU_material_compile FragShader:
      |
 7164 | invert(node_tree.u35, vec4_from_Closure(tmp34), tmp37);
      |
      | Error: C1503: undefined variable "vec4_from_Closure"

Shader Nodetree Error: Invalid implicit socket conversion
Shader Nodetree Error: Invalid implicit socket conversion
Render engin: EEVEE Node tree: Something shader put in Invert ![image.png](https://archive.blender.org/developer/F13975096/image.png) ``` Read prefs: C:\Users\rfnei\AppData\Roaming\Blender Foundation\Blender\3.3\config\userpref.blend Shader Nodetree Error: Invalid implicit socket conversion ERROR (gpu.shader): GPU_material_compile FragShader: | 7164 | invert(float_from_Closure(tmp34), node_tree.u36, tmp37); | | Error: C1503: undefined variable "float_from_Closure" Shader Nodetree Error: Invalid implicit socket conversion ERROR (gpu.shader): GPU_material_compile FragShader: | 7164 | invert(node_tree.u35, vec4_from_Closure(tmp34), tmp37); | | Error: C1503: undefined variable "vec4_from_Closure" Shader Nodetree Error: Invalid implicit socket conversion Shader Nodetree Error: Invalid implicit socket conversion ```

3.5, 3.4, 3.3

3.5, 3.4, 3.3

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Iliya Katushenock changed title from undefined variable "vec4_from_Closure" when using Invert Node to Shader Nodetree Error: Invalid implicit socket conversion: Shader -> Color 2022-11-29 08:55:24 +01:00

Added subscriber: @Teutonick

Added subscriber: @Teutonick

Have the same error. Blender crashes every time i want to texture paint . Regulary and stable reproduce on 3.1, 3.2, 3.3, 3.4, 3.5 (alfa)

Shader Nodetree Error: Invalid implicit socket conversion

blender_debug_output.txt

blender_system_info.txt

Have the same error. Blender crashes every time i want to texture paint . Regulary and stable reproduce on 3.1, 3.2, 3.3, 3.4, 3.5 (alfa) Shader Nodetree Error: Invalid implicit socket conversion [blender_debug_output.txt](https://archive.blender.org/developer/F14053632/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F14053633/blender_system_info.txt)
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:28 +01:00

@fv @Teutonick Still relevant for 3.6?

@fv @Teutonick Still relevant for 3.6?
Iliya Katushenock added
Status
Needs Information from User
and removed
Status
Needs Info from Developers
labels 2023-02-22 13:11:27 +01:00
Member

@mod_moder : does this mean you cannot repro yourself anymore?
How about the others?

Would be good to check 3.5, 3.6 and 3.3 LTS builds from https://builder.blender.org/download/daily/

@mod_moder : does this mean you cannot repro yourself anymore? How about the others? Would be good to check 3.5, 3.6 and 3.3 LTS builds from https://builder.blender.org/download/daily/

@mod_moder I didn’t check then, but yes, it’s 3.6

Shader Nodetree Error: Invalid implicit socket conversion
ERROR (gpu.shader): GPU_material_compile FragShader:
      |
 8602 | curves_combined_rgb(node_tree.u35, vec4_from_Closure(tmp34), cons37, cons38, samp0, cons40, node_tree.u41, node_tree.u42, node_tree.u43, node_tree.u44, tmp45);
      |
      | Error: C1503: undefined variable "vec4_from_Closure"
@mod_moder I didn’t check then, but yes, it’s 3.6 ``` Shader Nodetree Error: Invalid implicit socket conversion ERROR (gpu.shader): GPU_material_compile FragShader: | 8602 | curves_combined_rgb(node_tree.u35, vec4_from_Closure(tmp34), cons37, cons38, samp0, cons40, node_tree.u41, node_tree.u42, node_tree.u43, node_tree.u44, tmp45); | | Error: C1503: undefined variable "vec4_from_Closure" ```
Member

Can confirm, too

Shader Nodetree Error: Invalid implicit socket conversion
ERROR (gpu.shader): GPU_material_compile FragShader: 
      | 
 2119 |   vec3 V = cameraVec(g_data.P);
      |                      ^
      | gpu_shader_material_principled.glsl:60:22: `g_data' used uninitialized
      | 
 2304 |   N = g_data.N;
      |       ^
      | gpu_shader_material_world_normals.glsl:4:7: `g_data' used uninitialized
      | 
 8350 | vec4 tmp37;
      |                           ^
      | Error: no function with name 'vec4_from_Closure'
      | 
      | vec4 tmp37;
      |  ^
      | Error: no matching function for call to `invert(float, error, vec4)'; candidates are:
      | Error: void invert(float, vec4, vec4)
      | 
 8353 | Closure tmp41;
      |                ^
      | `tmp37' used uninitialized

Note: you should probably use a Shader to RGB for anything like this, so this is not something to be supported the way it is used here, the Eevee module will have to decide if shader compiling could fail more gracefully...

Can confirm, too ``` Shader Nodetree Error: Invalid implicit socket conversion ERROR (gpu.shader): GPU_material_compile FragShader: | 2119 | vec3 V = cameraVec(g_data.P); | ^ | gpu_shader_material_principled.glsl:60:22: `g_data' used uninitialized | 2304 | N = g_data.N; | ^ | gpu_shader_material_world_normals.glsl:4:7: `g_data' used uninitialized | 8350 | vec4 tmp37; | ^ | Error: no function with name 'vec4_from_Closure' | | vec4 tmp37; | ^ | Error: no matching function for call to `invert(float, error, vec4)'; candidates are: | Error: void invert(float, vec4, vec4) | 8353 | Closure tmp41; | ^ | `tmp37' used uninitialized ``` Note: you should probably use a `Shader to RGB` for anything like this, so this is not something to be supported the way it is used here, the `Eevee` module will have to decide if shader compiling could fail more gracefully...
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
5 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#102789
No description provided.