Search Issue Tracker
Won't Fix
Votes
0
Found in
5.3.4p2
Issue ID
803618
Regression
No
Loading corrupted assetbundle crashes
Steps to reproduce:
1. open users attached project
2. play the scene
- crash
Expected: there should be a way to check whether assetbundle is valid without crashing or throw an exception
Update from Unity:
The crash here was due to the assetbundle file being corrupted during the download process. It is not possible to handle this situation gracefully when the file is loaded. Instead, it is recommended to use the crc argument from https://docs.unity3d.com/ScriptReference/AssetBundle.LoadFromFile.html in order to check the integrity of the file.
Comments (1)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
knah_
Mar 16, 2020 12:21
I would suggest reconsidering your "won't fix" resolution for this, as this represents a security issue for games that use assetbundles for user-generated content. No, CRC is not helpful when users intentionally upload corrupted bundles. And given that there isn't a way to distinguish a corrupted bundle from a normal one (aside from crashing), malicious users just get a free tool to crash others as they please.
(the most prominent scenario for this is social VR games with user-provided avatars that are loaded by default)