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
Native Collection has not been disposed, resulting in a memory leak. #29
Comments
Same here, its leaking memory |
I can guess that
|
I think the UnityWebRequest.Post needs to I am pretty sure the native collection leak is something which only happens on more recent unity versions, as it is not a problem on pre 2021 versions from what I saw I can go make a PR with fixes in if needed :) |
PR is here: #31 |
This bug is still happening and causing constant error messages in Unity. Can someone approve the PR that JayPeet created to fix this? |
|
Ah that's a shame. The error messages were getting annoying and I was hoping this would fix it. |
Yeah, I need to investigate it properly still. Just been too busy :( |
I'm not a Unity developer anymore. At least for now. Would be happy if someone takes over this repository. @Hermesiss? |
Yes, I'm still an active Unity developer. @vladfaust can you transfer this repo to me? |
@Hermesiss let's begin with fixing this issue (you're a collaborator) |
@JayPeet @NachtgeistW @HyperGamesDev Can you provide an example project? I can't reproduce this error |
my repository SSS222 had WakaTime before, sorry for the inconvenience but you'd have to add it once again now as I removed it(also the Jobs addon). Not sure when it appeared though so it may be difficult to reproduce |
It's about Unity Engine public UnityWebRequestAsyncOperation SendWebRequest() If this operation can be replaced for other the problem will be solved. for example, if you use the obsolete: Method 'UnityEngine.Networking.UnityWebRequest.Send' is obsolete: Use SendWebRequest. It returns a UnityWebRequestAsyncOperation which contains a reference to the WebRequest object. The leak disapear. |
Hello! Curious if this has been investigated yet. |
NachtgeistW commentedApr 25, 2021
•
edited by vladfaust
This happened in 2021.1. Every time I press "Play" button, they appear in console. I used
com.unity.jobs
and caught these:The text was updated successfully, but these errors were encountered: