ActivityWatch / aw-qt

Tray icon that manages ActivityWatch processes, built with Qt.
Mozilla Public License 2.0
27 stars 29 forks source link

Builds of aw-qt (with PyInstaller) don't appear to be portable #11

Closed ErikBjare closed 7 years ago

ErikBjare commented 7 years ago

I'm getting crashes when trying to run aw-qt on various Linux machines.

For example, on my Ubuntu laptop:

↪ ➤➤➤ ~/Applications/activitywatch/aw-qt --testing
INFO:aw.qt.manager:Starting module aw-server
DEBUG:aw.qt.manager:Found executable for aw-server in: /home/erb/Applications/activitywatch/aw-server
DEBUG:aw.qt.manager:Running: ['/home/erb/Applications/activitywatch/aw-server', '--testing']
INFO:aw.qt.manager:Starting module aw-watcher-afk
DEBUG:aw.qt.manager:Found executable for aw-watcher-afk in: /home/erb/Applications/activitywatch/aw-watcher-afk
DEBUG:aw.qt.manager:Running: ['/home/erb/Applications/activitywatch/aw-watcher-afk', '--testing']
INFO:aw.qt.manager:Starting module aw-watcher-window
DEBUG:aw.qt.manager:Found executable for aw-watcher-window in: /home/erb/Applications/activitywatch/aw-watcher-window
DEBUG:aw.qt.manager:Running: ['/home/erb/Applications/activitywatch/aw-watcher-window', '--testing']
INFO:root:Creating trayicon...
Gtk-Message: Failed to load module "atk-bridge"
fish: “~/Applications/activitywatch/aw…” terminated by signal SIGSEGV (Address boundary error)

The error message Failed to load module "atk-bridge" has been seen in other places where is was solved by installing the packages libatk-adaptor, but that didn't solve it for me.

I've seen variations of the error on an arch machine (not yet tested on mine), can't remember but could have just been the addition of the libgail as referenced in the linked askubuntu link above.

ErikBjare commented 7 years ago

I just realized this might have something to do with the fact that we've been building the images using precise instead of trusty. I'm not really sure how that could cause it but it's a possibility I guess. Perhaps different glibc versions or something?

ErikBjare commented 7 years ago

Apparently when built with trusty aw-qt runs fine on my Arch machine. I should do some further testing and see if they run fine on my laptop as well.

ErikBjare commented 7 years ago

Works on my laptop now as well, closing!