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.
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
- Objects flickering in Play Mode when using RenderTexture with Canvas
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
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)