Search Issue Tracker
Fixed in 2021.3.29f1
Fixed in 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.2.0a15
Votes
0
Found in
2021.3.11f1
2022.1.19f1
2022.2.0b9
2023.1.0a13
2023.2.0a1
Issue ID
UUM-16390
Regression
No
Crash on CachedWriter::Write when building AssetBundle (.byte file >2GB)
Reproduction steps:
1. Open the user’s attached project
2. Click “Assets/Video/sample.bytes”
3. In the Inspector Window, under the “Asset Labels”, click the “AssetBundle” dropdown
4. In the dropdown, select “New…” and enter any name
5. Click Build > “Asset Bundles”
Expected result: AssetBundle is created from the .bytes file
Actual result: Unity Editor crashes
Reproducible with: 2021.2.0a17, 2021.3.11f1, 2022.1.19f1, 2022.2.0b9, 2023.1.0a13
Couldn’t test with: 2020.3.40f1, 2021.2.0a16 (crashed when clicking “Assets/Videos/sample.bytes” because of Size overflow in allocator)
Reproducible on: Window 11 Pro 21H2
First lines of the stack trace:
{noformat}0x00007ff7202e5033 (Unity) CachedWriter::Write
0x00007ff7205a9df2 (Unity) TextAsset::Transfer<StreamedBinaryWrite>
0x00007ff720679e47 (Unity) SerializedFile::WriteObject
0x00007ff720664279 (Unity) PersistentManager::WriteFile
0x00007ff720665e5f (Unity) PersistentManager::WriteFile{noformat}
Note: Reimport project on every version change
Note: This is caused because the Videos/sample.byte file is more than 2GB. Unity does not support more than 2GB in the serialization of a single object and content of a .byte file will be stored as an embedded object inside the AssetBundle. Such a large object is almost certainly not going to be efficient, even if we did support such a large size. When fixing this ticket we would aim to add an error message and build failure in this case, rather than letting the Editor crash.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Non-multisampled texture binding errors are logged when running the DepthBlit URP scene with MSAA enabled on Vulkan
- The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
- NullReferenceException is logged when undoing Deletion of a Visual Query Block of a Search Expression
- “Unsupported type MinMaxCurve” error and “Could not register property modification for animation binding…” warnings are thrown after moving playhead when Particle System Property is added to Animation window
- Nested LocalizedStrings can not query local variables
Add comment