<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Le 10/02/2025 à 11:19, Carsten Haitzler
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:20250210101917.bcff42a5aafea67f22620ac6@rasterman.com">
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">If I guess correctly what's happening with my test: X clients never get
this error, and so they wait. Is that it?
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
they should...
strace would be the next port of call - but i shall assume they are sitting in
select/epoll waiting on something.
find the simplest app you can that doesn't work and i guess it's time to dig.
in fact trying your socat thing here.. a lot of things work. libreoffice works.
gedit works. my stuff (that does ximage fallback) works. anything qt does
not... in fact... i think i spotted the problem. simplest thing that doesn't
work:
glxgears
i have not dug much, but it seems qt is trying to use gl ... and thus anything
using qt is not working. gl is hanging.
so there's your core problem... without digging more i can't be sure but
getting gl to work remotely these days is not a great idea :)
nothing to do with shm. it's opengl. :)
</pre>
</blockquote>
<br>
<span _d-id="4369" class="--l --r sentence_highlight">I wonder if
there aren't two (similar but distinct) problems, one with GLX (or
DRI?), the other with MIT-SHM<br>
<br>
- glxinfo (rather minimalist), seems to wait for some reply :<br>
<br>
$ DISPLAY=localhost:1 xtrace -n glxinfo<br>
../..<br>
000:<:0009: 12: GLX-Request(152,19): glXQueryServerString
context_tag=0x00000000 name=unknown:0x000020f6<br>
000:>:0009:40: Reply to glXQueryServerString: string='mesa'<br>
000:<:000a: 12: Request(98): QueryExtension name='GLX'<br>
000:>:000a:32: Reply to QueryExtension: present=true(0x01)
major-opcode=152 first-event=95 first-error=158<br>
000:<:000b: 12: Request(98): QueryExtension name='GLX'<br>
000:>:000b:32: Reply to QueryExtension: present=true(0x01)
major-opcode=152 first-event=95 first-error=158<br>
000:<:000c: 12: GLX-Request(152,7): glXQueryVersion
client_major_version=1 client_minor_version=4<br>
000:>:000c:32: Reply to glXQueryVersion: server_major_version=1
server_minor_version=4<br>
000:<:000d: 12: Request(98): QueryExtension name='DRI3'<br>
000:<:000e: 16: Request(98): QueryExtension name='Present'<br>
000:>:000d:32: Reply to QueryExtension: present=true(0x01)
major-opcode=149 first-event=0 first-error=0<br>
000:>:000e:32: Reply to QueryExtension: present=true(0x01)
major-opcode=148 first-event=0 first-error=0<br>
000:<:000f: 12: DRI3-Request(149,0): QueryVersion
major_version=1 minor_version=2<br>
000:<:0010: 12: Present-Request(148,0): QueryVersion
majorVersion=1 minorVersion=2<br>
000:>:000f:32: Reply to QueryVersion: major-version=1
minor-version=2<br>
000:>:0010:32: Reply to QueryVersion: majorVersion=1
minorVersion=2<br>
000:<:0011: 12: DRI3-Request(149,1): Open drawable=0x000003e2
provider=0<br>
000:>:0011:32: Reply to Open: nfd=1<br>
^C<br>
</span><span _d-id="4369" class="--l --r sentence_highlight">$<br>
<br>
<br>
</span><span _d-id="4369" class="--l --r sentence_highlight">-
Xephyr (not so minimalist but well known) :<br>
<br>
$ DISPLAY=localhost:1 xtrace -n Xephyr :20<br>
../..<br>
000:<:0010: 16: Request(98): QueryExtension name='MIT-SHM'<br>
000:>:0010:32: Reply to QueryExtension: present=true(0x01)
major-opcode=130 first-event=65 first-error=128<br>
000:<:0011: 4: MIT-SHM-Request(130,0): QueryVersion <br>
000:>:0011:32: Reply to QueryVersion: major-version=1
minor-version=2 uid=0 gid=0 pixmap-format=ZPixmap(0x02)<br>
000:<:0012: 16: MIT-SHM-Request(130,7): UNKNOWN opcode=0x82
opcode2=0x07
unparsed-data=0x05,0x00,0x40,0x04,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00;<br>
000:>:0012:32: unexpected Reply: data1=0x01 data2=0x01
unparsed-data=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00;<br>
</span><span _d-id="4369" class="--l --r sentence_highlight">^C<br>
</span><span _d-id="4369" class="--l --r sentence_highlight">$<br>
<br>
But </span><span _d-id="4813" class="--l --r sentence_highlight"><span
_d-id="4819" class=" --l --r">disabling </span></span><span
_d-id="4369" class="--l --r sentence_highlight">SHM makes it
working (slow, but works):<br>
$ DISPLAY=localhost:1 XEPHYR_NO_SHM=true xtrace -n Xephyr :20<br>
<br>
<br>
- My very first need is for using wireshark (definitively not
minimalist, and with Qt)<br>
</span><span _d-id="7157" class="--l --r sentence_highlight"><span
_d-id="7159" class=" --l --r">It</span> <span _d-id="7163"
class=" --l --r">opens</span> <span _d-id="7167"
class=" --l --r">a</span> <span _d-id="7171" class=" --l --r">window</span><span
_d-id="7174" class=" --l --r">,</span> <span _d-id="7178"
class=" --l --r">but</span> <span _d-id="7182" class=" --l --r"><span
_d-id="7191"
class="--l --r popup_anchor_highlight__with_key_sourceContextEditing">d</span>raws</span>
<span _d-id="7186" class=" --l --r">nothing</span><span
_d-id="7189" class=" --l --r">.</span></span><br>
<span _d-id="8205" class="--l --r sentence_highlight">... very
mysterious to me...</span><br>
<span _d-id="4369" class="--l --r sentence_highlight"><br>
<br>
</span><span _d-id="11053" class="--l --r sentence_highlight">Unless
there's some other underlying reason?<br>
<br>
</span>
</body>
</html>