How to reproduce:
1. Open the attached “IN-151097” project
2. In the menu bar, select “Bug Repro” and choose one of the methods:
- Get Global Vector with Out-of-Range ID
- Set Global Color with Out-of-Range ID
- Set Global Vector with Out-of-Range ID
3. Observe the crash
Reproducible with: 6000.0.0f1, 6000.0.82f1, 6000.3.23f1, 6000.5.10f1, 6000.6.0b10, 6000.7.0a5
Reproducible on: Ubuntu 24.04
Not reproducible on: MacOS 26.6 (M1)
First few lines of the stack trace:
#0 0x0070e03a445330 in (Unknown)
#1 0x005bc98f1275c4 in ShaderScripting::GetGlobalVector(int)
#2 0x005bc98fb14a38 in Shader_CUSTOM_GetGlobalVectorImpl(int, Vector4f&)
#3 0x00000040616064 in (wrapper managed-to-native) UnityEngine.Shader:GetGlobalVectorImpl_Injected (int,UnityEngine.Vector4&)
#4 0x00000040c9cecb in UnityEngine.Shader:GetGlobalVectorImpl (int)