Skip to content

Random crash in P2P system #31

@jmderuty

Description

@jmderuty

The crash happened while shutting down a PIE in Unreal engine.

Callstack:

Abort signal received

ucrtbase
ucrtbase
ucrtbase
VCRUNTIME140_1
VCRUNTIME140_1
VCRUNTIME140_1
VCRUNTIME140_1
UnrealEditor_Stormancer_Win64_DebugGame!__GSHandlerCheck_EH4() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\gs\amd64\gshandlereh4.cpp:86]
ntdll
ntdll
ntdll
KERNELBASE
VCRUNTIME140
msvcp140
msvcp140
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::ConnectionsRepository::getConnection() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\P2P\ConnectionsRepository.cpp:75]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::P2PSessions::closeSession() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\P2P\P2PSessions.cpp:49]
UnrealEditor_Stormancer_Win64_DebugGame!<lambda_7be2a73742e66313260d281f602412d9>::operator()() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\P2P\P2PRequestModule.cpp:350]
UnrealEditor_Stormancer_Win64_DebugGame!std::_Func_impl_no_alloc<<lambda_7be2a73742e66313260d281f602412d9>,void,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::_Do_call() [C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.36.32532\include\functional:821]
UnrealEditor_Stormancer_Win64_DebugGame!std::_Func_class<void,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::operator()() [C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.36.32532\INCLUDE\functional:861]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::Event<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::EventImpl::execute() [G:\KL\KingdomLegacy\Plugins\Stormancer\ThirdParty\Stormancer\include\public\stormancer\Event.h:85]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::Event<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::operator()() [G:\KL\KingdomLegacy\Plugins\Stormancer\ThirdParty\Stormancer\include\public\stormancer\Event.h:56]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::RakNetConnection::close() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\RakNet\RakNetConnection.cpp:177]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::RakNetConnection::~RakNetConnection() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\RakNet\RakNetConnection.cpp:66]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::RakNetConnection::`scalar deleting destructor'()
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::ConnectionsRepository::ConnectionContainer::~ConnectionContainer()
UnrealEditor_Stormancer_Win64_DebugGame!pplx::details::_Task_impl<Stormancer::ConnectionsRepository::ConnectionContainer>::`scalar deleting destructor'()
UnrealEditor_Stormancer_Win64_DebugGame!std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,pplx::task<Stormancer::ConnectionsRepository::ConnectionContainer> >::~pair<std::basic_string<char,std::char_traits<char>,std::alloc()
UnrealEditor_Stormancer_Win64_DebugGame!std::_Hash<std::_Umap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,pplx::task<Stormancer::ConnectionsRepository::ConnectionContainer>,std::_Uhash_compare<std::basic_string<char,std::char_() [C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.36.32532\include\xhash:1138]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::ConnectionsRepository::closeConnection() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\P2P\ConnectionsRepository.cpp:106]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::RakNetTransport::onDisconnection() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\RakNet\RakNetTransport.cpp:839]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::RakNetTransport::stop() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\RakNet\RakNetTransport.cpp:577]
UnrealEditor_Stormancer_Win64_DebugGame!pplx::details::_CancellationTokenCallback<<lambda_e5549a7af1f4c3ca73960fe6ad94cf0d> >::_Exec() [E:\repo\src\clients\cpp\dependencies\cpprestsdk\Release\include\stormancer\cpprestsdk\pplx\pplxcancellation_token.h:277]
UnrealEditor_Stormancer_Win64_DebugGame!pplx::details::_CancellationTokenRegistration::_Invoke() [G:\KL\KingdomLegacy\Plugins\Stormancer\ThirdParty\Stormancer\include\public\stormancer\cpprestsdk\pplx\pplxcancellation_token.h:248]
UnrealEditor_Stormancer_Win64_DebugGame!pplx::details::_CancellationTokenState::_Cancel() [G:\KL\KingdomLegacy\Plugins\Stormancer\ThirdParty\Stormancer\include\public\stormancer\cpprestsdk\pplx\pplxcancellation_token.h:484]
UnrealEditor_Stormancer_Win64_DebugGame!<lambda_91f3fe3ae37444693e03b5286f2994f9>::operator()() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\Client.cpp:943]
UnrealEditor_Stormancer_Win64_DebugGame!pplx::details::_PPLTaskHandle<unsigned char,pplx::task<unsigned char>::_ContinuationTaskHandle<void,void,<lambda_91f3fe3ae37444693e03b5286f2994f9>,std::integral_constant<bool,1>,pplx::details::_TypeSelectorAsyncTask>,p() [E:\repo\src\clients\cpp\dependencies\cpprestsdk\Release\include\stormancer\cpprestsdk\pplx\pplxtasks.h:1687]
UnrealEditor_Stormancer_Win64_DebugGame!pplx::details::_TaskProcHandle::_RunChoreBridge() [G:\KL\KingdomLegacy\Plugins\Stormancer\ThirdParty\Stormancer\include\public\stormancer\cpprestsdk\pplx\pplx.h:138]
UnrealEditor_Stormancer_Win64_DebugGame!Stormancer::MainThreadActionDispatcher::update() [E:\repo\src\clients\cpp\stormancer\stormancer-sources\src\IActionDispatcher.cpp:140]
UnrealEditor_Stormancer_Win64_DebugGame!UStormancerClient::Shutdown() [G:\KL\KingdomLegacy\Plugins\Stormancer\Source\Private\StormancerClient.cpp:238]
UnrealEditor_Stormancer_Win64_DebugGame!UStormancerGameInstanceSubsystem::Deinitialize() [G:\KL\KingdomLegacy\Plugins\Stormancer\Source\Private\GameInstanceSubsystemStormancer.cpp:19]
UnrealEditor_Engine!FSubsystemCollectionBase::Deinitialize() [G:\KL\Engine\Source\Runtime\Engine\Private\Subsystems\SubsystemCollection.cpp:205]
UnrealEditor_Engine!UGameInstance::Shutdown() [G:\KL\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:167]
UnrealEditor_KingdomLegacy_Win64_DebugGame!UKLGameInstance::Shutdown() [G:\KL\KingdomLegacy\Source\KingdomLegacy\GameData\GameInstance\KLGameInstance.cpp:57]
UnrealEditor_UnrealEd!UEditorEngine::TeardownPlaySession() [G:\KL\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:864]
UnrealEditor_UnrealEd!UEditorEngine::EndPlayMap() [G:\KL\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:343]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [G:\KL\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:2244]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [G:\KL\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:531]
UnrealEditor_Win64_DebugGame!FEngineLoop::Tick() [G:\KL\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5825]
UnrealEditor_Win64_DebugGame!GuardedMain() [G:\KL\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
UnrealEditor_Win64_DebugGame!LaunchWindowsStartup() [G:\KL\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:247]
UnrealEditor_Win64_DebugGame!WinMain() [G:\KL\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
UnrealEditor_Win64_DebugGame!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

UE logs:

[2025.08.27-15.50.02:458][123]LogSlate: Window 'KingdomLegacy Preview [NetMode: Standalone 1]  (64-bit/PC D3D SM6)' being destroyed
[2025.08.27-15.50.02:504][123]StormancerLog: Display: [connection] Game connection state changed : Disconnecting
[2025.08.27-15.50.02:566][123]StormancerLog: Display: [connection] Game connection state changed : Disconnected
[2025.08.27-15.50.02:566][123]StormancerLog: Display: [connection] Game connection state changed : Reconnecting
[2025.08.27-15.50.02:566][123]StormancerLog: Display: [connection] Game connection state changed : Connecting
'UnrealEditor-Win64-DebugGame.exe' (Win32): Loaded 'C:\Windows\System32\MpeHttpExt.dll'. Symbols loaded without source information.
[2025.08.27-15.50.02:590][123]StormancerLog: Display: [Scene] Scene destroyed : scene:/stormancer-dev/KL/wip-server/friends
[2025.08.27-15.50.02:590][123]StormancerLog: Display: [Scene] Scene destroyed : scene:/stormancer-dev/KL/wip-server/profile
[2025.08.27-15.50.02:590][123]StormancerLog: Display: [Scene] Scene destroyed : scene:/stormancer-dev/KL/wip-server/authenticator
[2025.08.27-15.50.02:653][123]StormancerLog: Display: [Scene] Scene destroyed : scene:/stormancer-dev/KL/wip-server/party-manager
[2025.08.27-15.50.02:653][123]StormancerLog: Display: [Scene] Scene destroyed : scene:/stormancer-dev/KL/wip-server/dev
[2025.08.27-15.50.02:653][123]StormancerLog: Display: [Scene] Scene destroyed : scene:/stormancer-dev/KL/wip-server/party-gs-02a783ec-75ad-42d8-8f13-4753faae0762
Exception thrown at 0x00007FF98C867F7A in UnrealEditor-Win64-DebugGame.exe: Microsoft C++ exception: std::system_error at memory location 0x000000D93D378950.
Exception thrown at 0x00007FF98C867F7A (KernelBase.dll) in UnrealEditor-Win64-DebugGame.exe: 0x00004000 (parameters: 0x000000D93D376EA0).
'UnrealEditor-Win64-DebugGame.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Symbols loaded without source information.
[2025.08.27-15.50.08:159][123]LogWindows: FPlatformMisc::RequestExit(1, WindowsPlatformCrashContext.AbortHandler)
[2025.08.27-15.50.08:159][123]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3, WindowsPlatformCrashContext.AbortHandler)
[2025.08.27-15.50.08:159][123]LogCore: Engine exit requested (reason: Win RequestExit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions