<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:drinkcat@chromium.org" title="Nicolas Boichat <drinkcat@chromium.org>"> <span class="fn">Nicolas Boichat</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - X not running with error "Failed to make EGL context current""
href="https://bugs.freedesktop.org/show_bug.cgi?id=97214">bug 97214</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Attachment #125643 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - X not running with error "Failed to make EGL context current""
href="https://bugs.freedesktop.org/show_bug.cgi?id=97214#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - X not running with error "Failed to make EGL context current""
href="https://bugs.freedesktop.org/show_bug.cgi?id=97214">bug 97214</a>
from <span class="vcard"><a class="email" href="mailto:drinkcat@chromium.org" title="Nicolas Boichat <drinkcat@chromium.org>"> <span class="fn">Nicolas Boichat</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=125647" name="attach_125647" title="More tracing in egl_dri2.c">attachment 125647</a> <a href="attachment.cgi?id=125647&action=edit" title="More tracing in egl_dri2.c">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=97214&attachment=125647'>[review]</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>