-
Notifications
You must be signed in to change notification settings - Fork 118
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 leaks on EVRPresenter when changes video source frequently #81
Comments
Thanks for the report. Does the bug appears for the VMR9 renderer? Do you need to use EVR? I do not understand the EVR code much, so If you can fix the problem, then a PR is welcome. |
both VMR9 and EVR can produce same result. |
@veve178 You have written: "The memory usage in the EVRPresenter64.dll keep increasing ...". When you use VMR9, you do not use EVRPresenter64.dll - you can delete it. So, are you sure you use VMR9? If so, can you detect where is memory increasing? |
Hi, I get the following exception in D3DRenderer in SetBackBufferInternal(): StackTrace: this exception occurs after sometime when I try playing mulitple videos . |
To prevent memory leak and other issues you need to close previous video before load next on same instance of player. WPF-Mediakit include close method for video resources released. Also I suggest to use gc.collect for clean garbage of .net |
I have 4 MediaElement instances presented on 4 monitor with LAV decoder which the problem could occur on all Hardware Acceleration setting.
To reproduce the problem, first you need to have a subscribed event on the newly opened media. The video will change to other one when it is almost finished.
The memory usage in the EVRPresenter64.dll keep increasing when it switched to another source.
The text was updated successfully, but these errors were encountered: