Windows exe intermittently crashes at launch showing garbled text
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 19.9k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 30
Description
Reported by tawa.kul in Discord #general (2026-07-16), Windows.
The exe randomly crashes when launched, printing "some weird text" (likely a raw panic message or ANSI escape garbage in a non-VT console). Repeatedly relaunching eventually starts jcode.
Needs repro on Windows. Possible angles:
- Panic during terminal capability detection before the panic hook installs
- ANSI/VT mode not enabled in legacy conhost, so error output renders as escape soup
- Race in launcher vs. build channel resolution (partially hardened in #487, but the crash itself predates and may persist)
Because the crash text cannot be copied (see #497), we have no exact error string yet. If anyone hits this, run from an existing terminal and paste output, or check %USERPROFILE%\.jcode\logs\.
Source: Discord report, https://discord.com/channels/1508955567048364062/1508955567048364065
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows exe launch from an existing terminal and checking %USERPROFILE%.jcode\logs\ for the missing error output. Investigate the terminal capability detection and panic-hook timing, then compare the launcher and build-channel resolution paths referenced in #487. Done means the launch crash is reproducible and fixed, with readable error output in legacy conhost.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100