07th-mod / 07th-mod/higurashi-assembly

[All Chapters][Rare] Script compilation fails with "Fatal error in gc: GetThreadContext failed" error (only translations still compile scripts)

未關閉
#145 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
12
分支
12
PR 合併指標
30 天內沒有已合併 PR

描述

## Background

When we first made the mod, we occasionally encountered users who couldn't compile scripts for various reasons (for example, game crashes or freezes during script compilation). But when we sent them already compiled scripts, their game would work normally.

To fix this, for the main English mod, we distribute pre-compiled scripts, the player never even sees the "script compilation". This is the same as how the base game works. The compiled scripts are generated automatically as part of the build process.

However, translators don't necessarily have this setup automatically and/or don't manually include the pre-compiled scripts. So they will still occasionally get script compilation errors.

## Error reported recently: "Fatal Error in gc: GetThreadContext Failed":

One error we have seen ...maybe two or three times is below (which I saw today) is the "Fatal Error in gc: GetThreadContext Failed":

Eventually I sent them the compiled scripts and it fixed the problem.

## Solutions

This is a very rare error, so most likely it isn't worth fixing. However, if it were to be fixed:

1. Tell all the translators to either manually include compiled scripts, or I can give them my github actions build script to do it automatically (I think I made a program to compile scripts, which doesn't require a copy of the game). Also, create a script (run manually?) which scans through all the translations and sees which ones are missing compiled scripts.
2. This method seems too difficult - On our end, have some way to automatically compile scripts for translations and include them in the installer. The main difficulty is that how we have it setup, the translators can update their mod at any time, and we don't have an easy way to see if it was updated/update it in synchronous. So I wouldn't do this method.

Image

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

查看建置系統中現有的腳本編譯過程,很可能在 GitHub Actions 或自訂工具中。了解如何為主模組產生預編譯腳本。調查「Fatal error in gc: GetThreadContext failed」錯誤,該錯誤可能是環境特定的。確定如何為翻譯自動化包含已編譯腳本,可能透過修改建置腳本或建立缺失已編譯腳本的掃描器來實現。

由索引模型根據 Issue 內容生成。

評估

領域
build-system
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
40/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。