ComboBox in Wayland (Sway) session
See original GitHub issueDescribe the bug
I run Avalonia app with ComboBox in Sway session (from terminal emulator using dotnet run
command). If I click on ComboBox several times (trying to select its items) then window of my app is closing with a lot of messages in terminal emulator like:
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
…
Then I press ^C
130 user@mypc ~/src/failapp
And sometimes Wayland graphical session is closing with errors as I can see in console terminal:
00:00:28.906 [xwayland/xwm.c:1398] xcb error: op ChangeProperty (no minor), code Window (no extension), sequence 189, value 4194305
(EE)
(EE) Backtrace:
(EE) 0: Xwayland (0x5626cae00000+0x15d543) [0x5626caf5d543]
(EE) 1: Xwayland (0x5626cae00000+0x15d63e) [0x5626caf5d63e]
(EE) 2: /usr/lib/libc.so.6 (0x7f437d10d000+0x3d6a0) [0x7f437d14a6a0]
(EE) 3: Xwayland (0x5626cae00000+0x8c580) [0x5626cae8c580]
(EE) 4: Xwayland (0x5626cae00000+0x9716e) [0x5626cae9716e]
(EE) 5: Xwayland (0x5626cae00000+0x9edfb) [0x5626cae9edfb]
(EE) 6: Xwayland (0x5626cae00000+0x315a9) [0x5626cae315a9]
(EE) 7: /usr/lib/libc.so.6 (__libc_start_main+0xf2) [0x7f437d135152]
(EE) 8: Xwayland (0x5626cae00000+0x328be) [0x5626cae328be]
(EE)
(EE) Segmentation fault at address 0x0
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
(WW) Option "-listen" for file descriptors is deprecated
Please use "-listenfd" instead.
(WW) Option "-listen" for file descriptors is deprecated
Please use "-listenfd" instead.
glamor: No eglstream capable devices found
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning Unsupported maximum keycode 569, clipping
> X11 cannot support keycodes above 255
Errors from xkbcomp are not fatal to the X server
00:02:13.246 [xwayland/xwm.c:1398] xcb error: op ChangeProperty (no minor), code Window (no extension), sequence 196, value 4194657
Gdk-Message: 01:15:20.795: Error reading events from display: Обрыв канала
139 user@mypc ~ % 00:00:00.028
[commmon/ipc-client.c:67] Unable to connect to /run/user/1000/sway-ipc.1000.559.lock
00:00:00.000 [commmon/ipc-client.c:67] Unable to connect to /run/user/1000/sway-ipc.1000.559.lock
To Reproduce Steps to reproduce the behavior:
- Install
dotnet-sdk
from AUR - Create avalonia app using
dotnet new avalonia.mvvm -n nameoftheapp
- Slightly change
nameoftheapp.csproj
andProgram.cs
to use avalonia 0.10.0-rc1 (by default it uses 0.9.12) and net5.0 - Add
<ComboBox/>
tag (even without items) toMainWindow.xaml
- Start sway using
exec sway
command - Run
nameoftheapp
app with ComboBox viadotnet run
from your terminal emulator - Interact with ComboBox click on it several times, selecting it items.
Desktop (please complete the following information):
- OS: Linux (Arch linux, kernel 5.10.3-arch1-1)
- Avalonia version 0.10.0-rc1
- Xwayland version 1.20.99 (12099001)
- Sway version 1.5.1
- Dotnet is from AUR (5.0.101)
- I’ve tried to use Intel GPU and AMD GPU
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
I guess Xwayland somehow gets confused about Avalonia using a separate thread for OpenGL drawing. Try adding
to your
BuildAvaloniaApp
and see if it changes anything.Screen freeze also indicates a bug in somewhere in Sway/Xwayland/libwayland
It did not change anything.
But changing Arch linux pacakge from
extra/xorg-xwayland 1.20.0.r800.ge4a9f0bb4-1
toaur/xorg-server-xwayland-dev 1.20.8-1
fixed the problem. Thank You!