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

[BUG] Claude crashed and disappeared when quota reached

Open tristanbes opened this issue 8 months ago • 1 comments

Environment

  • Platform: Claude Max 200x
  • Claude CLI version: v1.0.11
  • Operating System: MacOS 15.5
  • Terminal: ghostty

Bug Description

I was vibe coding last night, and all of a sudden, all my terminal froze (I think it even cleared anything inside the terminal, like a blank screen); I tried restarting claude and the command line was not found 🙃 I had to source ~/.zshrc so I could use claude command again; When re-launching it it said "Claude Opus 4 quota reached, switching to Sonnet" (or something like this)

So I think, when hitting a quota, it made claude crash (+ weird issue about the claude not found) I've been using claude for weeks and it's the first time it happened.

Thank you

tristanbes avatar Jun 05 '25 09:06 tristanbes

got similar issue today. claude was doing auto compact

[70265:0x138030000] 56590451 ms: Mark-Compact 4088.4 (4102.5) -> 4086.8 (4101.2) MB, pooled: 3 MB, 277.92 / 0.00 ms (average mu = 0.072, current mu = 0.002) allocation failure; scavenge might not succeed [70265:0x138030000] 56590758 ms: Mark-Compact 4088.8 (4101.2) -> 4087.1 (4105.8) MB, pooled: 0 MB, 305.79 / 0.00 ms (average mu = 0.037, current mu = 0.002) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace -----

1: 0x104899f0c node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 2: 0x104a45ca4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 3: 0x104c02ce8 v8::internal::Heap::CallGCPrologueCallbacks(v8::GCType, v8::GCCallbackFlags, v8::internal::GCTracer::Scope::ScopeId) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 4: 0x104c08780 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1::operator()() const [/opt/homebrew/Cellar/node/23.11.0/bin/node] 5: 0x104c0302c void heap::base::Stack::SetMarkerAndCallbackImpl<v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1>(heap::base::Stack*, void*, void const*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 6: 0x1047ac028 PushAllRegistersAndIterateStack [/opt/homebrew/Cellar/node/23.11.0/bin/node] 7: 0x104bfff14 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 8: 0x104bf9968 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 9: 0x104bfa330 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 10: 0x104beb3dc v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 11: 0x104eae218 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 12: 0x10468b9f4 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/23.11.0/bin/node] 13: 0x10d5e5ee8 14: 0x10d444f84 15: 0x10d16f618 16: 0x10d8b0108 17: 0x10d749f58 18: 0x10d74b724 19: 0x10d4a2ba8 20: 0x10d528008 21: 0x1045f4838 Builtins_InterpreterEntryTrampoline [/opt/homebrew/Cellar/node/23.11.0/bin/node] 22: 0x10da58d7c 23: 0x104631e20 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node/23.11.0/bin/node] 24: 0x1046ff298 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node/23.11.0/bin/node] 25: 0x104621214 Builtins_RunMicrotasks [/opt/homebrew/Cellar/node/23.11.0/bin/node] 26: 0x1045f23f0 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node/23.11.0/bin/node] 27: 0x104b77be0 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 28: 0x104b7834c v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 29: 0x104ba2900 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 30: 0x1045f6aac Builtins_CallApiCallbackOptimizedNoProfiling [/opt/homebrew/Cellar/node/23.11.0/bin/node] 31: 0x10d3fc280 32: 0x1045f250c Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/23.11.0/bin/node] 33: 0x1045f21b0 Builtins_JSEntry [/opt/homebrew/Cellar/node/23.11.0/bin/node] 34: 0x104b77c08 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 35: 0x104b77570 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 36: 0x104a5c7e4 v8::Function::Call(v8::Isolate, v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 37: 0x1047ad6d4 node::InternalCallbackScope::Close() [/opt/homebrew/Cellar/node/23.11.0/bin/node] 38: 0x1047adb94 node::InternalMakeCallback(node::Environment, v8::Localv8::Object, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context, v8::Localv8::Value) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 39: 0x1047c5e08 node::AsyncWrap::MakeCallback(v8::Localv8::Function, int, v8::Localv8::Value) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 40: 0x1049b3cd8 node::StreamBase::CallJSOnreadMethod(long, v8::Localv8::ArrayBuffer, unsigned long, node::StreamBase::StreamBaseJSChecks) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 41: 0x1049b3f5c node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 42: 0x104a2b4e4 node::crypto::TLSWrap::ClearOut() [/opt/homebrew/Cellar/node/23.11.0/bin/node] 43: 0x104a2b990 node::crypto::TLSWrap::Cycle() [/opt/homebrew/Cellar/node/23.11.0/bin/node] 44: 0x104a29fc0 node::crypto::TLSWrap::OnStreamRead(long, uv_buf_t const&) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 45: 0x1049ba344 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 46: 0x1049ba04c node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s*, long, uv_buf_t const*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 47: 0x10814baf0 uv__stream_io [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib] 48: 0x108152ca8 uv__io_poll [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib] 49: 0x108142b58 uv_run [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib] 50: 0x1047ae488 node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 51: 0x1048e143c node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 52: 0x1048e1190 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/23.11.0/bin/node] 53: 0x104858a58 node::Start(int, char**) [/opt/homebrew/Cellar/node/23.11.0/bin/node] 54: 0x18622ab98 start [/usr/lib/dyld] [1] 70265 abort claude

zicochaos avatar Jun 05 '25 11:06 zicochaos

When this happens, you can just do claude -c , and it continues from the previous session.

arunslb123 avatar Jun 05 '25 14:06 arunslb123

@arunslb123 Nope, when it happened closing claude and relaunching it gave a "claude command not found" in my Ghostty terminal. I had to source ~/.zshrc like mentionned in my bug report, which was super weird.

tristanbes avatar Jun 05 '25 21:06 tristanbes

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 09 '25 14:08 github-actions[bot]