[Mesa-dev] [Bug 97214] X not running with error "Failed to make EGL context current"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 9 18:26:46 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97214

Nicolas Boichat <drinkcat at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #125643|0                           |1
        is obsolete|                            |

--- Comment #9 from Nicolas Boichat <drinkcat at chromium.org> ---
Created attachment 125647
  --> https://bugs.freedesktop.org/attachment.cgi?id=125647&action=edit
More tracing in egl_dri2.c

I see. When the second display is initialized, there is still an active
context, it seems (dri2_display_release should not be called on the first call
to dri2_make_current):

libEGL debug: Native platform type: drm (autodetected)
libEGL debug: dri2_initialize 0x90d7a0 0x9a2f10 (dri2_dpy=(null))
libEGL debug: the best driver is DRI2
libEGL debug: EGL user error 0x3009 (EGL_BAD_MATCH) in dri2_create_context
libEGL debug: dri2_make_current 0x90d7a0 0x9a2f10 (nil) (nil) 0x99dbf0
libEGL debug: dri2_display_release 0x9a2f10 2
refcount -> 1

This causes the reference count to drop to zero later on:
libEGL debug: dri2_make_current 0x90d7a0 0x9a2f10 (nil) (nil) (nil)
libEGL debug: dri2_display_release 0x9a2f10 1
refcount -> 0 => display is destroyed
libEGL debug: dri2_make_current 0x90d7a0 0x9a2f10 (nil) (nil) 0x99dbf0
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglMakeCurrent

One more patch to confirm this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160809/b7125e76/attachment-0001.html>


More information about the mesa-dev mailing list