M5(T-M5-04): onRenderExited 渲染崩溃兜底
- WebSlot.onRenderExited(reason):渲染子进程异常退出(崩溃/被杀/OOM)时 controller.refresh() 重载恢复, 重置 firstDone 使重载后重推 appservice/setPostUrl;disposed 守卫避免子游戏销毁期误刷 - BridgeGameContainer:大厅 Web 与子游戏 Web 各挂 .onRenderExited → 对应 slot 恢复 - 防渲染子进程崩溃白屏(框架 §9 内存/崩溃兜底、附录 B 渲染兜底) devecocli build 通过。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -189,6 +189,7 @@ export struct BridgeGameContainer {
|
||||
this.slotL?.onFirstProgress();
|
||||
}
|
||||
})
|
||||
.onRenderExited((event: OnRenderExitedEvent) => this.slotL?.onRenderExited(event.renderExitReason))
|
||||
|
||||
// 子游戏 Web(临时,subgameUrl 非空时存在)
|
||||
if (this.subgameUrl !== '') {
|
||||
@@ -206,6 +207,7 @@ export struct BridgeGameContainer {
|
||||
this.slotS?.onFirstProgress();
|
||||
}
|
||||
})
|
||||
.onRenderExited((event: OnRenderExitedEvent) => this.slotS?.onRenderExited(event.renderExitReason))
|
||||
}
|
||||
}
|
||||
.width('100%').height('100%')
|
||||
|
||||
Reference in New Issue
Block a user