mpv.net icon indicating copy to clipboard operation
mpv.net copied to clipboard

VapourSynth causes mpv.net to crash

Open ThomasEricB opened this issue 2 years ago • 6 comments

Using any .vpy extensions on .conf causes mpv.net to crash. Followed the wiki guide to a T (vf-append=vapoursynth="C:\StaxRip\mpv.vpy":buffered-frames=4:concurrent-frames=32). It was working a couple of days ago, then it stopped working on v6.0.3.2-beta and now it kept not working on the latest version. Please help.

Additional context Add any other context about the problem here.

  1. version v6.0.4.0
  2. Windows 10
  3. GTX 1080ti
  4. MP4 and MKV

ThomasEricB avatar Sep 08 '23 02:09 ThomasEricB

@stax76 By the way, I hope you have been feeling better! Love your work!

ThomasEricB avatar Sep 09 '23 00:09 ThomasEricB

Note that libmpv in v6.0.3.2-beta uses vapoursynth R60, is this due to a change on the vapoursynth side? see vapoursynth R60 release note: https://github.com/vapoursynth/vapoursynth/releases/tag/R60

more: https://github.com/shinchiro/mpv-winbuild-cmake/commits/master/packages/vapoursynth.cmake

zhongfly avatar Oct 28 '23 14:10 zhongfly

Sometimes a native (C/C++) library hosted by .NET can crash .NET due to memory corruption in the native library. I had this a few times, developing StaxRip which hosts many native libraries (avs and vs plugins) and was always able to solve it together with the author of the native library. I can try to reproduce it and report it to the author of the native library.

stax76 avatar Oct 28 '23 14:10 stax76

By the way, I hope you have been feeling better! Love your work!

Thanks, I'm mostly fine, I get problems when I have to work on something difficult like developing something with WPF, this library is very powerful but known to be difficult to work with. So I work first on the easy tasks and postpone the difficult ones.

stax76 avatar Oct 28 '23 15:10 stax76

To solve this problem, I think it would be better to provide .vpy sample and your mpv logs. You can try the following steps to find out the source of the problem:

  1. try to use the old libmpv.dll + mpv.net v6.0.3.2-beta, the old libmpv.dll can be get from https://github.com/mpvnet-player/mpv.net/releases/tag/v6.0.3.1.
  2. if the first step does not crash, the problem is from vapoursynth R60. if it crashes, the problem is from mpv.net

zhongfly avatar Oct 28 '23 15:10 zhongfly

I tried with the latest StaxRip release which has VapourSynth R63, libmpv zhongfly 2023-11-03, mpv.net v7, no problems.

If there is no error message on the terminal, you can take a look in the Windows event viewer, as this often tells which module crashed.

https://www.google.com/search?q=windows+event+log

stax76 avatar Nov 07 '23 13:11 stax76