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
- Big chunk of "Untracked" memory in the Memory Profiler screenshot when a custom .obj file is loaded while in Play Mode
- Video contains artifacts when played in the Video Preview section in the Inspector Window
- UI Toolkit Slider "Fill" option doesn't invert when "Inverted" option is selected
- The Random Value option in the Set Attribute Block gets disabled and the "B"/"Max" value lost when upgrading to Unity 6
- Crash in ParallelSortExtensions::ParallelSort
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