Search Issue Tracker
Fixed in 0.15.0
Votes
0
Found in [Package]
0.10.0-preview.6
Issue ID
1239922
Regression
No
Crash on RaiseException when creating a large number of entities
How to reproduce:
1. Open attached project "Case_1239922"
2. Open the Test Runner Window by going to Window -> General -> Test Runner in the Menu Bar
3. Run the "InstantiateEntities_Custom" test
Reproducible with: 0.5.1-preview.11, 0.10.0-preview.6 (2020.1.0b10, 2020.2.0a12)
Could not test with: 0.5.0-preview.17, 2018.4.23f1 (due to errors), 2019.3.15f1 (test does not run due to error in ECS Testing package)
First lines of the stack trace:
0x00007FFCB0779709 (KERNELBASE) RaiseException
0x00007FF7B344BC7D (Unity) EditorMonoConsole::LogToConsoleImplementation
0x00007FF7B344C3BA (Unity) EditorMonoConsole::LogToConsoleImplementation
0x00007FF7B4C08FEA (Unity) DebugStringToFilePostprocessedStacktrace
0x00007FF7B4C08859 (Unity) DebugStringToFile
0x00007FF7B1B9F054 (Unity) DynamicHeapAllocator::Allocate
0x00007FF7B1B9415A (Unity) DualThreadAllocator<DynamicHeapAllocator>::Allocate
0x00007FF7B1B7B2B6 (Unity) MemoryManager::Allocate
Notes:
1. Upon crashing throws a Size overflow in allocator error
2. The number of entities spawned in this case is 75497472
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 0.15.0):
The fundamental cause of this crash came from a bad call to the engine's Malloc() function. This has now been addressed. We have confirmed that you can safely allocate up to 128M Entities per World.
This fix is currently expected to appear in Entities 0.15.