From d70c8e660458b6faaa97fceb82ad6030aa760167 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Thu, 12 Nov 2026 08:30:03 -0800 Subject: [PATCH] Windows: every executable links with an 8 MB main-thread stack, not raea.exe alone (#112) The desktop app's raea-page-host.exe kept Windows' 1 MB default and overflowed it inside a window callback (0xc000041d) right after opening an MP4. .cargo/config.toml now passes /STACK:8388608 for both Windows MSVC targets, so raea-page-host, raea-rune-host and raea-perceive match raea.exe. --- .cargo/config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 7545ae9e..bbf9404a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,6 +3,15 @@ [target.aarch64-apple-darwin] linker = "tools/link-jit.sh" +# every Windows executable's main thread gets 8 MB of stack, as on macOS and Linux (Windows' default is 1 MB). The +# desktop app's raea-page-host overflowed 1 MB inside a window callback (#112); engine/cli/build.rs did this for raea +# alone. A DLL's link ignores /STACK. +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "link-arg=/STACK:8388608"] + +[target.aarch64-pc-windows-msvc] +rustflags = ["-C", "link-arg=/STACK:8388608"] + # no strip after linking: rustc's strip pass re-signs the binary and drops the entitlement (release has no debug info # of its own; std's stays) [profile.release]