Low Level Networking Crashes On Android. Any Tips how to fix?

I’m not sure what is causing my crashes. I think maybe I’m not waiting for an async action to be completed before I am performing an action but I don’t know.

Here is the stack trace of my most common crash:

(The next most common crash occurs in UIpConnection::LowLevelSend)

Thread 9371
#00 pc 00000000074d0054 libUnreal.so (inlined) std::__ndk1::__function::__value_func<void (std::__ndk1::shared_ptr, bool)>::operator()(std::__ndk1::shared_ptr&&, bool&&) const [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/C:/Users/Skouty/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1/functional:1884 + 0x0]0 libUnreal.so 0x74d0054 (inlined) std::__ndk1::function<void (std::__ndk1::shared_ptr, bool)>::operator()(std::__ndk1::shared_ptr, bool) const [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/C:/Users/Skouty/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1/functional:2556 + 0x0]0 libUnreal.so 0x74d0054 (inlined) FOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262::operator()(std::__ndk1::shared_ptr, bool) const [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/E:/Unreal Projects/Gunfight/Gunfight/Plugins/MetaXRPlatform/Source/OVRPlatform/Private/OVRPlatformRequestsSupport.cpp:118 + 0x0]0 libUnreal.so 0x74d0054 (inlined) decltype (((ForwardFOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262&)({parm#1}))((Forward<std::__ndk1::shared_ptr >)({parm#2}), (Forward)({parm#2}))) Invoke<FOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262&, std::__ndk1::shared_ptr, bool>(FOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262&, std::__ndk1::shared_ptr&&, bool&&) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/Runtime/Core/Public/Templates/Invoke.h:47 + 0x0]0 libUnreal.so 0x74d0054 decltype(auto) UE::Core::Private::Tuple::TTupleBase<TIntegerSequence>::ApplyAfter<FOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262&, std::__ndk1::shared_ptr, bool>(FOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262&, std::__ndk1::shared_ptr&&, bool&&) const & [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/Runtime/Core/Public/Templates/Tuple.h:309 + 0x0] (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#01 pc 00000000074cffd4 libUnreal.so (TBaseFunctorDelegateInstance<void (std::__ndk1::shared_ptr, bool), FDefaultDelegateUserPolicy, FOvrRequestLatentAction::UpdateOperation(FLatentResponse&)::$_262>::ExecuteIfSafe(std::__ndk1::shared_ptr, bool) const [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:868 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#02 pc 00000000074bc3cc libUnreal.so (inlined) bool TDelegate<void (std::__ndk1::shared_ptr, bool), FDefaultDelegateUserPolicy>::ExecuteIfBound<void, (void*)0>(std::__ndk1::shared_ptr, bool) const [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl:570 + 0x10] (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#03 pc 00000000074bc584 libUnreal.so (UOvrPlatformSubsystem::OnReceiveMessage(ovrMessage*) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/E:/Unreal Projects/Gunfight/Gunfight/Plugins/MetaXRPlatform/Source/OVRPlatform/Private/OVRPlatformSubsystem.cpp:815 + 0x10]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#04 pc 000000000666296c libUnreal.so (inlined) UOvrPlatformSubsystem::Tick(float) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/E:/Unreal Projects/Gunfight/Gunfight/Plugins/MetaXRPlatform/Source/OVRPlatform/Private/OVRPlatformSubsystem.cpp:787 + 0x4] (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#05 pc 0000000005f8fb30 libUnreal.so (non-virtual thunk to UOvrPlatformSubsystem::Tick(float) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/E:/Unreal Projects/Gunfight/Gunfight/Plugins/MetaXRPlatform/Source/OVRPlatform/Private/OVRPlatformSubsystem.cpp:0 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#06 pc 000000000690ba44 libUnreal.so (FTickableGameObject::TickObjects(UWorld*, int, bool, float) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/Tickable.cpp:150 + 0x10]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#07 pc 0000000006909c08 libUnreal.so (UGameEngine::Tick(float, bool) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/GameEngine.cpp:1863 + 0x10]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#08 pc 000000000690d1b4 libUnreal.so (FEngineLoop::Tick() [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Launch/Private/LaunchEngineLoop.cpp:5915 + 0xc]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#09 pc 000000000691f7cc libUnreal.so (AndroidMain(android_app*) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Launch/Private/Android/LaunchAndroid.cpp:757 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#10 pc 00000000000eb810 /apex/com.android.runtime/lib64/bionic/libc.so (android_main [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Launch/Private/Android/LaunchAndroid.cpp:1018 + 0x4]) (BreakpadBuildId: df7abb37ac8040fd0964035dfd28b8cf0)
#11 pc 000000000008b06c /apex/com.android.runtime/lib64/bionic/libc.so (android_app_entry [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/C:/Users/Skouty/AppData/Local/Android/Sdk/ndk/25.1.8937393/sources/android/native_app_glue/android_native_app_glue.c:226 + 0x4]) (BreakpadBuildId: df7abb37ac8040fd0964035dfd28b8cf0)

