Search Issue Tracker
Won't Fix
Won't Fix in 0.51.X, 1.0.X
Votes
3
Found in [Package]
0.51.0-preview.32
0.51.1-preview.21
Issue ID
ECSB-97
Regression
No
"Assertion failure. Values are not equal." errors in the Console when using "CopyAndReplaceEntitiesFrom" function
How to reproduce:
1. Open the attached user project
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Enter Play Mode
Expected result: Game runs with no errors in the Console
Actual result: “AssertionException: Assertion failure. Values are not equal. Expected: 13 == 0“ errors in the Console
Reproducible with: 0.51.0-preview.32, 0.51.1-preview.21 (2020.3.39f1, 2021.3.9f1)
Reproduced on: macOS (12.5)
Comments (1)
-
redwren
Feb 22, 2023 18:10
Still occurring with 1.0.0-pre.44, see https://forum.unity.com/threads/implement-rollback-and-working-around-bug-with-copyandreplaceentitiesfrom.1218777/#post-8827162 for additional repro script.
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
- Economy package throws a CS0619 error in the Console when installed together with Deployment package
- “Screen position out of view frustum” errors are thrown when zooming out in the Scene view with Rect Tool selected
- Only one [UnityOneTimeSetUp] method runs when there are 2 of them in different classes
- Crash with multiple stack traces when Sprites with a high resolution get Sliced to a Grid with a small cell size in the Sprite Editor
- The UI Builder's Data Source Object picker cannot be navigated after triggering a circular dependency dialog box
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (0.51.X):
There are no fixes planned for this Bug
Resolution Note (1.0.X):
EntityManager.CopyAndReplaceEntitiesFrom is unfortunately making a series of assumptions that fundamentally prevent this function from ever working in the general case. And recent changes in the way entities are allocated made it even more difficult to use properly. So we have decided to deprecate this function. There is just no way it would ever deliver on what it was supposed to do.