pcbjam/scripts/common
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gergő Törcsvári 18a9de0449
fix(wasm): self-heal fiber trampoline so schematic load doesn't hang
The emscripten fiber glue gates Fibers.trampoline() on Fibers.trampolineRunning
and resets it at the end of its loop. At startup emscripten_set_main_loop(...,1)
throws "unwind" to establish the main loop, and KiCad does so from inside a tool
coroutine, so the throw propagates THROUGH the trampoline and skips the reset —
leaving the flag stuck true. Every fiber swap after startup then becomes a silent
no-op, so opening a schematic (SetScreen -> RunAction(selectionClear) -> fiber
swap) hangs forever with the editor stuck on "untitled".

Wrap the trampoline loop in try/finally (inject-dyncall-shims.sh section "3c") so
the flag is always reset. Add tests/kicad/eeschema-load.spec.ts, which opens a
small wires/junctions schematic via Module.kicadOpenFile and asserts the editor
title switches away from "untitled": it times out (RED) without the shim and
passes (GREEN) with it. Also add features/web-init/0002-url-regex-modal-followup.md
capturing the unrelated URL-detection wxRegEx modal surfaced once loading works.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 20:32:25 +02:00
..
shims diagnostics: configurable --diag logging flags + asyncify setupUIConditions fix 2026-05-27 16:14:03 +02:00
apply-asyncify.sh asyncify: add wasm-opt -O2 pass + bump wxwidgets (modal promise fix) 2026-06-01 08:32:32 +02:00
apply-finalize.sh Fix clean build issues 2025-12-27 15:28:20 +01:00
env.sh fix(docker): Replace emsdk image with Ubuntu + emsdk from source 2026-03-19 12:44:26 +01:00
functions.sh fix(wasm): Fix asyncify rewind with asyncify-aware dynCall shims 2026-03-13 12:26:48 +01:00
get-wasm-opt.sh fix(wasm): Fix asyncify rewind with asyncify-aware dynCall shims 2026-03-13 12:26:48 +01:00
inject-dyncall-shims.sh fix(wasm): self-heal fiber trampoline so schematic load doesn't hang 2026-06-02 20:32:25 +02:00
logging.sh chore: 🤖 add build monitor 2026-06-01 17:37:00 +02:00
stages.sh chore: 🤖 add build monitor 2026-06-01 17:37:00 +02:00
versions.sh fix(wasm): Fix asyncify rewind with asyncify-aware dynCall shims 2026-03-13 12:26:48 +01:00