Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.6f1
Issue ID
UUM-46004
Regression
No
[DOTS] Crash on block_merge_next when using EntityQueryBuilder multiple times
{*}Reproduction steps{*}:
# Open the project "pr_blobario"
# Open Multiplayer Playmode Tools, and make sure the PlayMode Type is "Client & Server"
# Go to scene: Scenes/MarkasScene/MarkasScene
# Enter Playmode
# Play for a few seconds and exit Play Mode
{*}Full stack trace{*}:
{code:java}
Obtained 8 stack frames.
#0 0x00000110cc6454 in block_merge_next
#1 0x00000110cc632f in tlsf_free
#2 0x0000010e6fdf70 in DynamicHeapAllocator::Deallocate(void*)
#3 0x0000010e70d026 in DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate(void*)
#4 0x0000010e701e91 in MemoryManager::Deallocate(void*, MemLabelId const&, char const*, int)
#5 0x0000010e6ffd48 in free_alloc_internal(void*, MemLabelId const&, char const*, int)
#6 0x0000010e1c8a02 in UnsafeUtility::Free(void*, NativeCollection::Allocator, ScriptingExceptionPtr*)
#7 0x0000010e1c83b3 in UnsafeUtility_CUSTOM_FreeTracked(void*, NativeCollection::Allocator) {code}
{*}Platforms tested{*}: macOS Intel (Ventura 13.4.1), Windows 10 22H2
{*}Notes{*}: Not reproducible 100% of the time, but very often, sometimes crashes as soon as you enter Play Mode
The line that is causing the issue in Scripts/Pellet/PelletVirusRespawnSystem.cs (line 62):
EntityQuery query = new EntityQueryBuilder(Allocator.Temp).WithAll<Pellet>().Build(ref state);
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
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
Resolution Note:
User error. SystemState must be passed by reference, not by value.