Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.3.0p1
Issue ID
987070
Regression
No
[Shaders] ApplyMaterialPassWithCache crash when changing shader file while in Play mode
To reproduce:
1. Open project attached
2. Enter Play mode
3. Modify any shader file (WaterSurface.shader or WaterSimulation) in any way (example: commenting something)
Expected: editor doesn't crash
Actual: editor crash
Reproduced in: 2017.1.3p, 2017.2.1p3, 2017.3.0p4, 2018.1.0b5, 2018.3.0f2
Note: initially entering Play mode prints out console error:
"Shader error in 'Water/Simulation': invalid subscript 'a' at line 42 (on d3d11)
Compiling Vertex program
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (2018.2.X):
Bug case is very old (but certainly valid), we are in process to move custom render texture to C#. Feel free to reopen this bug for a more recent version if problem is still there and annoying.