From dcde30d3325db20d6b009e1742c7ec662f065ffa Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 21:32:23 +0000 Subject: [PATCH] bugfix(sentry): Prevent access violation from UI component initialization on non-UI thread --- .../GameNetwork/GeneralsOnline/OnlineServices_Init.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp index 3530de6fcd1..5a012ad79bb 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp @@ -1042,6 +1042,11 @@ void NGMP_OnlineServicesManager::InitSentry() }, nullptr); #endif + // Disable the crash handler backend to prevent it from attempting to + // initialize Windows UI components (SystemNavigationManagerStatics::GetForCurrentView) + // on a non-UI thread during sentry_init(), which causes an access violation. + sentry_options_set_backend(options, nullptr); + sentry_init(options); #endif }