Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird tiny, unusable, blocking mid-screen box / popup / widget apparing since espanso upgrade on Ubuntu 22.04.3 / wayland #1826

Closed
bentolor opened this issue Jan 26, 2024 · 19 comments
Labels
bug Something isn't working Linux Related to the Linux operating system wayland

Comments

@bentolor
Copy link

Describe the bug
After upgrading from an older espanso version, on service start a weird graphic box is rendered. On clicking it, some colorful dots are rendered below. (see screenshot).

The start notification popup renders succesfully, though.

No interaction is possible, hence it also blocks my left and top bars.

To Reproduce
Steps to reproduce the behavior:

  1. Just start espanso

Expected behavior
Espanso should be invisible or render as an icon inside menu bar.

Screenshots
grafik

Logs

 ~/.c/e/config  espanso log                                                                                                                                                                                         Fr 26 Jan 2024 13:32:51 CET
13:31:52 [daemon(3013298)] [INFO] reading configs from: "/home/ben/.config/espanso"
13:31:52 [daemon(3013298)] [INFO] reading packages from: "/home/ben/.config/espanso/match/packages"
13:31:52 [daemon(3013298)] [INFO] using runtime dir: "/home/ben/.cache/espanso"
13:31:52 [daemon(3013298)] [INFO] system info: Ubuntu v22.04 - kernel: 5.15.0-91-generic
13:31:52 [daemon(3013298)] [INFO] watching for changes in path: "/home/ben/.config/espanso"
13:31:52 [daemon(3013298)] [INFO] espanso version: 2.2.1
13:31:52 [daemon(3013298)] [INFO] spawning the worker process...
13:31:52 [daemon(3013298)] [INFO] binded to IPC unix socket: /home/ben/.cache/espanso/espansodaemonv2.sock
13:31:52 [worker(3013305)] [INFO] reading configs from: "/home/ben/.config/espanso"
13:31:52 [worker(3013305)] [INFO] reading packages from: "/home/ben/.config/espanso/match/packages"
13:31:52 [worker(3013305)] [INFO] using runtime dir: "/home/ben/.cache/espanso"
13:31:52 [worker(3013305)] [INFO] system info: Ubuntu v22.04 - kernel: 5.15.0-91-generic
13:31:52 [worker(3013305)] [INFO] using WaylandAppInfoProvider
13:31:52 [worker(3013305)] [INFO] binded to IPC unix socket: /home/ben/.cache/espanso/espansoworkerv2.sock
13:31:52 [worker(3013305)] [INFO] monitoring the status of the daemon process
13:31:52 [worker(3013305)] [INFO] detection module will use this keyboard layout: [R=, M=, L=de, V=, O=]
13:31:52 [worker(3013305)] [INFO] using EVDEVSource
13:31:52 [worker(3013305)] [INFO] Querying modifier status...
13:31:52 [worker(3013305)] [INFO] inject module will use this keyboard layout: [R=, M=, L=de, V=, O=]
13:31:52 [worker(3013305)] [INFO] using EVDEVInjector
13:31:52 [worker(3013305)] [INFO] using WaylandFallbackClipboard

Setup information

  • OS: What OS are you using?: Ubuntu 22.04.3 LTS
  • Version: 2.2.1 wayland via .deb
@bentolor bentolor added the bug Something isn't working label Jan 26, 2024
@AucaCoyan AucaCoyan added Linux Related to the Linux operating system wayland labels Jan 26, 2024
@AucaCoyan
Copy link
Member

Wow, that's very weird. Thanks for submitting!.
I have no idea how to start debugging this, but we'll check it out

@morgan-dgk
Copy link
Collaborator

Probably related to #1776.

@bentolor
Copy link
Author

bentolor commented Jan 27, 2024

Thanks for your feedback, @AucaCoyan and @morgan-dgk !

I saw #1776 before, but felt it might be something different. Honestly: I do not know what/how this sync window would look like.

I deem Ubuntu 22.04 LTS such a popular choice that I wondered: "Is it me (my install)?". Please let me know if I can provide something to support.

@xeruf
Copy link

xeruf commented Jan 30, 2024

Having that same issue, quite annoying. Also using Wayland (Sway).

@4ntsu
Copy link

4ntsu commented Jan 31, 2024

Just wanted to point out this was also reported in #1722 and #1619.

