Bug 32417

Summary: obs-studio: Failed to initialize video
Product: Mageia Reporter: Markus Robert Keßler <mandrake>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: Normal    
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: obs-studio-29.1.3-1.mga9.tainted.src.rpm CVE:
Status comment:

Description Markus Robert Keßler 2023-10-19 21:47:53 CEST
Description of problem:

Obs-Studio refuses to run. Invoked in a shell it shows this log:

$ 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/de-DE.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/de-DE.ini
info: Using preferred locale 'de-DE'
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: Intel(R) Core(TM)2 Duo CPU     T7100  @ 1.80GHz
info: CPU Speed: 1954.198MHz
info: Physical Cores: 2, Logical Cores: 2
info: Physical Memory: 3919MB Total, 504MB Free
info: Kernel Version: Linux 6.4.9-desktop-4.mga9
info: Distribution: "Mageia" 9
info: Desktop Environment: XFCE (XFCE)
info: Session Type: x11
info: Window System: X11.0 - vendor string: Mageia - vendor release: 12101008
info: Qt Version: 6.4.1 (runtime), 6.4.1 (compiled)
info: Portable mode: false
info: OBS 29.1.3 (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...
error: Unable to create EGL context: EGL_BAD_MATCH
error: Failed to create context!
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.
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 6594.46 ms
info:  ┣OBSApp::AppInit: 17.987 ms
info:  ┃ ┗OBSApp::InitLocale: 4.768 ms
info:  ┗OBSApp::OBSInit: 250.844 ms
info:    ┣obs_startup: 5.603 ms
info:    ┗OBSBasic::OBSInit: 117.837 ms
info:      ┣OBSBasic::InitBasicConfig: 0.316 ms
info:      ┣OBSBasic::ResetAudio: 1.439 ms
info:      ┗OBSBasic::ResetVideo: 115.906 ms
info: obs_hotkey_thread(25 ms): min=0.16 ms, median=0.372 ms, max=10.845 ms, 99th percentile=1.879 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.038 ms, median=0.074 ms, max=0.714 ms, 99th percentile=0.574 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.245 ms, median=25.487 ms, max=35.961 ms, 56.3786% within ±2% of 25 ms (0% lower, 43.6214% higher)
info: =================================================
info: Number of memory leaks: 550
$ 


Version-Release number of selected component (if applicable):

29.1.3


How reproducible:

Always


Steps to Reproduce:
1. Install obs-studio
2. invoke either via start menu or in a shell


Additiona HW-info:

$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 03)
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 14)
1c:03.0 CardBus bridge: O2 Micro, Inc. OZ711SP1 Memory CardBus Controller (rev 01)
1c:03.1 CardBus bridge: O2 Micro, Inc. OZ711SP1 Memory CardBus Controller (rev 01)
1c:03.2 SD Host controller: O2 Micro, Inc. Integrated MMC/SD Controller (rev 02)
1c:03.3 Mass storage controller: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)
$
Comment 1 Lewis Smith 2023-10-20 09:38:21 CEST
Thank you for the report.
One can believe that it is a video driver problem. The bit that looks vital in the terminal output is:
> info: ---------------------------------
> info: Initializing OpenGL...
> error: Unable to create EGL context: EGL_BAD_MATCH
> error: Failed to create context!
> 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.
and for your graphics:
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 03)
 Unsure whethr this matters:
info: Portable mode: false

Trying this here, I installed (with Tainted repos enabled):
      1/4: lib64mbedcrypto7      #############################################
      2/4: lib64mbedx509_1       #############################################
      3/4: lib64mbedtls14        #############################################
      4/4: obs-studio            #############################################
obs-studio-29.1.3-1.mga9.tainted

My graphics:
 $ inxi -G
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 600] driver: i915 v: kernel
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: intel,v4l dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.7 renderer: Mesa Intel UHD Graphics 600 (GLK
    2)

Using LXDE (I doubt that the exact desktop matters), OBS Studio starts fine from the menu. Equivalent part of my terminal output is:
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Intel Mesa Intel(R) UHD Graphics 600 (GLK 2)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.1.7, shading language 4.60
info: ---------------------------------

To better describe your hardware, please post the output of:
 $ inxi -MG

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 2 Markus Robert Keßler 2023-10-21 10:34:15 CEST
$ inxi -MG
Machine:
  Type: Laptop System: FUJITSU SIEMENS product: LIFEBOOK E8310 v: N/A
    serial: <superuser required>
  Mobo: FUJITSU model: FJNB1CE v: 1PCP331350-02 serial: <superuser required>
    BIOS: FUJITSU // Phoenix v: Version 1.16 date: 05/31/2010
Graphics:
  Device-1: Intel Mobile GM965/GL960 Integrated Graphics driver: i915
    v: kernel
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: intel,v4l dri: i965 gpu: i915 resolution: 1: N/A 2: 1920x1080~60Hz
  API: OpenGL v: 2.1 Mesa 23.1.7 renderer: Mesa Intel 965GM (CL)
$ 

I also tried with lower resolution (640x480) but same output.

Thanks for you help!
Comment 3 Markus Robert Keßler 2023-10-22 21:48:17 CEST
Maybe this is related to the subject:

When invoking supertuxkart, a message says

"Your graphics driver appears to be very old. Please cfheck if an update is available. Supertuxkart recommends a driver supporting OpenGL 3.3 or better."

I suspect this has similar root cause.
Comment 4 sturmvogel 2023-10-22 22:29:11 CEST
This 16 years old laptop will hardly be able to work with any up to date software which relies on graphic card...

But regarding obs-studio you can try following from a terminal:
LIBGL_ALWAYS_SOFTWARE=1 obs
Comment 5 sturmvogel 2023-10-22 22:40:29 CEST
Your 16 years old CPU/chipset only supports Opengl 1.5 and Directx 9.
obs-studio for linux needs at least Opengl 3.3.

So your hardware specs does not fulfill the minimum system requirements for obs-studio.

Sources:
https://www.intel.de/content/www/de/de/support/articles/000005524/graphics.html
https://github.com/snapcrafters/obs-studio/issues/86

So this bug should be closed as WONTFIX.
Comment 6 sturmvogel 2023-10-22 22:48:20 CEST
And here additional minimum system requirements:
https://obsproject.com/wiki/System-Requirements

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => WONTFIX

Comment 7 Markus Robert Keßler 2023-10-31 15:14:56 CET
-- Same hardware, but Ubuntu instead of Mageia, and OBS-Studio works. --

So, this is not a matter of HW revision, it is a matter of
(the will to create a) driver for it.