Failed to initialize video. AMDPRO drivers

cyfral6

New Member
Hi, OBS has been working fine on the open amd drivers however, as far as i'm aware, I HAVE TO use the pro drivers to enable GPU rendering in Blender.. But that breaks OBS for me, so is there any way to make it work with the closed drivers? I've tried both flatpak and installing OBS from repository. Thank you for any suggestions

Code:
~$ glxinfo | grep "OpenGL"
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon RX 6900 XT
OpenGL core profile version string: 4.6.14800 Core Profile Context
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.14800 Compatibility Profile Context
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: 4.6.14800 Compatibility Profile Context
OpenGL ES profile shading language version string: 4.60
OpenGL ES profile extensions:



~$ obs
qt5ct: using qt5ct plugin
debug: Found portal inhibitor
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/locale/en-GB.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-GB.ini
info: Using preferred locale 'en-GB'
Attempted path: share/obs/obs-studio/themes/Yami.qss
Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: AMD Ryzen 9 5900X 12-Core Processor
info: CPU Speed: 3265.854MHz
info: Physical Cores: 12, Logical Cores: 24
info: Physical Memory: 32010MB Total, 22867MB Free
info: Kernel Version: Linux 5.15.0-56-generic
info: Distribution: "Linux Mint" "20.3"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.13
info: Qt Version: 5.12.8 (runtime), 5.12.8 (compiled)
info: Portable mode: false
qt5ct: D-Bus global menu: no
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/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 28.1.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
libEGL warning: DRI2: failed to create any config
libEGL warning: DRI2: failed to create any config
info: Loading up OpenGL on adapter Mesa/X.org llvmpipe (LLVM 13.0.1, 256 bits)
info: OpenGL loaded successfully, version 4.5 (Core Profile) Mesa 22.0.0-devel, shading language 4.50
error: glGenBuffers failed, glGetError returned GL_INVALID_OPERATION(0x502)
error: device_vertexbuffer_create (GL) failed
error: Failed to initialize video.  Your GPU may not be supported, or your graphics drivers may need to be updated.
qt5ct: palette support is disabled
qt5ct: custom style sheet is disabled
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 1676.9 ms
info:  ┣OBSApp::AppInit: 3.117 ms
info:  ┃ ┗OBSApp::InitLocale: 0.725 ms
info:  ┗OBSApp::OBSInit: 150.967 ms
info:    ┣obs_startup: 46.247 ms
info:    ┗OBSBasic::OBSInit: 72.394 ms
info:      ┣OBSBasic::InitBasicConfig: 0.049 ms
info:      ┣OBSBasic::ResetAudio: 0.095 ms
info:      ┗OBSBasic::ResetVideo: 72.205 ms
info: obs_hotkey_thread(25 ms): min=0.041 ms, median=0.068 ms, max=12.602 ms, 99th percentile=12.602 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.004 ms, median=0.008 ms, max=0.016 ms, 99th percentile=0.016 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.098 ms, median=25.127 ms, max=37.663 ms, 98.3333% within ±2% of 25 ms (0% lower, 1.66667% higher)
info: =================================================
info: Number of memory leaks: 190
 

Anfo

New Member
I might be experiencing a similar issue to this. Bought a new AMD RX 7950 XTX card and the open drivers weren't working for multi-monitor. Resorted to the official AMD drivers to fix that and everything has been dandy until trying to install and launch OBS.

This is my output from the CLI:

Bash:
~$ obs
debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/en-GB.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-GB.ini
info: Using preferred locale 'en-GB'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: AMD Ryzen 9 7950X 16-Core Processor
info: CPU Speed: 3000.000MHz
info: Physical Cores: 16, Logical Cores: 32
info: Physical Memory: 31229MB Total, 11470MB Free
info: Kernel Version: Linux 5.15.0-67-generic
info: Distribution: "Zorin OS" "16"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.13
info: Qt Version: 5.12.8 (runtime), 5.12.8 (compiled)
info: Portable mode: false
QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
info: OBS 29.0.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
max buffering: 960 milliseconds
buffering type: dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
libEGL warning: DRI2: failed to create any config
libEGL warning: DRI2: failed to create any config
libEGL warning: MESA-LOADER: failed to open zink: /opt/amdgpu/lib/x86_64-linux-gnu/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /opt/amdgpu/lib/x86_64-linux-gnu/dri, suffix _dri)
 

Anfo

New Member
I got OBS to launch. I checked whether AMD had released new drivers and it appears they did. Because I use Zorin OS, I need to follow their instructions if installing proprietary AMDGPU-PRO drivers:

After removing and installing these new drivers, OBS came to life.
 
Top