claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude crashes without any error messaging

Open nickolay-kondratyev opened this issue 10 months ago • 9 comments

Environment

  • Platform (select one):
    • [ ] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [x ] Other: MacOS
  • Claude CLI version: 1.0.11 (Claude Code) (same happened after downgrade on 1.0.9)
  • Operating System: 14.5 (23F79)
  • Terminal: iTerm2, same happens in MacOS Terminal

Bug Description

claude crashes after few seconds.

This is all I see

❯claude
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code!                         │
│                                                   │
│   /help for help, /status for your current setup  │
│                                                   │
│   cwd: /Users/nkondrat/vintrin-env                │
╰───────────────────────────────────────────────────╯


╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > Try "refactor sh/modules/5_git.sh"                                                                                                        │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ? for shortcuts

If i go to workspace that havent been used with claude the starter window keep claude alive but after trusting the folder, then claude crashes

❯claude
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                             │
│ Do you trust the files in this folder?                                                                                                      │
│                                                                                                                                             │
│ /Users/nickolaykondratyev/tmp/hi                                                                                                            │
│                                                                                                                                             │
│ Claude Code may read files in this folder. Reading untrusted files may lead Claude Code to behave in an unexpected ways.                    │
│                                                                                                                                             │
│ With your permission Claude Code may execute files in this folder. Executing untrusted code is unsafe.                                      │
│                                                                                                                                             │
│ https://docs.anthropic.com/s/claude-code-security (​https://docs.anthropic.com/s/claude-code-security​)                                     │
│                                                                                                                                             │
│ ❯ 1. Yes, proceed                                                                                                                           │
│   2. No, exit                                                                                                                               │
│                                                                                                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
   Enter to confirm · Esc to exit
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code!                         │
│                                                   │
│   /help for help, /status for your current setup  │
│                                                   │
│   cwd: /Users/nickolaykondratyev/tmp/hi           │
╰───────────────────────────────────────────────────╯

 Tips for getting started:

 1. Ask Claude to create a new app or clone a repository
 2. Use Claude to help with file analysis, editing, bash commands and git
 3. Be as specific as you would with another engineer for the best results
 4. ✔ Run /terminal-setup to set up terminal integration

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > Try "create a util logging.py that..."                                                                                                    │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  Claude Opus 4 limit reached, now using Sonnet 4


Steps to Reproduce

  1. open claude
  2. wait few seconds

Expected Behavior

claude works

Actual Behavior

claude crashes

Additional Context

please share if there are log files somewhere, that can give more info.

nickolay-kondratyev avatar Jun 04 '25 21:06 nickolay-kondratyev

do you get this as well?

https://github.com/anthropics/claude-code/issues/1600

C4T4 avatar Jun 04 '25 21:06 C4T4

@C4T4 No i am not seeing any error messages on the screen, Were you able to find the logs for claude code, or are you seeing such messaging in your console?

nickolay-kondratyev avatar Jun 04 '25 21:06 nickolay-kondratyev

@nickolay-kondratyev I get it from the console inside of cursor.

Image

C4T4 avatar Jun 04 '25 21:06 C4T4

@rboyce-ant Hi, the symptoms are different than the "Duplicate" bug that you closed. With this issue it doesn't hang or freeze, it crashes.

nickolay-kondratyev avatar Jun 04 '25 22:06 nickolay-kondratyev

@nickolay-kondratyev thanks for clarifying! can you share the console output when launching with claude --debug

rboyce-ant avatar Jun 04 '25 23:06 rboyce-ant

Welcome!

Here is the console output running with debug, not much more data

m:mac d:vintrin-env b:master DIRTY❯claude --debug
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code!                         │
│                                                   │
│   /help for help, /status for your current setup  │
│                                                   │
│   cwd: /Users/nkondrat/vintrin-env                │
╰───────────────────────────────────────────────────╯


╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > Try "refactor sh/modules/talon.sh"                                                                                                                                                      │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ? for shortcuts                                                                                                                                                                Debug mode


m:mac d:vintrin-env b:master DIRTY❯
m:mac d:vintrin-env b:master DIRTY❯claude --version
1.0.11 (Claude Code)

Let me know if there is anything else I can run.

nickolay-kondratyev avatar Jun 04 '25 23:06 nickolay-kondratyev

What appears to work: tmux

Workaround that appears to work: Run claude within a tmux session. Running under tmux allows claude code to start working again.

What did NOT work

  • Tried with stripped .bashrc environment: (seemed to have worked once, and then started to crash reliably)
  • Tried on different MAC, in iTerm2: crash/exit without any console output.
  • Tried on in MacTerminal: same issue
  • Updated OS to 15.5: same issue

nickolay-kondratyev avatar Jun 06 '25 15:06 nickolay-kondratyev

The current version is 1.0.17, can you try updating? Does this happen in one specific project, or in any directory you launch in?

rboyce-ant avatar Jun 06 '25 21:06 rboyce-ant

@rboyce-ant it was happening in all projects.

1.0.17 (Claude Code)

Does NOT appear to have this issue anymore. Appears to be resolved

nickolay-kondratyev avatar Jun 07 '25 01:06 nickolay-kondratyev

This seems to be happening again. In tmux session it does work a little better, but not fully working either (messed up formatting, scrolling). Otherwise it crashes instantly (not able to even input anything), or shortly after running some command.

fxck avatar Aug 06 '25 19:08 fxck

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 15 '25 14:08 github-actions[bot]