Skip to content

Commit 5e4a531

Browse files
authored
Merge pull request #499 from GeneralsOnlineDevelopmentTeam/seer/fix/sentry-non-ui-thread-crash
bugfix(sentry): Prevent access violation from UI component initialization on non-UI thread
2 parents e3cb09e + dcde30d commit 5e4a531

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,11 @@ void NGMP_OnlineServicesManager::InitSentry()
10471047
}, nullptr);
10481048
#endif
10491049

1050+
// Disable the crash handler backend to prevent it from attempting to
1051+
// initialize Windows UI components (SystemNavigationManagerStatics::GetForCurrentView)
1052+
// on a non-UI thread during sentry_init(), which causes an access violation.
1053+
sentry_options_set_backend(options, nullptr);
1054+
10501055
sentry_init(options);
10511056
#endif
10521057
}

0 commit comments

Comments
 (0)