Thursday, 17 August 2023

wayland

Pointless Tour of Rude Noises from X-Expecting Programs




Skim the following:

You:

$ snap install code


$ code
mkdir: cannot create directory ‘’: No such file or directory


$ journalctl --since "5 minutes ago" -f
Aug 17 17:33:42 sa systemd[952]: Started snap.code.code.0c02d898-98e3-41fb-be73-0652e6546ffd.scope.
Aug 17 17:33:43 sa systemd-coredump[533237]: [🡕] Process 533216 (code) of user 1000 dumped core.
                                             
                                             Module libdatrie.so.1 without build-id.
                                             Module libgraphite2.so.3 without build-id.
                                             Module libwayland-client.so.0 without build-id.
                                             Module libwayland-egl.so.1 without build-id.
                                             Module libwayland-cursor.so.0 without build-id.
                                             Module libXcursor.so.1 without build-id.
                                             Module libXinerama.so.1 without build-id.
                                             Module libXdmcp.so.6 without build-id.
                                             Module libXau.so.6 without build-id.
                                             Module libwayland-server.so.0 without build-id.
                                             Module libXrender.so.1 without build-id.
                                             Module libxcb-render.so.0 without build-id.
                                             Module libxcb-shm.so.0 without build-id.
                                             Module libpng16.so.16 without build-id.
                                             Module libpixman-1.so.0 without build-id.
                                             Module libthai.so.0 without build-id.
                                             Module libfreetype.so.6 without build-id.
                                             Module libfontconfig.so.1 without build-id.
                                             Module libharfbuzz.so.0 without build-id.
                                             Module libpangoft2-1.0.so.0 without build-id.
                                             Module libfribidi.so.0 without build-id.
                                             Module libepoxy.so.0 without build-id.
                                             Module libgdk_pixbuf-2.0.so.0 without build-id.
                                             Module libcairo-gobject.so.2 without build-id.
                                             Module libXi.so.6 without build-id.
                                             Module libpangocairo-1.0.so.0 without build-id.
                                             Module libgdk-3.so.0 without build-id.
                                             Module libplds4.so without build-id.
                                             Module libplc4.so without build-id.
                                             Module libatspi.so.0 without build-id.
                                             Module libasound.so.2 without build-id.
                                             Module libxkbcommon.so.0 without build-id.
                                             Module libxcb.so.1 without build-id.
                                             Module libgbm.so.1 without build-id.
                                             Module libXrandr.so.2 without build-id.
                                             Module libXfixes.so.3 without build-id.
                                             Module libXext.so.6 without build-id.
                                             Module libXdamage.so.1 without build-id.
                                             Module libXcomposite.so.1 without build-id.
                                             Module libX11.so.6 without build-id.
                                             Module libcairo.so.2 without build-id.
                                             Module libpango-1.0.so.0 without build-id.
                                             Module libgtk-3.so.0 without build-id.
                                             Module libdrm.so.2 without build-id.
                                             Module libatk-bridge-2.0.so.0 without build-id.
                                             Module libatk-1.0.so.0 without build-id.
                                             Module libnspr4.so without build-id.
                                             Module libsmime3.so without build-id.
                                             Module libnssutil3.so without build-id.
                                             Module libnss3.so without build-id.
                                             Module libffmpeg.so without build-id.
                                             Stack trace of thread 533216:
                                             #0  0x00007feda278c00b raise (libc.so.6 + 0x4300b)
                                             #1  0x00007feda276b859 abort (libc.so.6 + 0x22859)
                                             #2  0x00007feda27d5fcc n/a (libc.so.6 + 0x8cfcc)
                                             #3  0x00007feda27d62e0 __libc_fatal (libc.so.6 + 0x8d2e0)
                                             #4  0x00007feda3dd4ae5 sem_post@@GLIBC_2.2.5 (libpthread.so.0 + 0x12ae5)
                                             #5  0x000055a143ef3a97 uv_sem_post (code + 0x1f8fa97)
                                             #6  0x000055a14404e187 n/a (code + 0x20ea187)
                                             #7  0x000055a1440857ee n/a (code + 0x21217ee)
                                             #8  0x000055a143fc7546 n/a (code + 0x2063546)
                                             #9  0x000055a143fc763e n/a (code + 0x206363e)
                                             #10 0x000055a145f7878b n/a (code + 0x401478b)
                                             #11 0x000055a145f788ae n/a (code + 0x40148ae)
                                             #12 0x000055a145f7cc61 n/a (code + 0x4018c61)
                                             #13 0x000055a145f7c6b8 n/a (code + 0x40186b8)
                                             #14 0x000055a145f783de n/a (code + 0x40143de)
                                             #15 0x000055a14419f4b4 n/a (code + 0x223b4b4)
                                             #16 0x000055a1441a08d1 n/a (code + 0x223c8d1)
                                             #17 0x000055a1441a0682 n/a (code + 0x223c682)
                                             #18 0x000055a14419d882 n/a (code + 0x2239882)
                                             #19 0x000055a14419dfb5 n/a (code + 0x2239fb5)
                                             #20 0x000055a143ef923d n/a (code + 0x1f9523d)
                                             #21 0x00007feda276d083 __libc_start_main (libc.so.6 + 0x24083)
                                             #22 0x000055a143b8e02a _start (code + 0x1c2a02a)
                                             
                                             Stack trace of thread 533220:
                                             #0  0x00007feda286846e epoll_wait (libc.so.6 + 0x11f46e)
                                             #1  0x000055a146f9ef44 n/a (code + 0x503af44)
                                             #2  0x000055a146f9cc6f n/a (code + 0x5038c6f)
                                             #3  0x000055a146e6f13b n/a (code + 0x4f0b13b)
                                             #4  0x000055a146e1dfdc n/a (code + 0x4eb9fdc)
                                             #5  0x000055a146de1588 n/a (code + 0x4e7d588)
                                             #6  0x000055a146e3cdb8 n/a (code + 0x4ed8db8)
                                             #7  0x000055a146e27a2d n/a (code + 0x4ec3a2d)
                                             #8  0x000055a146e3cf51 n/a (code + 0x4ed8f51)
                                             #9  0x000055a146e5fc24 n/a (code + 0x4efbc24)
                                             #10 0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #11 0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533217:
                                             #0  0x00007feda285b99f __poll (libc.so.6 + 0x11299f)
                                             #1  0x000055a14656ecf4 n/a (code + 0x460acf4)
                                             #2  0x000055a146e5fc24 n/a (code + 0x4efbc24)
                                             #3  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #4  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533223:
                                             #0  0x00007feda3dd17d1 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf7d1)
                                             #1  0x000055a146e5b752 n/a (code + 0x4ef7752)
                                             #2  0x000055a146e5c198 n/a (code + 0x4ef8198)
                                             #3  0x000055a146e35c48 n/a (code + 0x4ed1c48)
                                             #4  0x000055a146e36762 n/a (code + 0x4ed2762)
                                             #5  0x000055a146e363cd n/a (code + 0x4ed23cd)
                                             #6  0x000055a146e362e1 n/a (code + 0x4ed22e1)
                                             #7  0x000055a146e5fc24 n/a (code + 0x4efbc24)
                                             #8  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #9  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533221:
                                             #0  0x00007feda3dd17d1 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf7d1)
                                             #1  0x000055a146e5b752 n/a (code + 0x4ef7752)
                                             #2  0x000055a146e5c198 n/a (code + 0x4ef8198)
                                             #3  0x000055a146e35c48 n/a (code + 0x4ed1c48)
                                             #4  0x000055a146e36762 n/a (code + 0x4ed2762)
                                             #5  0x000055a146e363cd n/a (code + 0x4ed23cd)
                                             #6  0x000055a146e362e1 n/a (code + 0x4ed22e1)
                                             #7  0x000055a146e5fc24 n/a (code + 0x4efbc24)
                                             #8  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #9  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533222:
                                             #0  0x00007feda3dd17d1 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf7d1)
                                             #1  0x000055a146e5b752 n/a (code + 0x4ef7752)
                                             #2  0x000055a146e5c198 n/a (code + 0x4ef8198)
                                             #3  0x000055a146e35c48 n/a (code + 0x4ed1c48)
                                             #4  0x000055a146e36557 n/a (code + 0x4ed2557)
                                             #5  0x000055a146e363cd n/a (code + 0x4ed23cd)
                                             #6  0x000055a146e362e1 n/a (code + 0x4ed22e1)
                                             #7  0x000055a146e5fc24 n/a (code + 0x4efbc24)
                                             #8  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #9  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533225:
                                             #0  0x00007feda3dd1376 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf376)
                                             #1  0x000055a146e5b611 n/a (code + 0x4ef7611)
                                             #2  0x000055a146e5bdaa n/a (code + 0x4ef7daa)
                                             #3  0x000055a146dbf4bb n/a (code + 0x4e5b4bb)
                                             #4  0x000055a146e1dfdc n/a (code + 0x4eb9fdc)
                                             #5  0x000055a146de1588 n/a (code + 0x4e7d588)
                                             #6  0x000055a146e3cdb8 n/a (code + 0x4ed8db8)
                                             #7  0x000055a146e3cf51 n/a (code + 0x4ed8f51)
                                             #8  0x000055a146e5fc24 n/a (code + 0x4efbc24)
                                             #9  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #10 0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533226:
                                             #0  0x00007feda286846e epoll_wait (libc.so.6 + 0x11f46e)
                                             #1  0x000055a143ef688b n/a (code + 0x1f9288b)
                                             #2  0x000055a143ee8320 uv_run (code + 0x1f84320)
                                             #3  0x000055a14aa58d42 n/a (code + 0x8af4d42)
                                             #4  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #5  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533230:
                                             #0  0x00007feda3dd4454 do_futex_wait.constprop.0 (libpthread.so.0 + 0x12454)
                                             #1  0x00007feda3dd4548 __new_sem_wait_slow.constprop.0 (libpthread.so.0 + 0x12548)
                                             #2  0x000055a143ef3b00 uv_sem_wait (code + 0x1f8fb00)
                                             #3  0x000055a14aacd5fd n/a (code + 0x8b695fd)
                                             #4  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #5  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533227:
                                             #0  0x00007feda3dd1376 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf376)
                                             #1  0x000055a143ef3cc9 uv_cond_wait (code + 0x1f8fcc9)
                                             #2  0x000055a14aa56afe n/a (code + 0x8af2afe)
                                             #3  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #4  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533228:
                                             #0  0x00007feda3dd1376 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf376)
                                             #1  0x000055a143ef3cc9 uv_cond_wait (code + 0x1f8fcc9)
                                             #2  0x000055a14aa56afe n/a (code + 0x8af2afe)
                                             #3  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #4  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             
                                             Stack trace of thread 533229:
                                             #0  0x00007feda3dd1376 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf376)
                                             #1  0x000055a143ef3cc9 uv_cond_wait (code + 0x1f8fcc9)
                                             #2  0x000055a14aa56afe n/a (code + 0x8af2afe)
                                             #3  0x00007feda3dca609 start_thread (libpthread.so.0 + 0x8609)
                                             #4  0x00007feda2868133 __clone (libc.so.6 + 0x11f133)
                                             ELF object binary architecture: AMD x86-64
