根据整体流程看,引擎已经初始化完成,安卓触发SurfaceChanged时,主动触发APP_CMD_TERM_WINDOW事件,直接调用了切后台方法,崩溃前log信息如下:
崩溃发生在FGCScopeGuard GCGuard;
886123 2025/09/08 11:53:49.946904 4057.0874 47 ECU1 Swit ace 1118 log info verbose 1 I/SwitchSurface(23976:23976): Call MainSurface surfaceCreated 1
886133 2025/09/08 11:53:49.946997 4057.0874 57 ECU1 UE4 UE4 1118 log info verbose 1 I/UE4 (23976:23976): --TRACE-- OnAppCommandCB ####### - Case [APP_CMD_TERM_WINDOW] : bDidGainFocus = 1, bHasFocus = 1, bHasWindow = 1, bIsResumed = 1, bShouldRestartFromInterrupt = 0
886138 2025/09/08 11:53:49.947037 4057.0874 62 ECU1 UE4 UE4 1118 log info verbose 1 I/UE4 (23976:23976): ####### SwitchSurface SurfaceDebug AndroidEGL:: SuspendApp_EventThread, waiting for event manager to process. tid: 23976
538921 2025/09/08 11:53:53.948402 4061.0876 107 ECU1 UE4 UE4 1118 log info verbose 1 I/UE4 (23976:23976): SwitchSurface SurfaceDebug ####### Call BlockRendering Enter.
538922 2025/09/08 11:53:53.948413 4061.0876 108 ECU1 UE4 UE4 1118 log info verbose 1 I/UE4 (23976:23976): [2025.09.08-03.53.53:947][307]LogAndroid: Blocking renderer on invalid window.
<br/>
<br/>