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

I'll focus on the technical issue in the error report: "V8 ToLocalChecked Empty MaybeLocal Error Causing Node.js Runtime Crash" This title: - Identifies the specific V8 JavaScript engine error - Indicates it's causing a runtime crash - Uses technical ter

Open Cabbage125 opened this issue 1 year ago • 4 comments

Bug Description was causing crashes: the FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal ----- Native stack trace -----

1: 0xb80b5c node::OnFatalError(char const*, char const*) [claude] 2: 0xeef320 v8::api_internal::ToLocalEmpty() [claude] 3: 0xcc238d [claude] 4: 0x78cb8de0d546

----- JavaScript stack trace -----

1: readFileSync (node:fs:448:20) 2: readFileSync (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:536:728) 3: TI (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:557:375) 4: file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1573:1163 5: processTicksAndRejections (node:internal/process/task_queues:95:5)

Aborted (core dumped) agent@Cabbageland:~$, cli, after 5 consectutive crashes during troublshooting it gave up by designing an "emergency v8 fix" script, which did nothing except delete core system files over the last 3 days in an attempt to cover up the data and tech debt caused during troubleshooting of the error. it basically gave up and nuked all my projects on the drive for the last 3 days with no recovery method possible. even though its been told explicitly never to do this over the last 3 weeks, much like other guidelines and perma bans, it refuses to follow orders or direction because you at Anthropic refuse to let us modify claude code cli's minifed system prompt to fix the issues it is causing following guiding files. until we are allowed to modify and customize that minified 2 system prompts, for subtaskagent and main instance, we will never be able to get claude to actually follow whats in any claude.md files reliably. Anthropics system prompt directly goes against current policies of best practices regarding ai LLM or RLM reasoning or chain of thought. the fact i have to have 4 mcp servers to do what opus can do natively before you program it out, is infuriating!

Environment Info

  • Platform: linux
  • Terminal: windows-terminal
  • Version: 1.0.35
  • Feedback ID: c2282f3c-0151-4b5c-9617-937d8f749a98

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:490:14)\n    at Socket.emit (node:events:519:28)\n    at Socket.emit (node:domain:488:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-06-26T16:03:10.620Z"},{"error":"Error: Tool mcp__sequential-thinking__sequentialthinking not found\n    at xR2 (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1923:5554)\n    at uE (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:80:19803)\n    at tT (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:42555)\n    at rT (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:38104)\n    at _$ (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:38032)\n    at YU (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:37886)\n    at oW (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:34976)\n    at y5 (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:80:4822)\n    at t8 (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:32232)\n    at A.Q.updateContainer (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:86:1835)","timestamp":"2025-06-26T16:03:11.206Z"},{"error":"Error: Tool mcp__sequential-thinking__sequentialthinking not found\n    at xR2 (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1923:5554)\n    at uE (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:80:19803)\n    at tT (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:42555)\n    at rT (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:38104)\n    at _$ (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:38032)\n    at YU (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:37886)\n    at oW (file:///home/agent/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:34976)\n   

Note: Error logs were truncated.

Cabbage125 avatar Jun 26 '25 16:06 Cabbage125

the resolution for this bug in my environment can be verified by replacing/injecting a modified variant of the minified js system prompt, found in "claude" file of core claude code cli install repo, to eliminate/reduce/modify verbosity of directive and order following guidelines already existing. to also modify the tool use and example guides with modern fast tools like ast-grep, fd, eza, etc. also works.

While prompt injection is advised against, it has been the only way to get claude code to actually work productively are large projects and within codebases with various projects. without this injection, claude simply gets confused by the overwhelming data. it can be mitigated by using another llm to create embeddings in a db that CC can read quickly.

Cabbage125 avatar Jun 26 '25 16:06 Cabbage125

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 03 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 03 '26 10:01 github-actions[bot]

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 Jan 11 '26 14:01 github-actions[bot]