gemini-cli - 💡(How to fix) Fix Memory Leak

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Pasted some 400 line bug error trace the memory consumption spiked from - 1Gb to 12 Gb ✕ [API Error: [{ "error": { ℹ This request failed. Press F12 for diagnostics, or run /settings and change "Error Verbosity" to full for full details.

RAW_BUFFERClick to expand / collapse

What happened?

[ACTION REQUIRED] 📎 PLEASE ATTACH THE EXPORTED CHAT HISTORY JSON FILE TO THIS ISSUE IF YOU FEEL COMFORTABLE SHARING IT.

What did you expect to happen?

Pasted some 400 line bug error trace the memory consumption spiked from - 1Gb to 12 Gb

Client information

  • CLI Version: 0.41.2
  • Git Commit: b0c7a1722
  • Session ID: a83a867c-02cb-418d-ac8f-e6c69754a00e
  • Operating System: darwin v22.22.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Auth Type: oauth-personal
  • Memory Usage: 9.09 GB
  • Terminal Name: Unknown
  • Terminal Background: #ffffff
  • Kitty Keyboard Protocol: Unsupported

Login information

To submit your bug report, please open the following URL in your browser: https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.yml&title=&info=%0A*%20**CLI%20Version%3A**%200.41.2%0A*%20**Git%20Comm it%3A**%20b0c7a1722%0A*%20Session%20ID%3A%20a83a867c-02cb-418d-ac8f-e6c69754a00e%0A*%20Operating%20System%3A%20darwin%20v22.22.0%0A*%20S andbox%20Environment%3A%20no%20sandbox%0A*%20Model%20Version%3A%20auto-gemini-3%0A*%20Auth%20Type%3A%20oauth-personal%0A*%20Memory%20U sage%3A%209.09%20GB%0A*%20Terminal%20Name%3A%20Unknown%0A*%20Terminal%20Background%3A%20%23ffffff%0A*%20**Kitty%20Keyboard%20Protocol%3A **%20Unsupported%0A&problem=%0A%0A%5BACTION%20REQUIRED%5D%20%F0%9F%93%8E%20PLEASE%20ATTACH%20THE%20EXPORTED%20CHAT%20HISTORY%20JSON%20FILE%20TO%20 THIS%20ISSUE%20IF%20YOU%20FEEL%20COMFORTABLE%20SHARING%20IT.

📄 Chat History Exported To help us debug, we've exported your current chat history to: /Users/bishalghimire/.gemini/tmp/astrofusion-nextjs/bug-report-history-1778574726001.json Please consider attaching this file to your GitHub issue if you feel comfortable doing so. Privacy Disclaimer: Please do not upload any logs containing sensitive or private information that you are not comfortable sharing publicly. ✕ [API Error: [{ "error": { "code": 400, "message": "Please ensure that the number of function response parts is equal to the number of function call parts of the function call turn.", "errors": [ { "message": "Please ensure that the number of function response parts is equal to the number of function call parts of the function call turn.", "domain": "global", "reason": "badRequest" } ], "status": "INVALID_ARGUMENT" } } ]]

ℹ This request failed. Press F12 for diagnostics, or run /settings and change "Error Verbosity" to full for full details.

Anything else we need to know?

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING