[Solved] upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
efball
Newcomer
Posts: 13
Joined: Sun Jul 31, 2016 12:56 am
United States of America

[Solved] upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Post by efball »

Everything was working under Ubuntu 18.04. I upgraded to Ubuntu 20.4 and mythtv .31 and mythfrontend won't start. The backend is fine. I get this:

OpenGL: makeCurrent failed
Handling Segmentation fault
Segmentation fault (core dumped)

I tried: MYTHTV_NO_EGL=1 mythfrontend
mythfrontend -O ThemePainter=qt
mythfrontend -O ThemePainter=opengl
mythfrontend -O ThemePainter=vaapi

The ThemePainter option doesn't do anything.

gpu is 2nd gen GT 710, driver is ubuntu nvidia-driver-470 package
glxgears work.

If I start the frontend as root it runs with and error: "warning: OpenGL is no available" and video won't play.
I deleted all the files in ~/.mythtv except the config.xml

A 2nd machine also had trouble after updating by I can get it to run with "MYTHTV_NO_EGL=1 mythfrontend" and everything works (GT 430, nvidia-drivers-390). So the backend is tested and working fine.

mythfrontend --version
Please attach all output as a file in bug reports.
MythTV Version : v31.0-v31.0
MythTV Branch : fixes/31
Network Protocol : 91
Library API : 31.20200101-1
QT Version : 5.12.5
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_egl using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_libbluray_external using_xrandr using_profiletype using_systemd_notify using_systemd_journal using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_egl using_vaapi using_nvdec using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2 using_libmp3lame

2021-09-08 18:26:32.475017 N Setting 'ThemePainter' being forced to 'qt'
2021-09-08 18:26:32.482322 I Listening on TCP 0.0.0.0:6547
2021-09-08 18:26:32.484194 I Listening on TCP [::]:6547
2021-09-08 18:26:36.981680 I Loading en_us translation for module mythfrontend
2021-09-08 18:26:36.990825 E LIRC: Failed to connect to Unix socket '/dev/lircd'
eno: No such file or directory (2)
2021-09-08 18:26:36.990880 I No joystick configuration found, not enabling joystick control
2021-09-08 18:26:36.990888 I UDPListener: Enabling
2021-09-08 18:26:36.991604 I Binding to UDP 0.0.0.0:6948
2021-09-08 18:26:36.991669 I Binding to UDP [::]:6948
2021-09-08 18:26:37.040665 I Using Frameless Window
2021-09-08 18:26:37.041171 I Display: Have main widget
2021-09-08 18:26:37.041988 I UI Screen Resolution: 1920 x 1080
2021-09-08 18:26:37.085649 I Display: Have main window
2021-09-08 18:26:37.086625 I Display: Found screen number 1 (DVI-D-0)
2021-09-08 18:26:37.192400 E OpenGL: makeCurrent failed
Handling Segmentation fault
Segmentation fault (core dumped)

I'm using the fvwm window manager.
efball
Newcomer
Posts: 13
Joined: Sun Jul 31, 2016 12:56 am
United States of America

Re: upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Post by efball »

I tried downgrading the video driver to 390 and 460, but no difference.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Post by paulh »

Are you using the Mythbuntu PPA or just using the distro supplied version of MythTV?

If you are not using the PPA then I would start by adding it so you will get the latest fixes/31 version of MythTV.

How to add the PPA has been covered lots of time on this forum for example here viewtopic.php?f=36&t=4453&p=22115#p22115
efball
Newcomer
Posts: 13
Joined: Sun Jul 31, 2016 12:56 am
United States of America

Re: upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Post by efball »

I was using the Ubuntu packages. I switched to the PPA, but no difference.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Post by paulh »

OK it was worth a try.

Maybe a backtrace will give some glue what is going on
viewtopic.php?f=36&t=4470&p=22091#p22091
efball
Newcomer
Posts: 13
Joined: Sun Jul 31, 2016 12:56 am
United States of America

Re: upgrade to .31 - mythfrontend won't start: OpenGL: makeCurrent failed

Post by efball »

I got it to work. I'm using two TVs as displays and I was running separate Xservers for each display. I switched to one Xserver and mythfrontend works fine, but I have some new problems to fix. Thanks for the help.
Post Reply