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:
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.