SirStone
a4e830531b
fix(botapi): static SVG + intent buffers to kill cross-thread heap realloc
Round N+1's fresh bot thread realloc'd module-level strings/seqs (SVG buffer,
intent stdout/stderr, team messages) left behind by dead round N's thread —
same rawDealloc SIGSEGV class as the event queue, seen at graphics.nim:274
(drawText->prepareAdd, core 2490478 @ 03:13:40, battle round 257).
- graphics.nim: gSvgBuffer -> array[16384, char] + gSvgLen, appendSvg
- bot.nim: intent stdout/stderr -> static char arrays; team messages ->
array[16, TeamMessage] + len; buildIntentJson/printToStdOut/Err/
broadcastTeamMessage bounded appends
- botThreadEntry: reset graphics+intent buffers on the owning thread
Also fixes stale mapActions call sites in tests/ (missing enemyX/enemyY).
2026-08-19 03:32:28 +02:00
..
2026-08-19 03:32:28 +02:00
2026-08-19 03:12:22 +02:00
2026-08-16 15:27:15 +02:00
2026-08-18 17:40:59 +02:00
2026-08-19 03:12:22 +02:00
2026-08-17 19:20:40 +02:00
2026-08-17 11:52:36 +02:00
2026-08-18 17:40:59 +02:00
2026-08-19 03:32:28 +02:00
2026-08-16 15:27:15 +02:00
2026-08-19 03:12:22 +02:00
2026-08-19 03:12:22 +02:00
2026-08-16 15:27:15 +02:00
2026-08-16 15:27:15 +02:00
2026-08-17 19:20:40 +02:00
2026-08-16 16:34:37 +02:00
2026-08-19 03:12:22 +02:00
2026-08-18 15:40:54 +02:00