Bug 29176 - OBS-Studio, Failed to initialize video
Summary: OBS-Studio, Failed to initialize video
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Rémi Verschelde
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-25 13:59 CEST by Markus Robert Keßler
Modified: 2021-09-07 14:09 CEST (History)
3 users (show)

See Also:
Source RPM: obs-studio-23.1.0-3.mga7.tainted.src.rpm
CVE:
Status comment:


Attachments

Description Markus Robert Keßler 2021-06-25 13:59:47 CEST
Description of problem:

OBS-Studio refuses to start due to graphics driver issue:

<quote>

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/de-DE.ini
Attempted path: /usr/share/obs/obs-studio/locale/de-DE.ini
info: Using preferred locale 'de-DE'
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz
info: CPU Speed: 1228.797MHz
info: Physical Cores: 2, Logical Cores: 2
info: Physical Memory: 3926MB Total, 2266MB Free
info: Kernel Version: Linux 5.10.43-desktop-1.mga7
info: Distribution: "Mageia" 7
info: Window System: X11.0 - vendor string: Mageia - vendor release: 12011000
info: Portable mode: false
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 23.1.0 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
        samples per sec: 44100
        speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
error: X Error: GLXBadFBConfig, Major opcode: 152, Minor opcode: 34, Serial: 25
error: Failed to create OpenGL context.
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.

</quote>

If of interest:

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)


How reproducible:

Always


Steps to Reproduce:
1. urpmi obs-studio
2. start obs via start menu or via shell
3.
Comment 1 Markus Robert Keßler 2021-06-26 10:31:26 CEST
In the package info there's this line:

    Packager    : daviddavid <daviddavid>

Could you please check? -- Thanks a lot!
Comment 2 Lewis Smith 2021-06-26 20:35:40 CEST
Thank you for the report.

With my graphics being:
  Device-1: AMD Wrestler [Radeon HD 7310] vendor: Acer Incorporated ALI 
  driver: radeon v: kernel bus ID: 00:01.0 chip ID: 1002:9809 
  Display: x11 server: Mageia X.org 1.20.11 driver: ati,radeon,v4l 
  resolution: 1366x768~60Hz s-dpi: 96 
  OpenGL: 
  renderer: AMD PALM (DRM 2.50.0 / 5.10.45-desktop-2.mga8 LLVM 11.0.1) 
  v: 3.3 Mesa 21.1.3 compat-v: 3.1 direct render: Yes 

Trying this under M8, obs-studio-26.1.2-1.mga8.tainted, LXDE
the application starts OK, but not without errors:
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/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
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_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
QMetaObject::connectSlotsByName: No matching signal for on_transitionRemove_clicked()
+ several warnings.

Seeing this is for Mageia 7 (at end-of-life), I will try it there.

CC: (none) => lewyssmith

Comment 3 Lewis Smith 2021-06-26 20:53:02 CEST
Well, here I am under M7, obs-studio-23.1.0-3.mga7.tainted, Xfce
Graphics:
  Device-1: AMD Wrestler [Radeon HD 7310] vendor: Acer Incorporated ALI 
  driver: radeon v: kernel bus ID: 00:01.0 chip ID: 1002:9809 
  Display: x11 server: Mageia X.org 1.20.11 driver: ati,radeon,v4l 
  resolution: 1366x768~60Hz 
  OpenGL: 
  renderer: AMD PALM (DRM 2.50.0 / 5.10.41-desktop-1.mga7 LLVM 8.0.0) 
  v: 3.3 Mesa 20.2.3 compat-v: 3.1 direct render: Yes 

Once again, it starts OK, with similar errors:
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/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
+ a few warnings.
-----------------
Markus, can you please (install it if necessary) post the output of:
 $ inxi -MSGxx
To give more details of your system & graphics.

Status: NEW => NEEDINFO

Comment 4 Markus Robert Keßler 2021-06-28 14:25:07 CEST
System:
  Host: mga7-64 Kernel: 5.10.43-desktop-1.mga7 x86_64 bits: 64 compiler: N/A 
  Desktop: Xfce 4.14.1 tk: Gtk 3.24.8 wm: xfwm4 dm: LightDM, SDDM 
  Distro: Mageia 7 mga7 
Machine:
  Type: Laptop System: FUJITSU SIEMENS product: LIFEBOOK E8310 v: N/A 
  serial: <root required> Chassis: type: 10 v: E8310 serial: <root required> 
  Mobo: FUJITSU model: FJNB1CE v: 1PCP331350-04 serial: <root required> 
  BIOS: FUJITSU // Phoenix v: Version 1.13 date: 05/19/2008 
Graphics:
  Device-1: Intel Mobile GM965/GL960 Integrated Graphics vendor: Fujitsu Limited. 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:2a02 
  Display: x11 server: Mageia X.org 1.20.11 driver: intel,v4l 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel 965GM (CL) v: 2.1 Mesa 20.2.3 
  direct render: Yes
