Search Issue Tracker
Fixed in 2022.2.X
Votes
3
Found in
2019.4
2020.3
2021.1
2021.1.5f1
2021.2
Issue ID
1331073
Regression
No
[Linux] Unity crashes or freezes when loading an AssetBundle with AssetBundle.LoadFromFile
Reproduction steps:
1. Download the attached zip file: "case_1308947.zip"
2, Extract the project and two AssetBundles: "New Unity Project.zip", "CubeV1.assetbundle", "CubeV2.assetbundle"
3. Open the project and enter the Play Mode
4. 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 a variation of the stack trace below
Example of the stack trace:
#0 0x007f18ae9ba980 in funlockfile
#1 0x007f18ae5f5fb7 in gsignal
#2 0x007f18ae5f7921 in abort
#3 0x007f18ae640967 in __fsetlocking
#4 0x007f18ae6479da in _IO_str_seekoff
#5 0x007f18ae64ef0c in cfree
Reproducible with: 2019.4.25f1, 2020.3.6f1, 2021.1.5f1, 2021.2.0a15
Could not test with: 2018.4 (Due to errors when opening the project)
Notes:
- Not reproducible on macOS or Windows
- Reproducible in Editor and Player with both OpenGL and Vulkan Graphics API and either version of the AssetBundles
- Vulkan Graphics API would earlier result in a different crash stack trace but has now been replaced with this one
- Sometimes the Editor freezes only after entering Play Mode the second time and attempting to load an AssetBundle again
- This crash has been observed and reported by users after importing an Asset from the Asset Store, but no consistent reproduction of such issues have been found
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
- Building 3D Sample Scenes (URP) Project fails
- Alpha channel is disabled when Alpha Clip Threshold is set to 0
- The Physics 2D Profiler module does not display the information about processed physics in the scene when profiling the application as a Development Build
- A Script Component that has a serialized custom class is not detecting changes in the first boolean variable when entering the Play mode with the Script Components GameObject opened in the Inspector
- “SendMessage cannot be called during Awake“ warnings appear when loading a scene with “LoadSceneAsync“ if using UI Toolkit in the scene
Resolution Note (fix version 2022.2):
Fixed in version 2022.2.0a6