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. Your GPU may not be supported, or your graphics drivers may need to be updated. #78

Closed dmarrazzo closed 2 years ago

dmarrazzo commented 4 years ago

Installed version:

OBS Studio            com.obsproject.Studio                  25.0.8          beta          flathub-beta       

Fedora 32 (Workstation Edition)

❯ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.1.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.1.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

The previous version was working smoothly

PureTryOut commented 3 years ago

I just installed OBS from Flathub and I sadly can reproduce this issue. Currently the application is unusable because of it.

GeorgesStavracas commented 3 years ago

Can you please try running:

$ flatpak run --env=MESA_LOADER_DRIVER_OVERRIDE=iris com.obsproject.Studio

if this ^^^ doesn't work, try this one:

$ flatpak run --env=MESA_LOADER_DRIVER_OVERRIDE=i965 com.obsproject.Studio

if this ^^^ doesn't work, try this one:

$ flatpak run --env=MESA_LOADER_DRIVER_OVERRIDE=i915 com.obsproject.Studio

Does any of them work?

neildarlow commented 2 years ago

Hi,

I don't know if this is relevant or the same issue but I receive this error from OBS Sudio 27.1.3 after the update of org.freedesktop.Platform from 21.08.09 to 21.08.10.

None of the previously described MESA_DRIVER_OVERRIDE settings permits the application to start.

I am running GNOME 41.3 on fedora 35 Silverblue edition.

bdaase commented 2 years ago

Exact same error as @neildarlow on my side. The rpm starts just fine.

fastoslinux commented 2 years ago

the same is happening for AMDGPU

Fedora Silverblue 35

$ flatpak run com.obsproject.Studio QSocketNotifier: Can only be used with threads started with QThread Attempted path: share/obs/obs-studio/locale/en-US.ini Attempted path: /app/share/obs/obs-studio/locale/en-US.ini Attempted path: share/obs/obs-studio/locale.ini Attempted path: /app/share/obs/obs-studio/locale.ini Attempted path: share/obs/obs-studio/locale/pt-BR.ini Attempted path: /app/share/obs/obs-studio/locale/pt-BR.ini info: Using preferred locale 'pt-BR' Attempted path: share/obs/obs-studio/themes/Dark.qss Attempted path: /app/share/obs/obs-studio/themes/Dark.qss info: Platform: Wayland info: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz info: CPU Speed: 4395.062MHz info: Physical Cores: 4, Logical Cores: 8 info: Physical Memory: 15928MB Total, 6645MB Free info: Kernel Version: Linux 5.15.16-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: --------------------------------- 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. qt.qpa.wayland: EGL not available

GeorgesStavracas commented 2 years ago

This seems to be a Mesa regression that ended up reaching the FreeDesktop platform - see https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1390.

I'll close this since it's already being tracked in the issue linked above.

GeorgesStavracas commented 2 years ago

For now, you can downgrade to a previous version of Mesa by running:

$ flatpak update --commit=86a1c8526bda603bdfadaaa0c3c76a1afcebf75ad1706c25fee3160765650a13 org.freedesktop.Platform.GL.default//21.08

This should work until an update with a working Mesa reaches Flathub.

neildarlow commented 2 years ago

This appears to be fixed with commit https://github.com/flathub/com.obsproject.Studio/commit/ef97b9e6f0f70060c5cae317664bdb46c2d088bf

ernstp commented 2 years ago

It was fixed by rebuilding the KDE runtime: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1390#note_832956493

neildarlow commented 2 years ago

Ah, OK. I wasn't notified that org.kde.Platform had been updated on my system. I really wish that flatpak history command worked to observe these things.