Skip to content

adm-zip の deflateRaw ストリームに error リスナが付いていない #102

Description

@kochizufan

adm-zip@0.6.0methods/deflater.jsdeflateRaw ストリームに error リスナを登録していない

∴ 圧縮中に発生した例外が unhandledRejection / uncaughtException へ抜け、呼び出し側の try/catch では捕まらない。アプリエクスポートの失敗(reply was never sent)の直接の原因がこれだった。

現状

エクスポート経路は Node 標準 zlib によるストリーミング writer(electron/utils/zipWriter.ts)へ置き換えたため、この経路では adm-zip を通らない。

しかし adm-zip を使う経路がまだ残っている(地図ダウンロード / POI パッケージ / 各種読み取り)。それらは依然としてこの穴の上にある。

対処の候補

  • adm-zip を使う残りの書き出し経路を zipWriter へ寄せる(→ 別 issue)
  • 上流(adm-zip)へ報告する
  • adm-zip から離れる

出どころ

サイクル 2026-08-25-mapedit-export-zip-failure の carried_backlog(B3)。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcarried-backlog那由多サイクル finalize の申し送り由来train:next次の月次トレインで出す(既定)。policy §4.3

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions