M4: Windows 실기 확인으로 찾은 워커 크래시 수정

- 원인: pywinrt 의 오래된 msvcp140.dll(14.29)이 먼저 올라가면 onnxruntime 이 0xC0000005 로 죽음
  (롤 채팅 OCR 을 한 번 쓴 뒤 첫 STT 에서 워커가 조용히 종료, PyInstaller 분석도 실패)
- 워커 시작 때 onnxruntime·ctranslate2 를 먼저 적재, 빌드 전에 winrt 의 msvcp140 삭제
- 코어: 워커가 죽은 뒤 stdin 쓰기(EPIPE)로 앱 전체가 죽던 문제

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-15 02:16:08 +09:00
parent 47fd237baf
commit 827e9d822c
4 changed files with 29 additions and 1 deletions

View File

@@ -78,6 +78,8 @@ export class WorkerClient extends EventEmitter {
} catch {
/* 권한 없음 무시 */
}
// 워커가 죽은 뒤 stdin 에 쓰면 EPIPE 가 난다. 처리하지 않으면 앱 전체가 죽는다.
p.stdin!.on('error', (e) => log.warn(`워커 stdin 오류: ${e.message}`));
readline.createInterface({ input: p.stdout! }).on('line', (line) => this.onLine(line));
readline.createInterface({ input: p.stderr! }).on('line', (line) => {
if (line.trim()) log.debug(line);