pcbjam/features
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
..
browser-tools wip: nested-asyncify fix, wxAuiToolBar registration, tests, research docs 2026-04-21 13:58:16 +02:00
fix-asyncify-O2-and-modal-promise-rejection tests: load-pcb e2e for microwave + pic_programmer demos 2026-05-29 09:51:18 +02:00
ipc-api Add feature branch patch management system 2026-01-06 16:17:52 +01:00
pl-editor feat: pl_editor WASM port + browser file dialog fixes 2026-06-01 10:30:56 +02:00
schematic feat(schematic): eeschema WASM build + e2e harness 2026-05-29 16:01:17 +02:00
symbol-editor feat: symbol_editor WASM port 2026-06-02 13:37:26 +02:00
web-init fix(wasm): self-heal fiber trampoline so schematic load doesn't hang 2026-06-02 20:32:25 +02:00
webgl feat(wasm): Disable 3D viewer with comprehensive stubs 2026-01-10 15:15:50 +01:00