fix(cuprate): catch launch panics and give the thread 8 MiB stack #127

Merged
sirius merged 1 commit from onionwire/cuprate-launch-panic into main 2026-09-19 19:47:41 +00:00

2026-09-19

agent
fix(cuprate): catch launch panics and give the thread 8 MiB stack
All checks were successful
ci / test (pull_request) Successful in 5m25s
ci / sdk (pull_request) Successful in 1m12s
android-ci / android (pull_request) Successful in 10m50s
ci / fuzz (pull_request) Successful in 4m59s
Android's default pthread stack is ~1 MiB. Cuprate+RandomX overflow it,
the launch thread dies before tx.send, and the UI only says "the launch
thread died before answering". Catch unwind so a Rust panic is the error
string, and size the launch thread plus tokio workers at 8 MiB.
2026-09-19 15:47:51 -04:00