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

Asset Bundles

-

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

  1. Resolution Note (fix version 2021.2):

    Fixed in version 2021.2.0a15

  2. Resolution Note (fix version 2021.1):

    Fixed in version 2021.1.5f1

  3. Resolution Note (fix version 2020.3):

    Fixed in version 2020.3.8f1

  4. Resolution Note (fix version 2019.4):

    Fixed in version 2019.4.28f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.