hudec117 / Mpv.NET-lib-

.NET embeddable video/media player based on mpv for WinForms and WPF
MIT License
138 stars 36 forks source link

Process Hangs on Exit #12

Open mysteryx93 opened 5 years ago

mysteryx93 commented 5 years ago

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#
hudec117 commented 5 years ago

Hello @mysteryx93,

Could you please provide repro steps for this?

mysteryx93 commented 5 years ago

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.

mysteryx93 commented 5 years ago

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.

hudec117 commented 3 years ago

@mysteryx93 could you please try downloading the latest 1.2.0 version and try again? May be fixed by #28