Process Hangs on Exit
mysteryx93 opened this issue · comments
Other times, instead of giving that error, the process doesn't exit and instead hangs on eventLoopTask.Wait() with this stack trace
Mpv.NET.dll!Mpv.NET.API.MpvEventLoop.Stop() Line 73 C#
Mpv.NET.dll!Mpv.NET.API.MpvEventLoop.Dispose(bool disposing) Line 106 C#
Mpv.NET.dll!Mpv.NET.API.MpvEventLoop.Dispose() Line 97 C#
Mpv.NET.dll!Mpv.NET.API.Mpv.Dispose(bool disposing) Line 433 C#
Mpv.NET.dll!Mpv.NET.API.Mpv.Dispose() Line 421 C#
Mpv.NET.dll!Mpv.NET.Player.MpvPlayer.Dispose() Line 961 C#
Hello @mysteryx93,
Could you please provide repro steps for this?
Did you change this in the latest release? After updating, I'm seeing different behavior. Now, when running with the debugger, it crashes every time on exit, and when running without debugger, it always exits properly so I'm not able to see it hang anymore.
If you start more than 9 instances, the other instances will load 1 instance per second; if you exit by the time it's all loaded, it hangs and never exits.
@mysteryx93 could you please try downloading the latest 1.2.0 version and try again? May be fixed by #28