Here is my UIpConnection::LowLevelSend crash stack trace:

Thread 18308
#00 pc 0000000007382a28 libUnreal.so (UIpConnection::LowLevelSend(void*, int, FOutPacketTraits&) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./../Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/IpConnection.cpp:585 + 0x0]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#01 pc 0000000006205604 libUnreal.so (UNetConnection::FlushNet(bool) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/NetConnection.cpp:2214 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#02 pc 000000000622d068 libUnreal.so (UNetDriver::Shutdown() [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/NetDriver.cpp:2088 + 0x10]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#03 pc 00000000073df084 libUnreal.so (UNetDriverEOSBase::Shutdown() [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./../Plugins/Online/SocketSubsystemEOS/Source/SocketSubsystemEOS/Private/NetDriverEOSBase.cpp:194 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#04 pc 000000000668c1e4 libUnreal.so (UE::Private::DestroyNamedNetDriver_Local(FWorldContext&, FName) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:14004 + 0xc]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#05 pc 000000000668b194 libUnreal.so (UEngine::ShutdownWorldNetDriver(UWorld*) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:14036 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#06 pc 0000000006690f30 libUnreal.so (UEngine::LoadMap(FWorldContext&, FURL, UPendingNetGame*, FString&) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:15098 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#07 pc 000000000668f51c libUnreal.so (UEngine::Browse(FWorldContext&, FURL, FString&) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:14670 + 0x28]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#08 pc 0000000006690498 libUnreal.so (UEngine::TickWorldTravel(FWorldContext&, float) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/UnrealEngine.cpp:14868 + 0x28]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#09 pc 0000000005f8f90c libUnreal.so (UGameEngine::Tick(float, bool) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Engine/Private/GameEngine.cpp:1788 + 0x14]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#10 pc 000000000690ba44 libUnreal.so (FEngineLoop::Tick() [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Launch/Private/LaunchEngineLoop.cpp:5915 + 0xc]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#11 pc 0000000006909c08 libUnreal.so (AndroidMain(android_app*) [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Launch/Private/Android/LaunchAndroid.cpp:757 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#12 pc 000000000690d1b4 libUnreal.so (android_main [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/./Runtime/Launch/Private/Android/LaunchAndroid.cpp:1018 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#13 pc 000000000691f7cc libUnreal.so (android_app_entry [E:/UnrealEngineOculusVR/UnrealEngine/Engine/Source/C:/Users/Skouty/AppData/Local/Android/Sdk/ndk/25.1.8937393/sources/android/native_app_glue/android_native_app_glue.c:226 + 0x4]) (BreakpadBuildId: 3dec9a11b04744f5f6e486851306b4b00)
#14 pc 00000000000efcec /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*) [bionic/libc/bionic/pthread_create.cpp:364 + 0x4]) (BreakpadBuildId: 4f674906803a05927e28e6af7494d1420)
#15 pc 000000000008c340 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread [bionic/libc/bionic/clone.cpp:53 + 0x4]) (BreakpadBuildId: 4f674906803a05927e28e6af7494d1420)