<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [PATCH] glx: usability: *must* also log issue context ("failed to open drm device")."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98163">98163</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PATCH] glx: usability: *must* also log issue context ("failed to open drm device").
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>patch
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>GLX
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andi@lisas.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=127139" name="attach_127139" title="[PATCH] glx: usability: *must* also log issue context (at "failed to  open drm device").">attachment 127139</a> <a href="attachment.cgi?id=127139&action=edit" title="[PATCH] glx: usability: *must* also log issue context (at "failed to  open drm device").">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=98163&attachment=127139'>[review]</a>
[PATCH] glx: usability: *must* also log issue context (at "failed to  open drm
device").

Hello,

[closely related complaint:
<a href="https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1539046">https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1539046</a> ]

On Debian with current libgl1-mesa-glx:i386 12.0.3-1,
when doing [issue reproduction...]
- install mpv
- make sure that user does not show "video" group in "groups" command
- mpv MOVIE.mpeg

I am getting

   libGL error: failed to open drm device: Permission denied
   libGL error: failed to load driver: r200

which has a problematic lack of useful context info
(most importantly, the device name is missing).


 LANG=C ls -l /dev/dri
total 0
crw-rw----+ 1 root video 226,   0 Sep  8 21:29 card0
crw-rw----  1 root video 226,  64 Sep  8 21:29 controlD64
crw-rw----+ 1 root video 226, 128 Sep  8 21:29 renderD128


IMHO the libGL error message has rather poor usability,
leading to the issues of
having a
not sufficiently easily correctable configuration problem
as observed by the other public report and mine.

thus I decided to create
the attached UNTESTED patch (well, git commit on trunk).


I am submitting this issue as
a bug report (with UNTESTED patch) rather than
a mailing list patch,
since completely unrelated outside developers
really can't be bothered
(there's the "usability" thingy again)
to have e.g. balance of a busy work/life endangered by
doing process/build/install/test of a
completely foreign multi-100-MB component
on a rather slow system to boot *),
for a nine-liner diffstat
(where the implementer would originally have needed
an additional measly 10s to have proper reporting provided),
as opposed to core developers
who are fully familiar and thus
always have that kind of environment fully active/testable.
So, probably simply consider this to be a more helpful
"issue report with suggestion of a patch and reproduction hints" rather than
"issue report".

Thanks, also for a very nice and important infrastructure component!

Andreas Mohr


*)
# LANG=C apt-get source libgl1-mesa-glx:i386
Reading package lists... Done
Picking 'mesa' as source package instead of 'libgl1-mesa-glx'
NOTICE: 'mesa' packaging is maintained in the 'Git' version control system at:
<a href="https://anonscm.debian.org/git/pkg-xorg/lib/mesa.git">https://anonscm.debian.org/git/pkg-xorg/lib/mesa.git</a>
Please use:
git clone <a href="https://anonscm.debian.org/git/pkg-xorg/lib/mesa.git">https://anonscm.debian.org/git/pkg-xorg/lib/mesa.git</a>
to retrieve the latest (possibly unreleased) updates to the package.
E: You don't have enough free space in ..</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>