Bug#803498: mpv: VO opengl{-hq}: Could not create EGL context!
Andrey Gursky
andrey.gursky at e-mail.ua
Sat Nov 21 19:20:37 UTC 2015
Hi!
mpv 0.12 stopped playing videos (mesa 10.6.8, fglrx 15.9-2, glx-alternatives 0.7.1):
(gdb) r
Starting program: /usr/bin/mpv sample.mkv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd8fec700 (LWP 24886)]
[New Thread 0x7fffd3fff700 (LWP 24887)]
[New Thread 0x7fffd37fe700 (LWP 24888)]
Playing: sample.mkv
[New Thread 0x7fffd2ffd700 (LWP 24889)]
[Thread 0x7fffd2ffd700 (LWP 24889) exited]
(+) Video --vid=1 (*) 'sample' (h264)
(+) Audio --aid=1 --alang=ukr (*) 'sample' (aac)
Audio --aid=2 --alang=jpn (aac)
[New Thread 0x7fffd2ffd700 (LWP 24890)]
[New Thread 0x7fffd27fc700 (LWP 24891)]
[New Thread 0x7fffd1ffb700 (LWP 24892)]
libEGL warning: DRI2: failed to authenticate
[New Thread 0x7fffca368700 (LWP 24893)]
[New Thread 0x7fffc9b67700 (LWP 24894)]
[New Thread 0x7fffc9366700 (LWP 24895)]
[New Thread 0x7fffc8b65700 (LWP 24896)]
[vo/opengl] Can't load OpenGL functions.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd27fc700 (LWP 24891)]
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x000055555564623c in mpegl_init (ctx=0x7fffc4205690, flags=<optimized out>) at ../video/out/opengl/x11egl.c:164
#2 0x0000555555637e50 in init_backend (vo=vo at entry=0x55555597adc0, driver=0x5555558e1ac0 <mpgl_driver_x11egl>, probing=probing at entry=true, vo_flags=vo_flags at entry=0)
at ../video/out/opengl/common.c:583
#3 0x0000555555637fad in mpgl_init (vo=vo at entry=0x55555597adc0, backend_name=<optimized out>, vo_flags=0) at ../video/out/opengl/common.c:622
#4 0x000055555564ac60 in preinit (vo=0x55555597adc0) at ../video/out/vo_opengl.c:393
#5 0x00005555556477b0 in vo_thread (ptr=0x55555597adc0) at ../video/out/vo.c:818
#6 0x00007ffff495b0a4 in start_thread (arg=0x7fffd27fc700) at pthread_create.c:309
#7 0x00007fffefdfc06d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb)
After update of mesa to 11.0.5 mpv doesn't fail anymore:
$ mpv sample.mkv
Playing: sample.mkv
(+) Video --vid=1 (*) 'sample (h264)
(+) Audio --aid=1 --alang=ukr (*) 'sample' (aac)
Audio --aid=2 --alang=jpn (aac)
libEGL warning: DRI2: failed to authenticate
[vo/opengl] Could not create EGL context!
[vo/opengl] Suspected software renderer or indirect context.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
AO: [pulse] 96000Hz stereo 2ch float
VO: [xv] 1024x768 yuv420p
[vo/xv/x11] Disabling screensaver failed (4). Make sure the xdg-screensaver script is installed.
AV: 00:00:00 / 00:23:30 (0%) A-V: 0.000
[vo/xv] X11 can't keep up! Waiting for XShm completion events...
AV: 00:00:04 / 00:23:30 (0%) A-V: -0.000
But with -vo=opengl it fails as Roman stated. Did mpv 0.12 switch to EGL instead of GL? I'm wondering how fglrx supports EGL and whether this could be fixed by glx-alternatives?
Regards,
Andrey
More information about the pkg-multimedia-maintainers
mailing list