Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2019.4.X, 2020.1.X, 2020.2.X
Votes
0
Found in
2020.1
2020.2
2020.2.0a14
Issue ID
1256838
Regression
No
[Vulkan][Windows][Android] Shader compilation errors are thrown after building Android player
How to reproduce:
1. Open the attached project
2. Make sure platform set to Android
3. Go to TestRunner window (Window->General->TestRunner)
4. Run PlayMode tests by clicking "Run all in player(Android)"
Expected results: Player build succeeds
Actual results: Player build fails with errors
Reproducible with: 2020.1.0b13, 2020.2.a14
Notes:
- The run succeeds the second time
- Reproducible after reopening project
- Reproducible on Windows Vulkan
Occuring errors:
Shader error in 'FTPCustom/Tessellation/Bumped Specular (displacement)': '' : syntax error, unexpected LEFT_BRACKET at line 39 (on vulkan)
7 errors
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:334)
Player build failed
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:334)
TestLaunchFailedException: Player build failed
UnityEditor.TestTools.TestRunner.PlayerLauncher.Run () (at Library/PackageCache/com.unity.test-framework@1.1.14/UnityEditor.TestRunner/TestLaunchers/PlayerLauncher.cs:86)
UnityEditor.TestTools.TestRunner.TestRun.Tasks.LegacyPlayerRunTask+<Execute>d__0.MoveNext () (at Library/PackageCache/com.unity.test-framework@1.1.14/UnityEditor.TestRunner/TestRun/Tasks/LegacyPlayerRunTask.cs:14)
UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner.ExecuteStep () (at Library/PackageCache/com.unity.test-framework@1.1.14/UnityEditor.TestRunner/TestRun/TestJobRunner.cs:124)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:334)
An unexpected error happened while running tests.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:334)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
- Error “Value cannot be null. Parameter name: key UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” thrown and Addressables build fails when "Include in Build" is disabled and using Addressables For Android package
- “error CS0433: The type 'CodeBinaryOperatorType' exists in both 'System.CodeDom and 'System" compilation errors are thrown when opening a specific project
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
Add comment