Linux build gives the following crash error. The build runs in a dedicated server in a linux environment in headless batch no graphics mode

Received the following error on a linux build, the same error comes even i select multithreading to none. The build runs in a dedicated server in a linux environment in headless batch no graphics mode

2025-06-12T13:17:38.877Z Mumbai[6a422a01] Caught fatal signal - signo:6 code:-6 errno:0 addr:0x1
2025-06-12T13:17:38.877Z Mumbai[6a422a01] terminate called after throwing an instance of 'Il2CppExceptionWrapper'
2025-06-12T13:17:38.886Z Mumbai[6a422a01] Obtained 37 stack frames.
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #0  0x007f298e7f05eb in PlayerMain(int, char**)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #1  0x007f298e7e32b5 in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #2  0x007f298d74f520 in __sigaction
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #3  0x007f298d7a39fc in pthread_kill
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #4  0x007f298d74f476 in raise
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #5  0x007f298d7357f3 in abort
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #6  0x007f28ea7e26e9 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #7  0x007f28ea7e20c5 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #8  0x007f28ea7e20ed in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #9  0x007f28ea7e21d3 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #10 0x007f28ea70bdd7 in DllCanUnloadNow
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #11 0x007f28ea77754d in mono_class_get_checked
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #12 0x007f28eac86d86 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #13 0x007f28eac00f44 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #14 0x007f28eab89c16 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #15 0x007f28eab88ee0 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #16 0x007f28e9e138ed in _fini
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #17 0x007f298224250a in Unity.Entities.WorldUnmanagedImpl+UnmanagedUpdate_00001437$BurstDirectCall, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.Invoke(System.Void*, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 pSystemState) -> System.Void, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089_536e53c5aa3ad35f588219e2730285c4 from Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #18 0x007f29822d6eea in 7bf3b3dc1c88cb657fd69b548232391d
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #19 0x007f28ee956b5b in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #20 0x007f28ee8f6632 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #21 0x007f28ee8f649b in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #22 0x007f28eab7cae7 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #23 0x007f28eea4a6fc in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #24 0x007f28ee8f6678 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #25 0x007f28eea4a6fc in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #26 0x007f28ea6bd6d3 in _fini
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #27 0x007f28ea6bd63b in _fini
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #28 0x007f298e74fc4b in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #29 0x007f298e757db2 in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #30 0x007f298e57ebb3 in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #31 0x007f298e57eaf1 in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #32 0x007f298e57ee17 in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #33 0x007f298e7e3d5c in PlayerMain(int, char**)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #34 0x007f298d736d90 in __libc_init_first
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #35 0x007f298d736e40 in __libc_start_main
2025-06-12T13:17:38.886Z Mumbai[6a422a01] #36 0x0055d5f0b94029 in (Unknown)
2025-06-12T13:17:38.886Z Mumbai[6a422a01] Caught fatal signal - signo:11 code:128 errno:0 addr:(nil)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] Obtained 35 stack frames.
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #0  0x007f298e7f05eb in PlayerMain(int, char**)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #1  0x007f298e7e32b5 in (Unknown)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #2  0x007f298d74f520 in __sigaction
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #3  0x007f298d735898 in abort
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #4  0x007f28ea7e26e9 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #5  0x007f28ea7e20c5 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #6  0x007f28ea7e20ed in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #7  0x007f28ea7e21d3 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #8  0x007f28ea70bdd7 in DllCanUnloadNow
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #9  0x007f28ea77754d in mono_class_get_checked
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #10 0x007f28eac86d86 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #11 0x007f28eac00f44 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #12 0x007f28eab89c16 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #13 0x007f28eab88ee0 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #14 0x007f28e9e138ed in _fini
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #15 0x007f298224250a in Unity.Entities.WorldUnmanagedImpl+UnmanagedUpdate_00001437$BurstDirectCall, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.Invoke(System.Void*, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 pSystemState) -> System.Void, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089_536e53c5aa3ad35f588219e2730285c4 from Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #16 0x007f29822d6eea in 7bf3b3dc1c88cb657fd69b548232391d
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #17 0x007f28ee956b5b in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #18 0x007f28ee8f6632 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #19 0x007f28ee8f649b in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #20 0x007f28eab7cae7 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #21 0x007f28eea4a6fc in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #22 0x007f28ee8f6678 in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #23 0x007f28eea4a6fc in std::_Rb_tree<void*, std::pair<void* const, long>, std::_Select1st<std::pair<void* const, long> >, std::less<void*>, std::allocator<std::pair<void* const, long> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<void* const, long> >, void* const&)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #24 0x007f28ea6bd6d3 in _fini
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #25 0x007f28ea6bd63b in _fini
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #26 0x007f298e74fc4b in (Unknown)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #27 0x007f298e757db2 in (Unknown)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #28 0x007f298e57ebb3 in (Unknown)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #29 0x007f298e57eaf1 in (Unknown)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #30 0x007f298e57ee17 in (Unknown)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #31 0x007f298e7e3d5c in PlayerMain(int, char**)
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #32 0x007f298d736d90 in __libc_init_first
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #33 0x007f298d736e40 in __libc_start_main
2025-06-12T13:17:38.892Z Mumbai[6a422a01] #34 0x0055d5f0b94029 in (Unknown)

Also I’m using astarPath.data.DeserializeGraphs(data); to load graph data. Its loads as well and i received logs for that as well. After this in a second/two, the build crashes, with the above logs. Im using Entities 1.3.14

image

And this is only after DeserializeGraphs? What version of Unity are you on?

Yes it was happening after the graph was loaded, didnt receive the message then.

After that i was finding the nearest node point for target destination, and at that point it gave the fatal error.

After this i used aipath.cs, and the error was gone. But i find follower entity to be better, but cannot use it in linux build unfortunately because of the fatal error.

Also im on Unity 2022.3.52f1

Hi

I would try to upgrade to a newer version of unity, as this could very well be a burst/unity bug.

Otherwise, I’d try to see if you get the same crash in a debug build.

Sure, thanks, just another update its Unity 2022.3.58f1. Please ignore the previous version.

Please let me know if its fixed, i might nwed some solution soon. Let me know.

I was waiting on an answer from you…

Ohh okay, sure, will try a debug build and revert soon.

A newer version of Unity and/or your entities package wouldn’t hurt either. This could very well be a unity bug.