question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComboBox in Wayland (Sway) session

See original GitHub issue

Describe 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:

  1. Install dotnet-sdk from AUR
  2. Create avalonia app using dotnet new avalonia.mvvm -n nameoftheapp
  3. Slightly change nameoftheapp.csproj and Program.cs to use avalonia 0.10.0-rc1 (by default it uses 0.9.12) and net5.0
  4. Add <ComboBox/> tag (even without items) to MainWindow.xaml
  5. Start sway using exec sway command
  6. Run nameoftheapp app with ComboBox via dotnet run from your terminal emulator
  7. 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kekekekscommented, Jan 1, 2021

I guess Xwayland somehow gets confused about Avalonia using a separate thread for OpenGL drawing. Try adding

.With(new X11PlatformOptions
{
    UseDeferredRendering = false
})

to your BuildAvaloniaApp and see if it changes anything.

instead of getting any errors my screen freezes and I have to hard reset my PC

Screen freeze also indicates a bug in somewhere in Sway/Xwayland/libwayland

0reactions
AlienJustcommented, Jan 2, 2021

to your BuildAvaloniaApp and see if it changes anything.

It did not change anything.

But changing Arch linux pacakge from extra/xorg-xwayland 1.20.0.r800.ge4a9f0bb4-1 to aur/xorg-server-xwayland-dev 1.20.8-1 fixed the problem. Thank You!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sway - ArchWiki
Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3...
Read more >
How to configure gdm for login into a sway session?
I've compiled sway from source; wayland-session/xsession entries are rather part of ready-to-use packages. Please make sure the Exec line ...
Read more >
My terminal IME setup in Sway under Wayland : r/swaywm
Running uim-fep shows py[-] at the bottom line of the terminal. But if I type anything, it is the same as in a...
Read more >
sway
The Sway Window Manager is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with...
Read more >
View topic - sway(bar) with tray support [SOLVED]
I think I can tweak /usr/share/wayland-sessions/sway.desktop a little to be able to get debug logging redirected into a regular file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found