I was having the same problem (Arch, Gnome, Wayland, Espanso v2.2.1), and the "solution" for me was to downgrade to v2.1.8, which does not present this little window, and as a bonus can correctly detect when the keyboard layout is changed (v2.2.1 couldn't).

@readtedium
Copy link

readtedium commented Feb 2, 2024

Confirming I’m also seeing this, is a small annoyance I have to move in PaperWM on Gnome. Should note that it usually appears with the Wayland to X Recording Bridge for me. Using Nobara Linux with 6.7.1 kernel.

Looks like this for me:

Screenshot from 2024-02-02 17-09-45

@Steve-V
Copy link

Steve-V commented Feb 6, 2024

Confirming it also happens on Fedora 39 Wayland after building v2.2.1 from source.

@jdnixx
Copy link

jdnixx commented Feb 6, 2024

Doesn't show anything on my machine (when I click the icon on the taskbar, I see it fly away to the upper-left corner of the screen as if it's opening a window, but it's tiny and no window actually appears). What even is this window? Also it appears espanso suddenly isn't expanding anything at all for me today but probably a separate issue

image

@readtedium
Copy link

One interesting thing about the window, at least for me, is that when you press the escape key, something happens within it. It appears to be an open dialog box that is 1 pixel wide.

@morgan-dgk
Copy link
Collaborator

morgan-dgk commented Feb 6, 2024

@jdnixx this window is used to sync keyboard modifier between evdev and xkb under wayland (see #972). #1769 updated the client library used to create this window (smithay-client-toolkit, sctk) to resolve a crash on start-up under wayland. Unfortunately, this window no longer closes as expected once the sync is completed and the associated event loop exits.

I have been digging into this for awhile and have reached out to the maintainers of sctk to request assistance. However, I am at a bit of a dead-end currently. I tried updating sctk to v18 (the latest version) and updating the code in evdev/sync/wayland to match the new sctk API, but the issue persists.

Would welcome any assistance 🙂

@AucaCoyan
Copy link
Member

I'm looking to git bisect the problem, but I can't currently run espanso in my debian virtual machine 😢 .
I'll try to fix first this issue that is stopping me here to use espanso in debian 12

espanso: error while loading shared libraries: libwx_gtk3u_html-3.0.so.0: cannot open shared object file: No such file or directory

@AucaCoyan
Copy link
Member

Hi! I could solve the problem 😄 , it's not merged yet, but I would like you all to clone this PR #1849 and try it.
This should solve the problem. If you see any problem, please ring me! I'm not sure if I will break something by leaving $auto in the dpkg dependencies.

@readtedium
Copy link

Hi, did this with manual compilation in Nobara Linux (Fedora derivative) and can confirm it no longer shows the odd window.

Thanks @AucaCoyan for the work to resolve this.

@bentolor
Copy link
Author

bentolor commented Feb 13, 2024

Thanks @AucaCoyan for your efforts to resolve this issues. I just tried to do the requested under Ubuntu 22.04.3 LTS and on first glance your work actually seems to resolve the issue! 🎉

  • I had to use/install an older libwxgtk library: sudo apt install libx11-dev libxtst-dev libxkbcommon-dev libdbus-1-dev libwxgtk3.0-gtk3-dev
  • After building & installing the created .deb, the service is was no longer starting up. I had forgotten that I needed to re-execute sudo setcap "cap_dac_override+p" $(which espanso) to fix permission issues.

Right now it seems to be working. Thanks for your great guide how to build locally!

@AucaCoyan
Copy link
Member

Thanks to you both for testing! It gives me a hug in my coder heart to achieve success ❤️

@AucaCoyan
Copy link
Member

Hello! #1901 got merged, can we re-test if this keeps happening in the latest version? ❤️

@bentolor
Copy link
Author

bentolor commented Mar 14, 2024

I just built dev (4e6839c) and installed it.
It seems the issue is no longer happening in dev trunk for me.

Thank you, @AucaCoyan!

@AucaCoyan
Copy link
Member

All kudos to @morgan-dgk !

@distefam
Copy link

distefam commented Mar 14, 2024

Thanks @morgan-dgk! I can confirm this fixes it for me on Fedora 39 with Gnome (Wayland).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Related to the Linux operating system wayland
Projects
None yet
Development

No branches or pull requests

9 participants