Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory and resource leaks on MacOS arm64 #465

Open
trobaczewski opened this issue Feb 11, 2025 · 0 comments
Open

Memory and resource leaks on MacOS arm64 #465

trobaczewski opened this issue Feb 11, 2025 · 0 comments

Comments

@trobaczewski
Copy link

Hey, I've observed memory and resource (mach ports) leaks on macOS with frequent calls to drivelist.list().
If the app runs long enough without restarting, it is eventually killed by the OS.

Image

The simplest way to reproduce this issue is to just run the following script:

const driveList = require('drivelist');

function callDriveList() {
  return driveList.list().then(() => {
    console.log(process.memoryUsage());
  });
}

setInterval(() => {
  callDriveList();
}, 0);

I've fixed the issue with leaking mach ports with PR #464, but unfortunately, I haven't been able to resolve the memory leak problem.

I'm running on macOS: 15.0.1 and NodeJS: v18.14.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant