Skip to content

Numerious bun background processes spawing & consuming memory #4915

@Shouri14

Description

@Shouri14

What happened?

Hi, just started using pi, installed couple of extensions & some skills.

  • Installed pi via scoop scoop update pi-coding-agent
  • pi version :0.75.0
  • System : windows 11, with 64GB ram
  • Launch pi in terminal
  • Observe below processes as soon as launching,
Image
  • After waiting for 5-10 mins, I see pi stabilizes with 52 background processes. Each bun process is taking 350 MB to 400 MB. This is without me running a single prompt after launch,
Image
  • When I close the session, only the main pi.exe process is gone, leaving behind 51 processes to run in background
  • After manually killing all the bun processes, I've tried launching pi without any extensions pi --no-extensions
  • This time it looks way better,
Image
  • Logically seems like something to do with extensions, but I don't have that many extensions. I'm not sure how to proceed with debugging here.

Steps to reproduce

  1. Install pi via scoop
  2. Add couple of extensions
  3. Launch pi
  4. Do nothing, wait for 10 misn

Expected behavior

  • Wouldn't expect so many processes & also each one to take around 400 mb
  • I understand they are background processes but if they are because of extensions, then they shouldn't be running after session is closed right ?

Version

0.75.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions