smplayer-dev / smplayer

Free Media Player for Windows, Linux and Mac OS with YouTube support.
https://smplayer.info
GNU General Public License v2.0
668 stars 94 forks source link

After resize SMplayer window on second 4k display the video in window will be black #310

Open danvyr opened 2 years ago

danvyr commented 2 years ago

Describe the bug I have 2 4k dislplays, but I can use SMplayer only on the first. I can use SMplayer on the second if I open it in full screen and then move to second display using Alt + mouse Looks like there is some bug in Connected screens

To Reproduce Steps to reproduce the behavior:

  1. Move full or more than 50% of SMplayer window from first 4k display to second 4k display
  2. Resize window
  3. Video will be black
  4. See error

Another way to close SMplayer on the second screen and then open some video file. The video will be black.

Screenshots Screenshot_20211211_221306 image image

Your Enviroment

Logs Connected screens Number of screens: 2 Primary screen: DP-0 Information for screen DP-0 Available geometry: 0 0 1920 x 1080 Available size: 1920 x 1080 Available virtual geometry: 0 0 5760 x 1080 Available virtual size: 5760 x 1080 Depth: 24 bits Geometry: 0 0 1920 x 1080 Logical DPI: 96 Physical DPI: 80.9812 Physical size: 600 x 340 mm Refresh rate: 59 Hz Size: 1920 x 1080 Virtual geometry: 0 0 5760 x 1080 Virtual size: 5760 x 1080 Information for screen HDMI-0 Available geometry: 3840 0 1920 x 1080 Available size: 1920 x 1080 Available virtual geometry: 0 0 5760 x 1080 Available virtual size: 5760 x 1080 Depth: 24 bits Geometry: 3840 0 1920 x 1080 Logical DPI: 96 Physical DPI: 80.9812 Physical size: 600 x 340 mm Refresh rate: 60 Hz Size: 1920 x 1080 Virtual geometry: 0 0 5760 x 1080 Virtual size: 5760 x 1080

smplayer-dev commented 2 years ago

Have you checked if the latest version (21.10) has the same problem?

danvyr commented 2 years ago

I have checked, SMPlayer v. 21.10.0 (revision 10000) running on Linux still has this problem. Just mpv without SMPlayer works fine

smplayer-dev commented 2 years ago

Does it make any difference if you select another video output in preferences -> general -> video?

danvyr commented 2 years ago

I tried gpu, vdpau. x11, libmpv, drm, vaapi, wlshm and there is no difference. But sdl opens mpv directly and mpv's window doesn't have this problem.

As I mentioned before maybe the problem is with determinations of Connected screens, because resolution on my monitors much bigger than SMplayer thinks.

smplayer-dev commented 2 years ago

Go to preferences -> interface -> high dpi and turn off support for high dpi screens and see if that changes the resolutions.

danvyr commented 2 years ago

Turning off high dpi didn't help and no changes in the resolutions. Scale factor was 1.

smplayer-dev commented 2 years ago

Are there any error messages in the log when you try to play a video in the second screen?

danvyr commented 2 years ago

Here are logs, but no messages appears in them when I resize window on the second screen and video goes black mpv.log smplayer.log

smplayer-dev commented 2 years ago

Try turning on / off the option "repaint the background of the video window" in preferences -> advanced.

danvyr commented 2 years ago

Doesn't help

smplayer-dev commented 2 years ago

Does this problem still happen if you use mplayer as multimedia engine (preferences -> general)?