Search Issue Tracker
By Design
Votes
2
Found in
2021.2.0a1
2021.2.0b11
2022.1
Issue ID
1365562
Regression
Yes
[macOS] [Mobile] Shader compilation is failed due to Invalid Bytecode error when building with macOS Editor
How to reproduce:
1. Open the attached project "MacShaderCompilationIssue-2021.2.zip"
2. Open Build Settings and change to Android platform
3. In the Build Settings, press Build And Run
Expected result: The leaves on the tree are not displayed as image boxes
Actual result: The leaves on the tree are shown as image boxes
Reproducible with (Bytecode errors appear and shaders compiling fails): 2021.2.0a1, 2021.2.0b13, 2022.1.0a10
Not reproducible with (Bytecode errors appear and shaders compile successfully): 2021.1.0a10, 2021.1.22f1
Could not test with: 2019.4.30f1, 2020.3.19f1, 2021.1.0a9 (shader errors)
Note:
- Does not reproduce with Windows version of Editor
- Only reproduces when building for Android or iOS platform
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2022.1.X):
The root cause was in the shader code itself.