Crash on EntityBatchFromEntityChunkDataShared (possibly Burst?)

Unity 2020.1.17
Burst 1.4.3
Entities 0.16.0

So I have a shipped game and one user reported that the game crashes on transition from the main menu to the first game scene. There was only one such report.

Here is a crash logs:Dropbox - File Deleted - Simplify your life

Interesting lines are:

========== OUTPUTTING STACK TRACE ==================

0x00007FFBFD94E188 (lib_burst_generated) 87da691eaaceb903209cc243523f723a
0x00000174675B6F17 (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_00007FFBFD94E180 (Unity.Entities.EntityInChunk*&,int,intptr,intptr,Unity.Entities.EntityComponentStore/ComponentOperation,Unity.Entities.ComponentType&,intptr)
0x00000174A83F8EBC (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_void_EntityInChunk*&_int_intptr_intptr_EntityComponentStore/ComponentOperation_ComponentType&_intptr (Unity.Entities.EntityInChunk*&,int,intptr,intptr,Unity.Entities.EntityComponentStore/ComponentOperation,Unity.Entities.ComponentType&,intptr)
0x00000174A83F8DAF (Mono JIT Code) Unity.Entities.EntityComponentStore:_forward_mono_EntityBatchFromEntityChunkDataShared (Unity.Entities.EntityInChunk*&,int,Unity.Entities.EntityBatchInChunk*,int*,Unity.Entities.EntityComponentStore/ComponentOperation,Unity.Entities.ComponentType&,int*)
0x00000174A83F8C93 (Mono JIT Code) Unity.Entities.EntityComponentStore:EntityBatchFromEntityChunkDataShared (Unity.Entities.EntityInChunk*&,int,Unity.Entities.EntityBatchInChunk*,int*,Unity.Entities.EntityComponentStore/ComponentOperation,Unity.Entities.ComponentType&,int*)
0x00000174A83F849B (Mono JIT Code) Unity.Entities.EntityComponentStore:CreateEntityBatchList (Unity.Entities.EntityInChunk*,Unity.Collections.NativeArray`1<Unity.Entities.Entity>,Unity.Entities.EntityComponentStore/ComponentOperation,Unity.Entities.ComponentType,Unity.Collections.NativeList`1<Unity.Entities.EntityBatchInChunk>&)
0x00000174A83F8233 (Mono JIT Code) Unity.Entities.EntityComponentStore:CreateEntityBatchListForAddComponent (Unity.Collections.NativeArray`1<Unity.Entities.Entity>,Unity.Entities.ComponentType,Unity.Collections.NativeList`1<Unity.Entities.EntityBatchInChunk>&)
0x00000174A83F7F13 (Mono JIT Code) Unity.Entities.EntityManager:AddComponent (Unity.Collections.NativeArray`1<Unity.Entities.Entity>,Unity.Entities.ComponentType)
0x00000174A83F56AB (Mono JIT Code) Unity.Transforms.ParentSystem:UpdateChangeParents ()
0x00000174A83F40BB (Mono JIT Code) Unity.Transforms.ParentSystem:OnUpdate (Unity.Jobs.JobHandle)
0x000001749DF0B7C7 (Mono JIT Code) Unity.Entities.JobComponentSystem:Update ()

(As you can see the game crashes on standard Entities system)

I’ve tried to enable a development build and burst safety checks, but the game on user’s machine crashes anyway and don’t give any additional info.
Obviously, I can not reproduce a crash. User have Intel (R) Pentium CPU G4400 @ 3.3 Ghz, 64bit, 2 core. Also he said, that previous version of the game worked fine. But the only notable change was Burst update from 1.3.x to 1.4.x

Do you have any suggestion how to proceed with this issue? Any more useful info that I could ask from this user?

Hi @iamarugin ,

I think we should focus on getting the stack trace to have proper source locations for the Burst code, otherwise it’s difficult to diagnose what the underlying problem is. You said you’ve enabled a development build - please can you check if Data/Plugins/lib_burst_generated.pdb is included in the build you’re sending to that user (it should be in the same folder as lib_burst_generate.dll)?

In addition, I think these checkboxes also will be useful, for the better build debugging we use it like that when we debugged build crashes
6698341--768658--upload_2021-1-7_15-15-11.png6698341--768661--upload_2021-1-7_15-15-30.png

Yep, I’ve enabled all that stuff but for some reason Steam cmd ignored all pdb files. Will try to remake the build and get to you back with proper logs.

The standard steam ‘depot_build.vdf’ has a line in it to ignore .pdb files if I remember correctly.

Oh right, found it, thank you!

Here is the log file with pdb’s Dropbox - File Deleted - Simplify your life

Is that definitely with lib_burst_generated.pdb next to lib_burst_generated.dll? Because the Burst code still isn’t symbolized (no method name, no source line number, etc.).

Alternatively, the slides here from slide 32 onwards describe how to go from that hash ("
87da691eaaceb903209cc243523f723a") - to a method name: Getting started with Burst – Unite Copenhagen 2019 | PPT

Yes, I double checked it:
6711262--771412--upload_2021-1-11_12-44-57.png
Here is a line, that contains this hash:

--method=Unity.Entities.EntityComponentStore, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::_mono_to_burst_EntityBatchFromEntityChunkDataShared(Unity.Entities.EntityInChunk*&, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.Entities.EntityComponentStore+ComponentOperation, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|Unity.Entities.ComponentType&, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)--87da691eaaceb903209cc243523f723a