Question / Help Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.

M1niCrusher

New Member
It used to work fine when I havn't installed GPU drivers.
After installing GPU drivers, it just showed a dialog and said "Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated."
But wait, I just installed the newest version of graphcis drivers!

I have tried install Vulkan OpenCL OpenGL drivers, reboot, reinstall OBS and reinstall system and graphics drivers, they all didn't work.

I tried to find something online, but i couldn't find the right solution, I'm sorry. :(

So what am I gonna do?


System Information:
Base Feature Support
  • Supported APIs:
    • OpenGL 4.5 and GLX 1.4
    • OpenCL™1.2 (not supported for 1st generation GCN products)
    • Vulkan™ 1.1
    • VDPAU/VAAPI
  • Basic display features
  • Basic power management features
    • Note: AMD does not perform QA validation for S4 (hibernation) function as it is highly platform dependent.
  • KMS (Kernel Mode Setting) and ADF (Atomic Display Framework) support
  • GPL compliant kernel module
  • AMD FirePro™ Features (EDID Management and 30-bit color)
  • FreeSync support (Please refer to this FAQ for more information)
  • DirectGMA for OpenGL
  • Install script and native packages for all supported operating systems
(From AMD website)
 

Narcogen

Active Member
I believe I read earlier this week that you have to use OpenGL because Vulkan is not yet supported. Aside from that-- perhaps the error is because the driver is too new? Maybe rollback?
 

Harold

Active Member
from the terminal
"glxinfo | grep OpenGL"

And post the session log from ~/.config/obs-studio/logs
 

M1niCrusher

New Member
I believe I read earlier this week that you have to use OpenGL because Vulkan is not yet supported. Aside from that-- perhaps the error is because the driver is too new? Maybe rollback?
Actually I installed the OpenGL driver first and it didn't work and then I installed the Vulkan.
I have also tried a 4-month-old driver and the same things happened.
 

M1niCrusher

New Member
from the terminal
"glxinfo | grep OpenGL"
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Radeon RX Vega
OpenGL core profile version string: 4.6.13529 Core Profile Context 18.20.2.15
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.13529 Compatibility Profile Context 18.20.2.15
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: 4.5.13529 Compatibility Profile Context 18.20.2.15
OpenGL ES profile shading language version string: 4.50
OpenGL ES profile extensions:
 

M1niCrusher

New Member
And post the session log from ~/.config/obs-studio/logs
But im sorry, I can't even find "obs-studio" from "~/.config/", I'm not sure why.
SNAP.png
 

Harold

Active Member
You probably installed the snap store version of OBS which does things we don't support.

Reinstall using the official PPA.
 

M1niCrusher

New Member
from the terminal
"glxinfo | grep OpenGL"

And post the session log from ~/.config/obs-studio/logs
Oh I did find something here:
"~/snap/obs-studio/55/.config/obs-studio/logs/2018-06-20 21-05-33.txt"
21时05分33秒.222: CPU Name: AMD Ryzen 7 1800X Eight-Core Processor
21时05分33秒.222: CPU Speed: 3252.420MHz
21时05分33秒.223: Physical Cores: 8, Logical Cores: 16
21时05分33秒.223: Physical Memory: 24114MB Total, 20118MB Free
21时05分33秒.223: Kernel Version: Linux 4.15.0-23-generic
21时05分33秒.223: Distribution: "Ubuntu Core" "16"
21时05分33秒.238: Portable mode: false
21时05分33秒.332: OBS 21.1.2-modified (linux)
21时05分33秒.332: ---------------------------------
21时05分33秒.332: ---------------------------------
21时05分33秒.332: audio settings reset:
21时05分33秒.332: samples per sec: 44100
21时05分33秒.332: speakers: 2
21时05分33秒.364: ---------------------------------
21时05分33秒.364: Initializing OpenGL...
21时05分34秒.599: X Error: GLXBadFBConfig
21时05分34秒.599: Failed to create OpenGL context.
21时05分34秒.599: Failed to create context!
21时05分34秒.599: device_create (GL) failed
21时05分34秒.602: Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.
21时05分37秒.616: Freeing OBS context data
21时05分37秒.618: == Profiler Results =============================
21时05分37秒.618: run_program_init: 5682.74 ms
21时05分37秒.618: ┣OBSApp::AppInit: 68.266 ms
21时05分37秒.618: ┃ ┗OBSApp::InitLocale: 19.415 ms
21时05分37秒.618: ┗OBSApp::OBSInit: 1520.41 ms
21时05分37秒.618: ┣obs_startup: 34.954 ms
21时05分37秒.618: ┗OBSBasic::OBSInit: 1270.11 ms
21时05分37秒.618: ┣OBSBasic::InitBasicConfig: 0.074 ms
21时05分37秒.618: ┣OBSBasic::ResetAudio: 0.111 ms
21时05分37秒.618: ┗OBSBasic::ResetVideo: 1266.8 ms
21时05分37秒.618: obs_hotkey_thread(25 ms): min=0.053 ms, median=0.088 ms, max=123.258 ms, 99th percentile=8.132 ms, 99.4012% below 25 ms
21时05分37秒.618: audio_thread(Audio): min=0 ms, median=0.008 ms, max=0.033 ms, 99th percentile=0.029 ms
21时05分37秒.618: =================================================
21时05分37秒.618: == Profiler Time Between Calls ==================
21时05分37秒.618: obs_hotkey_thread(25 ms): min=25.112 ms, median=25.167 ms, max=148.35 ms, 93.9759% within ±2% of 25 ms (0% lower, 6.0241% higher)
21时05分37秒.618: =================================================
21时05分37秒.619: Number of memory leaks: 172
 

Attachments

  • 2018-06-16 19-19-59.txt
    2.3 KB · Views: 371
  • 2018-06-20 21-05-33.txt
    2.4 KB · Views: 227

kksmash

New Member
try this command


LIBGL_ALWAYS_SOFTWARE=1 obs-studio

or:

For Mint cinnamon working but with:

LIBGL_ALWAYS_SOFTWARE=1 obs
That worked on my lubuntu 0.14.1 build on Ubuntu 19.10. But I need to enter that command every time I wanna open obs.
 

CesynhoCoast

New Member
[QUOTE = "kksmash, postagem: 428868, membro: 221011"]
Isso funciona no meu lubuntu 0.14.1 compilado no Ubuntu 19.10. Mas preciso digitar esse comando toda vez que quiser abrir obs.
[/ CITAR]
você pode criar um (bash) eu fiz isso e depois um atalho.
 

Attachments

  • Screen Capture_20200224234349.png
    Screen Capture_20200224234349.png
    329.5 KB · Views: 667

neyfrota

New Member
That worked on my lubuntu 0.14.1 build on Ubuntu 19.10. But I need to enter that command every time I wanna open obs.

You can edit OBS desktop entry and add LIBGL_ALWAYS_SOFTWARE variable for regular launch (instead terminal launch)

1 - Edit desktop entry. "sudo vi /usr/share/applications/com.obsproject.Studio.desktop" in my system. check yours
2 - locate Exec line. "Exec=obs" in my system
3 - Add env variable before command. "Exec=env LIBGL_ALWAYS_SOFTWARE=1 obs"
4 - save and done
 

NestorLS

New Member
That worked on my lubuntu 0.14.1 build on Ubuntu 19.10. But I need to enter that command every time I wanna open obs.

En mi caso he modificado en: Menú principal -> Aplicaciones -> Sonido y vídeo -> OBS Studio -> Propiedades -> Command

Reemplazar: obs
Por: env LIBGL_ALWAYS_SOFTWARE=1 obs

Aceptar

Cerrar Menú principal
 

ricegf

New Member
Created an account just to say that I got this error on Pop OS! 20.04. After 30 minutes of chasing my tail, I found a little Zoom window that said "opening Zoom..." which was apparently the cause. Once that window was closed, OBS opened up like a champ again. *sigh*
 

zehdias57

New Member
I need help for problem:
Initializing OpenGL...
15:35:12.062: ARB_GLX_create_context not supported!
15:35:12.062: Failed to create context!
15:35:12.062: device_create (GL) failed
15:35:12.063: Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.
 
Top