pcbjam/tests/wasm-app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 67f5a88a34 Fix wxGrid test crash and add debug build support
The wxGrid test was crashing with "memory access out of bounds" due to
an initialization order bug in grid_test.cpp: during CreateGrid(), wxGrid
fires cell selection events which triggered the OnGridCellSelect handler
that called m_log->AppendText() before m_log was initialized.

Fix: Add null check in LogEvent() to guard against events firing before
m_log is created.

Also adds --debug flag to build-wasm-test.sh for debugging WASM crashes:
- Builds with DWARF symbols (-g) and source maps (-gsource-map)
- No optimization (-O0) preserves debugging context
- Stack traces show actual function names instead of wasm-function[N]

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 22:15:56 +01:00
..
standalone Fix wxGrid test crash and add debug build support 2025-11-29 22:15:56 +01:00
Makefile.wasm Fix wxGrid test crash and add debug build support 2025-11-29 22:15:56 +01:00
minimal_test.cpp Add standalone test apps and Playwright specs for wxWidgets WASM 2025-11-29 16:19:13 +01:00
minimal_test.html Fix wxWidgets WASM rendering and add comprehensive tests 2025-11-28 14:28:05 +01:00