Aug 17 17:33:44 sa systemd[952]: Started drkonqi-coredump-launcher@14-533238-0.service - Launch DrKonqi for a systemd-coredump crash (PID 533238/UID 0).
Aug 17 17:33:44 sa drkonqi-coredump-launcher[533249]: Unable to find file for pid 533216 expected at "kcrash-metadata/533216.ini"
Aug 17 17:33:44 sa drkonqi-coredump-launcher[533249]: QFile::remove: Empty or null file name
Aug 17 17:33:44 sa drkonqi-coredump-launcher[533249]: Nothing handled the dump :O

With more options:

$ code --verbose mkdir: cannot create directory ‘’: No such file or directory [0817/174056.461744:ERROR:file_io_posix.cc(152)] open /home/s/.config/Code/Crashpad/pending/dd871f1c-38f7-47f3-9721-16d79d7800cc.lock: File exists (17) [0817/174056.461856:ERROR:file_io_posix.cc(152)] open /home/s/.config/Code/Crashpad/pending/1d86cd02-98d5-490c-bd2b-c74dd948b334.lock: File exists (17) [0817/174056.461868:ERROR:file_io_posix.cc(152)] open /home/s/.config/Code/Crashpad/pending/50f649f3-5ed5-4742-b676-09be3e8b595b.lock: File exists (17) [533830:0817/174056.463886:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY [533830:0817/174056.463927:ERROR:env.cc(255)] The platform failed to initialize. Exiting. The futex facility returned an unexpected error code. [0817/174056.483303:ERROR:process_memory_range.cc(75)] read out of range [0817/174056.483331:ERROR:process_memory_range.cc(75)] read out of range [0817/174056.483339:ERROR:process_memory_range.cc(75)] read out of range [0817/174056.483349:ERROR:process_memory_range.cc(75)] read out of range

Wayland! I mean X. The env var $DISPLAY is empty.

I thought xwayland would supply that. It seems to be running, via a kwin_... wrapper

Threads vaguely about this include https://www.reddit.com/r/swaywm/comments/n8dymo/comment/gxlmxem/

In there is recommended the code*.deb over the snap, so I installed that:

The mkdir error goes away, but

journalctl mostly same stack dump, some of the calls are serviced by different libraries, pointers change.

code --verbose same

Then it hits me:

Reboot

Fixes all. Hadn't been done since xwayland was installed - just sleeps. Now:
s@sa:~$ echo $DISPLAY
:0

It all works, even xeyes.

Future

To invert and wallpaper every window. Style takeovers. I tried in X but is 80s: https://github.com/stylehouse/zap-x11shader



No comments:

Post a Comment