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

aw-qt fails to start on gnome 40 (Wayland) because of old libgio-2.0.so.0 #710

Open
2 tasks done
nbCloud91 opened this issue Feb 4, 2022 · 9 comments
Open
2 tasks done

Comments

@nbCloud91
Copy link

  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: Ubuntu 21.10 linux:5.13.0-28-generic
  • ActivityWatch version: v0.11.0

Describe the bug

Although default gnome does not have system-tray, most common distributions provide extensions to circumvent that. Thus, aw-qt should work in these cases. But upon starting it with ./aw-qt, this error comes up and process is terminated:

...
2022-02-04 22:31:36 [INFO ]: Creating trayicon...  (aw_qt.trayicon:206)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

(aw-qt:7407): GLib-GIO-ERROR **: 22:31:36.281: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
2022-02-04 22:31:36 [INFO ]: aw-watcher-window started  (aw_watcher_window.main:51)
2022-02-04 22:31:36 [INFO ]: aw-watcher-afk started  (aw_watcher_afk.afk:55)
fish: Job 1, 'aw-qt' terminated by signal SIGTRAP (Trace or breakpoint trap)

Workaround

the libgio-2.0.so.0 bundled with the application is old and is requesting a key which is not present. I deleted the bundled lib and got the tray-icon to work.

@github-actions
Copy link

github-actions bot commented Feb 4, 2022

Hi there!
As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct.
Thanks a bunch for opening your first issue! 🙏

@ErikBjare
Copy link
Member

@nbCloud91 I just released v0.12.0b1, which still contains the libgio library.

Can you confirm the error is still present in that release and that removing the lib solves it?

@nbCloud91
Copy link
Author

Checked out the pre-release v0.12.0b1, still the same issue.

PS: I'm not using ActivityWatch, looking at the state of affairs regarding Gnome implementation of Wayland, it seems like many convenience software packages will not be available to end users. Neither is there any consensus among the different DEs regarding wlroots or other standards. Tried using sway, but I do not like tiling WM, gave up.

@capfredf
Copy link

@ErikBjare I am getting this error using v0.12.0b2

@tmotyl
Copy link

tmotyl commented Aug 31, 2022

I'm getting this error on recently published 0.12.0, on Ubuntu 21.10

@ErikBjare
Copy link
Member

@tmotyl Did removing the library work in your case too? Which distro?

@tmotyl
Copy link

tmotyl commented Aug 31, 2022

Ubuntu 21.10 on Wayland

vanilla AW:

2022-08-31 17:40:10 [INFO ]: Creating trayicon...  (aw_qt.trayicon:205)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

(aw-qt:992814): GLib-GIO-ERROR **: 17:40:10.760: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
[1]    992814 trace trap (core dumped)  ./aw-qt

after removing libgio-2.0.so.0

2022-08-31 19:20:20 [INFO ]: Creating trayicon...  (aw_qt.trayicon:205)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2022-08-31 19:20:20 [INFO ]: Initialized aw-qt and trayicon successfully  (aw_qt.trayicon:244)

so error is gone, but warning stays

@dolzenko
Copy link

Ubuntu 22 after removing libgio getting ./aw-qt: symbol lookup error: /lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: wl_proxy_marshal_flags

@almereyda
Copy link

When running aw-qt with the aw-awatcher binary from https://github.com/2e3s/awatcher, I'm seeing a similar error:

/home/user/.local/opt/activitywatch/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags

This configuration is in place at .config/activitywatch/aw-qt/aw-qt.toml:

[aw-qt]
autostart_modules = ["aw-server-rust", "aw-awatcher"]
#autostart_modules = ["aw-server-rust", "aw-watcher-afk", "aw-watcher-window"]

Also reported to ActivityWatch/aw-qt#92 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants