EmulatorJS Stack Failure Notice & New Fallback Feature Update

8BitGo 团队 · 2026-11-17 · 約 7 分鐘閱讀

Hello everyone,

Thankfully I ran a quick test before bed and found the root cause of today’s outage.

Around 1 AM on November 18, I updated the MAME core to add a fallback for low-memory browsers and environments without WebGL support. However, in commit 79be63d (reject truncated XHR core downloads), I made a mistake in the regex inside loader.js:
The pattern /^(?:text/html|application/(?:json|xml))\b/i contained an unescaped /. The parser terminated the regex at /^(?:text/, treating the remaining html as invalid flags, which threw SyntaxError: Invalid regular expression flags.

The loader uses import() to load emulator cores. This syntax error broke the entire import flow. By default, the loader does not surface the real underlying error and only shows the message minified files are missing.

This bug took down all EmulatorJS emulators, not just The King of Fighters '97. NES, SFC, GBA, arcade, PS1 and other cores failed to launch.

I sincerely apologize for this issue. I should have tested thoroughly locally before deployment. I will strengthen my testing workflow to prevent similar incidents in the future.

I also want to share a new addition to 8bitgo: MINIMAX GO has been integrated as a fallback tool. It can generate temporary hotfix patches when players run into broken games. Its quota is limited, so severe and complex bugs will still be handled with Codex and Claude.

Work has kept me very busy toward the end of the year, so I have had less time for 8bitgo maintenance. We’ve gained many new users with wildly different browser environments: some sandbox browsers block WASM, some devices have extremely tight memory limits (unable to load even 50MB cores), and there are many slow-loading and compatibility edge cases. I’ve enabled error logging, and I review and fix collected issues each night.

I’m planning an NS server migration next week. Right now traffic routes through Cloudflare to US nodes, which creates high latency. The migration will improve connection speeds.

For game content, next week I plan to upload IGS arcade titles and some Pokémon ROM hacks.
If you have games you’d like to see added, email me at: yeahcore@yeah.net

------------------

各位好,還好睡前做了一輪自測,發現了本次故障根源:

我在11月18日凌晨1點左右更新了MAME核心,初衷是為低記憶體、不支援WebGL的瀏覽器增加兜底相容方案。但在提交 79be63d(reject truncated XHR core downloads) 時,loader.js 裡的正規表示式寫漏了轉義:
正則 /^(?:text/html|application/(?:json|xml))\b/i 中,/ 沒有轉義,解析器讀到 /^(?:text/ 就判定正則結束,後續 html 被識別為非法正則標記,丟擲 SyntaxError: Invalid regular expression flags。

loader 通過 import() 載入模擬器引擎,正則語法錯誤直接導致 import 載入失敗。同時 loader 預設不會輸出原始報錯,僅提示 minified files are missing。
本次故障影響全部 EmulatorJS 模擬器,並非僅限拳皇97:NES、SFC、GBA、街機、PS1 等所有模擬器均無法正常啟動。

對此我深表歉意,本該在本地充分測試後再上線部署,後續我會嚴格把控上線流程,避免同類問題再次發生。

順帶同步一個新增能力:我為8bitgo接入了 MINIMAX GO,作為故障兜底方案。當玩家遇到遊戲無法執行的問題時,它可以快速生成臨時補丁應急修復。但受限於呼叫額度,重大、複雜bug依舊會交由 Codex、Claude 處理。

近期年底事務繁多,主業工作比較忙碌,對8bitgo的維護投入有所減少。同時站點新增了不少使用者,大家的執行環境差異很大:部分沙箱瀏覽器會停用WASM、部分裝置記憶體配額極低(50MB的核心都載入失敗)、還有大量載入緩慢以及各類零散相容問題。目前我已經上線錯誤日誌收集功能,會收集各類報錯,每晚集中排查修復。

另外在規劃下週的NS伺服器遷移:當前經由Cloudflare中轉到美國節點,訪問延遲很高,遷移完成後會改善訪問速度。

遊戲資源方面,下週計劃上傳IGS基板遊戲,以及部分寶可夢改版ROM。
如果你有想玩的遊戲,可以發郵件至:yeahcore@yeah.net

更多文章