bloc97 / Anime4K

A High-Quality Real Time Upscaler for Anime Video
https://bloc97.github.io/Anime4K/
MIT License
18.3k stars 1.35k forks source link

Shader causes whole system hang #119

Open nate-moo opened 3 years ago

nate-moo commented 3 years ago

Describe the bug While playing a specific video in MPV it plays the video for a certain amount of time, the grows, and then hangs the system for about 20 seconds

To Reproduce Steps to reproduce the behavior:

  1. Download the video at 'https://giant.gfycat.com/ImpishSimpleDevilfish.mp4'
  2. Run video with shaders enabled (I had default 1080p deblur and super res shaders enabled)
  3. Profit

Expected behavior Video plays like normal

Screenshots If applicable, add screenshots to help explain your problem.

https://bubba.wheres-my-ta.co/y5ADnX.webm

Desktop (please complete the following information):

Additional context Add any other context about the problem here. MPV installed from choco is at latest version

logs: logs.txt

bloc97 commented 3 years ago

Does this happen for any/no shaders or is it a specific shader? Is it that specific video?

nate-moo commented 3 years ago

It still breaks without shaders but not to the degree of with shaders. In a bit I can get you the shaders I used

nate-moo commented 3 years ago

Didn't mean to close it sorry

bloc97 commented 3 years ago

Could the issue be similar or related to mpv-player/mpv#8613? Does this happen with older versions of mpv?

nate-moo commented 3 years ago

It might be but this seems more shader related because in the logs it spits out a lot of errors relating to shaders

bloc97 commented 3 years ago

Those are not errors, they are just correct shader compilation. Since you said that without shaders it still happens shaders might not be the problem.

nate-moo commented 3 years ago

Sorry about the delay. It happens but not nearly to the degree as with the shaders enabled.

Evernow commented 3 years ago

Can you verify if it happens with Vulkan?

nate-moo commented 3 years ago

I assume if it's on Linux it's using vulkan soo maybe?

(I installed Linux in the time between making this issue)

Evernow commented 3 years ago

I believe the default is OpenGL on Linux. Try using Vulkan.