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

IpcServerChannel memory leak #396

Open
Nickert1337 opened this issue Apr 1, 2022 · 0 comments
Open

IpcServerChannel memory leak #396

Nickert1337 opened this issue Apr 1, 2022 · 0 comments

Comments

@Nickert1337
Copy link

Nickert1337 commented Apr 1, 2022

Hi,

I'm working on a application which needs to be restarted often and rehooked. This all went fine, but after a while the host application (which does all the hooking/injecting) goes into 'OutOfMemory'. I've used ANTS Memory profiler to narrow down the root cause and it seems that IpcServerChannel isn't cleaned up. It occupies a thread and a bunch of other things in memory, eventually leaking into a OutOfMemory exception.

I tried calling IpcServerChannel.StopListening() but this doesn't kill the thread. In the screenshots you can see 1004 ipcServers and 1004 threads being spawned.

Object diffs:
https://imgur.com/EACRv0T

Object roots:
https://imgur.com/82FtHoT

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