1jehuang / 1jehuang/jcode

Windows exe intermittently crashes at launch showing garbled text

Open
#498 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.