RasPlex / OpenPHT

OpenPHT is a community driven fork of Plex Home Theater
Other
596 stars 110 forks source link

macOS ARM64 full-screen black #331

Open bugmancx opened 2 years ago

bugmancx commented 2 years ago

Running OpenPHT on an M1 Mac works if the application is windowed however, switching to fullscreen causes the display to go black.

STR:

  1. Start playback in Windowed mode
  2. Press \ (Or ⌘-F)
  3. Observe playback continues but display is black

Logs during display change:

18:27:37 T:8707065344 DEBUG: Keyboard: scancode: 2a, sym: 005c, unicode: 005c, modifier: 0 18:27:37 T:8707065344 DEBUG: OnKey: backslash (f05c) pressed, action is ToggleFullScreen 18:27:37 T:8707065344 DEBUG: Toggling full screen: 0 18:27:37 T:8707065344 DEBUG: Setting resolution to: 3840x2160 18:27:37 T:8707065344 DEBUG: GetMode looking for suitable mode with 3840 x 2160 @ 60.000000 Hz on display 0 18:27:37 T:8707065344 DEBUG: GetMode found a match! 18:27:37 T:8707065344 INFO: GL: Maximum texture width: 16384 18:27:37 T:8707065344 INFO: Previous line repeats 1 times. 18:27:37 T:8707065344 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec 18:27:37 T:8707065344 DEBUG: Setting GUI settings res to: 3840x2160

OpenPHT: 1.8.0, macOS 12.4 (M1/ARM64)

bugmancx commented 2 years ago

This causes the application to be completely non-responsive. The application cannot be quit, cannot be windowed and does not navigate. It also does not respond to desktop switching, so renders the computer inoperative from the GUI. The only way to resolve this is to ssh in and kill the OpenPHT.app process.

In my personal experience, I have had some occasions where this bug manifests and then out of the blue things start working again, but then after the latest updates as of 19/09/2022 the issue is manifesting again.

bugmancx commented 2 years ago

Correction: You can get out of it if you hit \ to get out of full-screen mode and go back to windowed. From there you can "maximize" the window to occupy a full-screen space. It seems that this issue specifically relates to OpenPHT trying to use native fullscreen.