Comment 5 Lewis Smith 2021-06-28 16:07:23 CEST
Thank you for this information. To recap the original fault:
> info: Initializing OpenGL...
> error: X Error: GLXBadFBConfig, Major opcode: 152, Minor opcode: 34, Serial: 25
> error: Failed to create OpenGL context.
> 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.
Copying Aurélien who is more familiar with this area.

What is your view on upgrading to Mageia 8? You will have to in order to receive support (Mageia 7 is finishing). And to see whether this problem still happens.

Status: NEEDINFO => NEW
CC: (none) => ouaurelien

Comment 6 Markus Robert Keßler 2021-06-28 17:19:15 CEST
Hi,
moving to the new distro is a good point, for sure.
I plan to do so, as soon as time permits.
But, to say it honestly: It is annoying having to do a complete reinstall once per year. It would be better to have a "long term support", LTS installation, as ubuntu and others have.
There are several packages not available or not fully supported in MGA, so, it always eats up a lot of time to rebuild these rpms (vpnc with AVM support etc.) to finally have a fully working installation again.
Thanks for understanding.
Best regards,
Markus
Comment 7 Aurelien Oudelet 2021-06-28 22:39:04 CEST
Off topic: LTS version is in pipeline.

Are you sure OBS runs well on this system before?
Such warning:
> info: Initializing OpenGL...
> error: X Error: GLXBadFBConfig, Major opcode: 152, Minor opcode: 34, Serial: 25
> error: Failed to create OpenGL context.
> 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.

This is not encouraging.

For this particular issue, it seems OBS can't run on your Intel integrated graphic chip. For as far as I see in comment 4, you have the latest Mesa stack for Mageia7 installed, not the latest kernel.

Perhaps, try fully updating Mageia 7 to latest kernel.

Also, adding some useful user view of OBS.

CC: (none) => vinceff

Comment 8 Lewis Smith 2021-06-29 11:16:24 CEST
I should have added this OpenGL bit of console O/P from my own M7 system where OBS does work:
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter X.Org AMD PALM (DRM 2.50.0 / 5.10.45-desktop-2.mga7, LLVM 8.0.0)
info: OpenGL loaded successfully, version 3.3 (Core Profile) Mesa 20.2.3, shading language 3.30

which supports the sad conclusion of Aurélien above: "it seems OBS can't run on your Intel integrated graphic chip".
However, this is worth a try: install if necessary 'glmark2', and try it:
 $ glmark2
If that works, the problem certainly seems to be with obs-studio. CC'ing akien for his opinion, despite the lateness of the day for M7.

@Markus
I had checked that our Mesa versions are the same; but not noticed the kernel difference:
- you Kernel: 5.10.43-desktop-1.mga7 x86_64 bits
- me 5.10.45-desktop-2.mga7
So certainly worth "try fully updating Mageia 7 to latest kernel".

In reply to your comment 6, you should be thinking *upgrade*, not "complete reinstall". This can preserve adaptations. Ideally, back up the Mageia system partition entirely beforehand in such a way that you can restore it - both necessarily from another system.

CC: (none) => rverschelde

Comment 9 Markus Robert Keßler 2021-06-29 12:37:50 CEST
Hi,

trying to install glmark2 this requisits to install either nvidia-nsight or lib64png12_0.

Selecting nvidia-nsight prior to glmark2, the command stops instantly:
glmark2: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

When selecting lib64png12_0 for glmark2, the command runs, it opens a graphics window and shows a rotating horse and then a rotating wooden box, but after that  glmark crashes:

=======================================================
    glmark2 2017.07
=======================================================
    OpenGL Information
    GL_VENDOR:     Intel Open Source Technology Center
    GL_RENDERER:   Mesa DRI Intel(R) 965GM (CL)
    GL_VERSION:    2.1 Mesa 20.2.3
=======================================================
[build] use-vbo=false: FPS: 63 FrameTime: 15.873 ms
[build] use-vbo=true: FPS: 70 FrameTime: 14.286 ms
[texture] texture-filter=nearest: FPS: 69 FrameTime: 14.493 ms
[texture] texture-filter=linear: FPS: 69 FrameTime: 14.493 ms
Speicherzugriffsfehler (Speicherabzug geschrieben)
/* German for "coredump"... */

BR
Comment 10 Markus Robert Keßler 2021-06-29 12:40:22 CEST
Sorry, forgot to mention: kernel is now 5.10.45-desktop-2.mga7
Comment 11 Lewis Smith 2021-06-29 21:02:09 CEST
Thanks for these extra efforts. Strange that installing glmark2 with your Intel video should offer an nVidia dependency. You ended up chosing the sensible one.
The fact that glmark2 soon crashed is not a good sign, suggesting that openGL is not happy with your video system. We may have to change the bug direction to that.

I see no choice but to assign this initially to akien, but do not be surprised if he says "Upgrade to Mageia 8 and revisit this". The bug can then be carried forward to M8 by:
- changing the version to 8
- updating the SRPM ID appropriately.

Assignee: bugsquad => rverschelde
CC: rverschelde => (none)

Comment 12 Aurelien Oudelet 2021-07-06 13:15:29 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 13 Marja Van Waes 2021-09-07 14:09:17 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.