Bug 1158697 - intel_do_flush_locked failed: No such file or directory
Summary: intel_do_flush_locked failed: No such file or directory
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-29 21:32 UTC by Fabrice Bellet
Modified: 2015-12-02 16:27 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-02 04:36:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabrice Bellet 2014-10-29 21:32:12 UTC
Hi!

On a thinkpad X220 (Intel HD Graphics 3000), with libva, libva-intel-driver, gstreamer1-vaapi installed, current Fedora-21, I fail to use the hardware video decoder coupled with the gstreamer cluttersink element (like totem for example, which uses this combination) :

$ wget http://samples.mplayerhq.hu/V-codecs/h264/NeroAVC.mp4
$ gst-launch-1.0 filesrc location=NeroAVC.mp4 ! qtdemux ! h264parse ! vaapidecode ! videoconvert ! cluttersink
libva info: VA-API version 0.35.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL;
Pipeline is PREROLLED ...
intel_do_flush_locked failed: No such file or directory

Breakpoint 1, do_flush_locked (brw=<optimized out>) at intel_batchbuffer.c:282
282	      fprintf(stderr, "intel_do_flush_locked failed: %s\n", strerror(-ret));
(gdb) bt
#0  0x00007fffe2c846ba in _intel_batchbuffer_flush (brw=<optimized out>) at intel_batchbuffer.c:282
#1  0x00007fffe2c846ba in _intel_batchbuffer_flush (brw=0x1d7d398, file=0x0, 
    file@entry=0x7fffe2e05ca0 "brw_context.c", line=8681960, line@entry=231) at intel_batchbuffer.c:330
#2  0x00007fffe2c84a8f in _intel_batchbuffer_flush (brw=brw@entry=0x1d7d398, file=file@entry=0x7fffe2e05ca0 "brw_context.c", line=line@entry=231) at intel_batchbuffer.c:295
#3  0x00007fffe2ca9855 in intel_glFlush (ctx=0x1d7d398) at brw_context.c:231
#4  0x00007fffe29f2778 in _mesa_make_current (newCtx=newCtx@entry=0x0, drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at ../../src/mesa/main/context.c:1629
#5  0x00007fffe2cab47f in intelUnbindContext (driContextPriv=<optimized out>) at brw_context.c:909
#6  0x00007fffe2c4da95 in driUnbindContext (pcp=0x1d022a0) at dri_util.c:579
#7  0x00007fffed4dd585 in MakeContextCurrent (dpy=0x822760, draw=73400331, read=73400331, gc_user=0x832e00) at glxcurrent.c:229
#8  0x00007fffed2bc5d0 in vaCopySurfaceGLX_impl_libva (ctx=0x1cb5e00, gl_surface=0x2d1fea0, surface=<optimized out>, flags=<optimized out>) at va_glx_impl.c:1060
#9  0x00007fffed75c52f in gst_vaapi_texture_put_surface () at /lib64/libgstvaapi-glx-1.4.so.0
#10 0x00007fffe8675f76 in clutter_gst_gl_texture_upload_upload (sink=0x8479e8, buffer=0x7fffdc099670)
    at ./clutter-gst-video-sink.c:1542
#11 0x00007fffe867787e in clutter_gst_source_dispatch (source=0x1ca60a0, callback=0x0, user_data=0x8479e8)
    at ./clutter-gst-video-sink.c:627
#12 0x00007ffff7385afb in g_main_context_dispatch (context=0x1c6b500) at gmain.c:3111
#13 0x00007ffff7385afb in g_main_context_dispatch (context=context@entry=0x1c6b500) at gmain.c:3710
#14 0x00007ffff7385e98 in g_main_context_iterate (context=0x1c6b500, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3781
#15 0x00007ffff73861c2 in g_main_loop_run (loop=0x858ed0) at gmain.c:3975
#16 0x00007ffff7b0773a in gst_bus_poll (bus=0x7c81f0 [GstBus], events=27, timeout=0) at gstbus.c:1091
#17 0x00000000004046e8 in event_loop (pipeline=0x1ca80e0 [GstPipeline], blocking=blocking@entry=0, do_progress=do_progress@entry=1, target_state=target_state@entry=GST_STATE_PLAYING) at gst-launch.c:512
#18 0x000000000040362b in main (argc=13, argv=0x7fffffffe008) at gst-launch.c:1062
(gdb)

Comment 1 Fabrice Bellet 2014-10-29 21:54:24 UTC
added a comment on https://bugs.freedesktop.org/show_bug.cgi?id=71759 which seems related.

Comment 2 Fabrice Bellet 2014-10-30 15:01:06 UTC
Surprising, it seems related to dri3 being enabled. Setting the environment variable LIBGL_DRI3_DISABLE, and it works fine.

Comment 3 Berend De Schouwer 2015-05-22 07:59:13 UTC
I get this in totem with Fedora 22.

lspci -n:
00:02.0 0300: 8086:0166 (rev 09)

lspci:
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)

Comment 4 Berend De Schouwer 2015-05-22 08:30:45 UTC
A reboot sometimes fixes this for me.  I normally suspend / un-suspend my laptop instead of shutdown because of #1194153

Duplicating it might require a long uptime or multiple suspend / un-suspend cycles.

Comment 5 Fedora End Of Life 2015-11-04 11:51:59 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2015-12-02 04:36:23 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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