Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.3.9 - Entities
Issue ID
ECSB-1508
Regression
No
"Exception thrown during SubScene import" message along with "InvalidOperationException" and "Loading Entity Scene failed because the entity header file couldn't be resolved." errors are thrown in the Console after pressing the "Clear Entity Cache" button
Reproduction steps:
1. Open the attached "repro_IN-91296" project
2. Open the "Assets/_Project/Scenes/Game.unity" Scene
3. Open the "Preferences" window ("Edit -> Preferences...")
4. In the sidebar on the left, select "Entities"
5. On the right side, under "Baking", press the "Clear Entity Cache" button
6. Open the Console window ("Window -> General -> Console") and observe it
Expected result: No errors are thrown in the Console window
Actual result: "[Worker0] Exception thrown during SubScene import: System.InvalidOperationException: Entity archetype component data is too large. Previous archetype size per instance 16256 bytes. Attempting to add component 'AudioBuffer [Buffer]' with size 320 bytes. Maximum chunk size 16320." message along with a few "[Worker0] InvalidOperationException" errors and a "Loading Entity Scene failed because the entity header file couldn't be resolved." error is thrown
Reproducible with: 1.3.9 (6000.0.37f1, 6000.1.0b5, 6000.2.0a3)
Couldn’t test with: 1.3.9 (2022.3.57f1) - Two unresolvable errors for the missing “PixelPerfectCamera“ namespace appear
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
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
- [macOS] Project fails to load when Virtual Artifacts are Corrupted
- Long scheduler times on main thread when using InstantiateAsync with a singular massive Prefab
- The project hangs upon opening it when importing the "discrete_rank2_vector_v2_0.onnx" file
- Opening the Look Dev hangs the Editor when the window is opened for the first time in the project or after deleting the Library folder
- Look Dev has blurry icons on 4k monitors
Resolution Note:
For the first bug, this happens because of a legacy feature still hanging around where meta files are ignored in Version Control (which for some reason also includes this in editor). To solve this, go to Project Settings > Version Control > Mode from "Hidden Meta Files" to "Visible Meta Files", the issue should disappear.
For the second bug, there is a limit to how big an entity can be, because there is a limit on how big a chunk can be. In this case the AudioBuffer itself is not so much the problem, as adding that buffer makes the entire entity too big to fit in a chunk. I would advise splitting this entity in two, perhaps with links between them if necessary.