elementary / elementary/videos
Problem with hardware acceleration with Intel-Graphics (Haswell)
- Dominant language
- Vala
- Stars
- 57
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
If I start a mp4-video in terminal with io.elementary.videos the following failure is in terminal displayed:
tux@tux-AspireG:~/Videos$ io.elementary.videos 'Simple Minds - Glittering Prize Acoustic.mp4'
(io.elementary.videos:3823): GLib-GIO-CRITICAL **: 20:16:04.921: g_mount_get_default_location: assertion 'G_IS_MOUNT (mount)' failed
(io.elementary.videos:3823): GLib-GIO-CRITICAL **: 20:16:04.928: g_mount_get_default_location: assertion 'G_IS_MOUNT (mount)' failed
(io.elementary.videos:3823): GLib-GIO-CRITICAL **: 20:16:05.065: g_mount_get_default_location: assertion 'G_IS_MOUNT (mount)' failed
(io.elementary.videos:3823): GLib-GIO-CRITICAL **: 20:16:05.084: g_mount_get_default_location: assertion 'G_IS_MOUNT (mount)' failed
libGL error: failed to create drawable
libGL error: failed to create drawable
(io.elementary.videos:3823): Gdk-ERROR **: 20:17:07.834: The program 'io.elementary.videos' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContext'.
(Details: serial 31957 error_code 158 request_code 152 (GLX) minor_code 26)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/Breakpoint ausgelöst
Hardwareaccelleration with vlc and mpv from app store installed runs fine without failure!
tux@tuxAspire-G:~/Videos$ vlc 'Simple Minds - Glittering Prize Acoustic.mp4'
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[0000560ec774d570] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
[00007f10e4c07a90] avcodec decoder: Using Intel i965 driver for Intel(R) Haswell Mobile - 2.1.0 for hardware decoding
QObject::~QObject: Timers cannot be stopped from another thread
tux@tux-Aspire-G:~/Videos$ mpv 'Simple Minds - Glittering Prize Acoustic.mp4'
Playing: Simple Minds - Glittering Prize Acoustic.mp4
(+) Video --vid=1 (*) (h264 1280x720 25.000fps)
(+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [opengl] 1280x720 vaapi[nv12]
AV: 00:00:48 / 00:04:07 (19%) A-V: 0.000
Hope this was helpfull!
Contributor guide
Research direction
No source file or test is named. Start by reproducing the terminal command with the reported Intel Haswell graphics setup, then compare the application's GLX and hardware-acceleration behavior with the working VLC and mpv runs. Done means the MP4 opens without the GLXBadContext crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- computer-graphics, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100