michaelforney / swc

a library for making a simple Wayland compositor
MIT License
616 stars 52 forks source link

xwayland applications crash in swc #14

Closed paulhandy closed 5 years ago

paulhandy commented 9 years ago

using xorg-server-xwayland version 1.16.0-5 on arch linux. Here is an example attempting to open st. Each X application attempted ends with a similar error log.

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":6" after 595 requests (362 known processed) with 0 events remaining.

Note: when running swc-launch -- velox, X applications crash the whole server before an error message ensues. when running swc-launch -- swc/example/wm, the quoted message is given.

michaelforney commented 9 years ago

I recently filed https://bugs.freedesktop.org/show_bug.cgi?id=81819. Can you try with an Xwayland built with this patch (you may need to edit libswc/xserver.c to point it to the path of your newly built Xwayland)?

It seems interesting that it crashes velox but not example/wm because xwayland has very little to do with the window manager itself (it is dealt with internally in libswc). Can you try to get a backtrace? "swc-launch -- bash -c 'gdb velox -batch -ex run -ex back'" should give you that.

Drakulix commented 9 years ago

Is there any update on this? I am running the latest (git) velox and swc versions on Arch Linux with (an unpatched) Xwayland 1.16.3 and no Xwayland applications are shown. They run endlessly (I've waited about 5 minutes) without any error, Xwayland is running as well, but they do not show up. swc-launch is also not logging anything interesting.

michaelforney commented 9 years ago

Are you certain that DISPLAY is set correctly (to the Xwayland instance)? If you run from a screen/tmux session they may be showing up in your X11 session.

Drakulix commented 9 years ago

I am running velox from my main desktop using 'swc-launch -t /dev/tty2 -- velox' and launch the applications through an st-wl terminal, not via screen or tmux. 'echo $DISPLAY' prints :1 in the st-wl terminal and not :0 like on my main desktop. 'pgrep Xwayland' also tells me, that Xwayland is running.

Drakulix commented 9 years ago

No idea, how I could debug that?

michaelforney commented 8 years ago

Can you provide some xwayland logs running with WAYLAND_DEBUG=client?

michaelforney commented 5 years ago

Xwayland support has been removed.