flathub / com.obsproject.Studio

This repository is no longer used to build OBS. Issues should be reported at https://github.com/obsproject/obs-studio
https://github.com/obsproject/obs-studio
29 stars 19 forks source link

Failed to initialize video on Wayland #181

Closed TheSamsai closed 2 years ago

TheSamsai commented 2 years ago

The Flatpak has seemingly stopped working somewhat spontaneously when run under Wayland. When running it on my Fedora Silverblue 35 installs (tested on two machines, had two friends also verify on Arch), OBS just pops up a window saying "Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.", which doesn't make sense because it still worked fine last week and my GPU drivers are otherwise working correctly.

The relevant parts of the terminal output seem to be:

info: Platform: Wayland info: CPU Name: AMD Ryzen 7 3700X 8-Core Processor info: CPU Speed: 2800.000MHz info: Physical Cores: 8, Logical Cores: 16 info: Physical Memory: 32090MB Total, 263MB Free info: Kernel Version: Linux 5.15.18-200.fc35.x86_64 info: Distribution: "KDE Flatpak runtime" "5.15-21.08" info: Session Type: wayland info: Portable mode: false Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg Attempted path: /app/share/obs/obs-studio/themes/Dark/no_sources.svg QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int) QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered() QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered() info: OBS 27.1.3 (linux) info: --------------------------------- qt.qpa.wayland: EGL not available info: --------------------------------- info: audio settings reset: samples per sec: 48000 speakers: 2 info: --------------------------------- info: Initializing OpenGL... info: Using EGL/Wayland error: eglGetDisplay failed error: device_create (GL) failed error: Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated. error: obs_display_init: Failed to create swap chain

This issue seems to coincide with some strange behaviour with other Qt applications depending on the KDE runtime 5.15-21.08 and since the OBS Flatpak has not been updated, it would strongly seem to be a runtime issue.

ernstp commented 2 years ago

Check https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1390 and https://github.com/flathub/com.obsproject.Studio/issues/78#issuecomment-1030448587

TheSamsai commented 2 years ago

Thanks, the workaround in the comment works, so I guess that makes this both an upstream issue and a duplicate of sorts. I'll leave this open for visibility for now, but technically this can be closed now.

TheSamsai commented 2 years ago

This issue has now been solved upstream by a new KDE Platform version and OBS now works normally.