Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4
2020.2.2f1
2020.3
2021.1
2021.2
Issue ID
1308947
Regression
Yes
Crash on vk::DecompressShader when loading an AssetBundle with AssetBundle.LoadFromFile() and using Vulkan Graphics API
Reproduction steps:
1. Download the attached project and two AssetBundles: "New Unity Project.zip", "CubeV1.assetbundle", "CubeV2.assetbundle"
2. Enter the Play Mode
3. Click on the "Open" button and select one of the aforementioned AssetBundles
Expected result: The AssetBundle is loaded and displayed
Actual result: Unity freezes or crashes with the stack trace below
Example of the stack trace:
#0 0x007f4892c0d980 in funlockfile
#1 0x007f4893f5b09d in smolv::GetDecodedBufferSize(void const*, unsigned long)
#2 0x007f4893eef7a1 in vk::DecompressShader(vk::ShaderSetHeader const*, VKShaderType, dynamic_array<unsigned int, 0ul>&)
#3 0x007f4893f0a1d8 in VKGpuProgram::Create(dynamic_array<unsigned char, 0ul> const&, CreateGpuProgramOutput&)
#4 0x007f4893e67027 in GfxCreateGpuProgramQueue::DequeueAll(GfxThreadableDevice*)
#5 0x007f48949d494c in GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)
Reproducible with: 2019.4.22f1, 2020.3.0f1, 2021.1.0b12, 2021.2.0a9
Could not test with: 2018.4 (Due to errors when opening the project)
Notes:
- Not reproducible on macOS
- Reproducible in Editor and Player on Linux and Windows with AssetBundle V1 on Windows and either version on Linux
- Sometimes the Editor freezes only after entering Play Mode the second time and attempting to load an AssetBundle again
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
- WebGL Player with WebGPU Graphics API fails to render Scene when custom Render Feature is used
- “EndLayoutGroup” error thrown when changing Shader Precision Model settings in Build Profiles window > Player Settings Overrides
- Button hover state uses default theme color when a custom .uss is applied
- Samples Showcase script warning does not clear after enabling required settings until GameObject is reselected
- VFX Particles receive shadow artifacts when using ShaderGraph with enabled shadows and Face Camera Plane Orient mode
Resolution Note (fix version 2021.2):
Fixed in version 2021.2.0a15
Resolution Note (fix version 2021.1):
Fixed in version 2021.1.5f1
Resolution Note (fix version 2020.3):
Fixed in version 2020.3.8f1
Resolution Note (fix version 2019.4):
Fixed in version 2019.4.28f1