Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.1.6f1
2019.2.0a1
2019.3.0a1
Issue ID
1162577
Regression
Yes
Asset importer crashes when importing a shader and Unity freezes if you try to reimport it
Steps to reproduce:
1. Open the project attached by QA;
2. Reimport the shader.
Expected: Editor does not freeze, the shader is successfully reimported.
Actual: After opening a project, a message is thrown to the Console:
A default asset was created for 'Assets/testshader2.shader' because the asset importer crashed on it last time.
After trying to reimport the shader, Unity freezes.
Reproduced in: 2018.3.0a1, 2018.4.3f1, 2019.1.9f1, 2019.2.0b7, 2019.3.0a7
Not reproduced in: 2017.4.29f1*
Notes: User reports crashing, but during the testing, it did not emerge.
*Import fails with "Assertion failed: Shader Compiler Socket Exception: Terminating shader compiler process, 0 retries left"
"Assertion failed: Shader compiler: internal error compiling shader snippet type=1 platform=4: Protocol error - failed to read correct magic number"
After some time
-
shubhamswaraj2021
Aug 18, 2020 11:18
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
-
Wesley382
Apr 02, 2020 17:57
I may assist you to import it in a single file. So then it will be easy for you to use the https://bestonlinewritingservice.com/biography-writing-services/ and edit you file in the node or something like that. Testing is important to do at first.
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
- [URP] Incorrect tree shadows are shown in Play Mode when SRP Batcher is enabled
- [iOS][UaaL] After unloading a Unity scene, memory remains allocated depending on how much memory was used in the scene
- [WebGL] "Unable to open archive file" error is thrown in Build when "Compress Local Catalog" option is enabled for Addressables
- editor crashes on trying to open project on a very long path
- Performance in Game View is significantly impacted by Gfx.WaitForPresentOnGfxThread when a second monitor is connected
Resolution Note (fix version 2019.3):
Shader compiler connection simply times out here as the shader takes very long time to compile. Removing the [unroll] directives makes the shader to compile ok in a couple of seconds. However, if this level of compilation complexity is absolutely needed, one can manually override the timeout limit via an environment variable named UNITY_SHADER_COMPILER_TASK_TIMEOUT_MINUTES
We will be improving the error messaging on compiler timeouts.