-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Crazy memory leaks #4735
Comments
Further details:
|
Can't reproduce. Missing log file. |
Does setting |
@haasn I'm not seeing these leaks with |
Sounds like the solution is to stop using |
Or switch to another player that uses the same libav/ffmpeg hardware acceleration but doesn't leak at all. |
Or you could just ignore the troll and post a log file. |
Apparently this was broken by the "ctx->hwdec" check in the if condition guarding the destroy call, and "ctx->hwdec = NULL;" was moved up earlier, making this always dead code. This should probably be refcounted or so, although that could make it worse as well. For now, add a flag whether the device should be destroyed. Fixes #4735.
Found it - the trick was that you really need multiple files to make it show up, and that the new d3d hwaccel code must be used. |
i have same issue is there any solution for this problem other than hwacel off? Also it looks like leak differs between different GPU architectures (it is leaking much less on my intel 630 based system than on AMD R290X system.) |
Open a new issue instead of replying to a closed 3 year old issue. |
Why when this is probably still relevant? |
It was reported for D3D11, and at least some leak was fixed at the D3D11 as a result of this report, and for 3 years there were no reports of leaks, so even if it is the same issue (which I think is unlikely), you should open a new issue with proper logs and evidence of the leak. |
I put it here as i have same symptoms as xnoreq it works fine without hwdec and it is broken with both d3d11va and dxva2 this is how it steadily eats memory with each new media loaded (im reloading complete mpv.dispose() is called between each play) when hwdec=off this memory leak is not occuring here is trace log for this problem but as im using c# mpv wrapper (Mpv.NET) im not sure if log will be useful. There is nothing about dispose of loaded modules |
It doesn't look like a leak to me, certainly not anywhere near the OP issue and report. Please open a new issue, with log, and better evidence. It's the last time I'm requesting it, and any further comments you post here will not get any response. |
Also, if you use mpv.net then report it to mpv.net. If you report it here for mpv then use mpv itself. |
OPEN A NEW ISSUE EVERYONE ELSE WHO COMMENTED ON THE ORIGINAL ONE DOESN'T NEED TO RECEIVE NOTIFICATIONS FOR YOUR COMMENTS |
Maybe that is the reason why i want to reuse this issue ;) |
here we go. comments are locked. |
mpv version and platform
mpv 0.26.0
Reproduction steps
Add a bunch of videos to mpv. Mash the key bound to
playlist-next
.Expected behavior
Bounded memory usage. Playing a ~5000 kbps bitrate full hd video I measure about 80 MB private working set.
I don't see a reason why memory usage should increase beyond that, especially when switching to lower bitrate videos.
Actual behavior
Memory usage grows until the system runs out of memory and mpv crashes or is killed.
After roughly 30 times playlist-next:
More detailed process stats also showing leaking handles:
Before:
After roughly 30 skips:
The text was updated successfully, but these errors were encountered: