Giter Club home page Giter Club logo

Comments (13)

tuxitop avatar tuxitop commented on June 14, 2024 3

This is an annoying bug which is apparently still present in arch linux. I have been able to work around this for now by using running the following command to start aw-qt.

LD_PRELOAD="/usr/lib/libstdc++.so.6 /usr/lib/libfreetype.so.6 /usr/lib/libz.so.1" aw-qt

from aw-qt.

johan-bjareholt avatar johan-bjareholt commented on June 14, 2024 1

It is now merged, will be fixed in the next version of ActivityWatch or if you build yourself from master.

If it doesn't work for someone, please add a comment and I'll reopen this issue.

from aw-qt.

ErikBjare avatar ErikBjare commented on June 14, 2024

Hmm, so looks like it tries to use the libstdc++ bundled by PyInstaller instead of the system libstdc++ when starting firefox. Perhaps we should use something else than the webbrowser module in the standard library.

Edit: Looks like this could be the issue (LD_LIBRARY_PATH is set by PyInstaller which leads to precedence of the bundled libstdc++).

from aw-qt.

ErikBjare avatar ErikBjare commented on June 14, 2024

Just tried it with the v0.7.0b2 build. Seems to work fine on my laptop but it's possible that the bug is Arch or Firefox specific. Can you replicate with the v0.7.0b2 build Johan?

from aw-qt.

johan-bjareholt avatar johan-bjareholt commented on June 14, 2024

Just downloaded 0.7.0b2, still the same issue and exactly the same logs sadly.

from aw-qt.

ErikBjare avatar ErikBjare commented on June 14, 2024

Hmm... Can you try setting chrome as your default browser and see what happens?

Edit: Just noticed you don't have it installed as its tried as a fallback, still curious if it'd work.

from aw-qt.

johan-bjareholt avatar johan-bjareholt commented on June 14, 2024

Seems to be other errors in that case.

Opening dashboard
/opt/google/chrome/google-chrome: /home/johan/Downloads/activitywatch/libdbus-1.so.3: no version information available (required by /usr/lib/libgconf-2.so.4)
/opt/google/chrome/google-chrome: /home/johan/Downloads/activitywatch/libdbus-1.so.3: no version information available (required by /usr/lib/libdbus-glib-1.so.2)
/opt/google/chrome/chrome: /home/johan/Downloads/activitywatch/libdbus-1.so.3: no version information available (required by /usr/lib/libgconf-2.so.4)
/opt/google/chrome/chrome: /home/johan/Downloads/activitywatch/libdbus-1.so.3: no version information available (required by /usr/lib/libdbus-glib-1.so.2)
/opt/google/chrome/chrome http://localhost:5600: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_type_check_instance_is_fundamentally_a
/usr/bin/xdg-open: line 854: x-www-browser: command not found
/usr/lib/firefox/firefox: /home/johan/Downloads/activitywatch/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)
/usr/bin/xdg-open: line 854: iceweasel: command not found
/usr/bin/xdg-open: line 854: seamonkey: command not found
/usr/bin/xdg-open: line 854: mozilla: command not found
/usr/bin/xdg-open: line 854: epiphany: command not found
/usr/bin/xdg-open: line 854: konqueror: command not found
/usr/bin/xdg-open: line 854: chromium: command not found
/usr/bin/xdg-open: line 854: chromium-browser: command not found
/usr/bin/xdg-open: line 854: google-chrome: command not found
/usr/bin/xdg-open: line 854: www-browser: command not found
/usr/bin/xdg-open: line 854: links2: command not found
/usr/bin/xdg-open: line 854: elinks: command not found
/usr/bin/xdg-open: line 854: links: command not found
/usr/bin/xdg-open: line 854: lynx: command not found
/usr/bin/xdg-open: line 854: w3m: command not found
xdg-open: no method available for opening 'http://localhost:5600'

from aw-qt.

lundibundi avatar lundibundi commented on June 14, 2024

I'd like to also add my use case. I use Arch linux and the buttons are not working as well.

  • First of all both buttons produce fontconfig parsing error with various fields in the default config reported as errors (this is probably due to the new format of fontconfig 2.13+ as I understood after a bit of googling and it seems that AW bundles older fontconfig library which is not compatible with the new config)

  • If i set Firefox (I use firefox-developer-edition) as default browser is still reports the same errors as the ones in the first post

  • If I set Chrome it actually manages to start but segfaults right away. This seems to be also a library-version related issue (probably due to PyInstaller and it's LD PATH)

I can provide the log's if needed but it seems you are aware of the problem (#32).

Also, what's the current status of this issue? (as there was no activity here for a while).

Thanks for the app, I'll try to use it anyway.

from aw-qt.

johan-bjareholt avatar johan-bjareholt commented on June 14, 2024

@lundibundi Yeah, the state of the PyInstaller release bundles aren't great but there are sadly no good cross-platform alternatives. For Linux I will likely make an attempt to make a flatpak package later which should solve these issues there at least. For now the recommended installation method on linux is from source which should be stable.

First of all both buttons produce fontconfig parsing error with various fields in the default config reported as errors (this is probably due to the new format of fontconfig 2.13+ as I understood after a bit of googling and it seems that AW bundles older fontconfig library which is not compatible with the new config)

Ugly hack, but could possibly be fixed by removing "libfontconfig.so.1" in the activitywatch folder.

from aw-qt.

lundibundi avatar lundibundi commented on June 14, 2024

@johan-bjareholt well, I've just tried that. aw-qt segfaulted right away =)
As for the source install I'll try that, thanks.

EDIT: I've installed from source and it seems good for now, thx.

from aw-qt.

xylix avatar xylix commented on June 14, 2024

Is this a non-issue now that we build the bundle in ActivityWatch/activitywatch and it has working dashboard / api broswer buttons?

from aw-qt.

ErikBjare avatar ErikBjare commented on June 14, 2024

The bundle has always been built in ActivityWatch/activitywatch. This particular issue only ever happened in some Linux environments, and I'm not exactly what those were so can't be sure if it's still an issue. But works fine for me on Arch Linux Uh, actually it doesn't.

Edit: The issue as I understand it has to do with the Python webbrowser module propagating the LD_LIBRARY_PATH environment variable it sets to the browser application/launcher, which includes stuff like an incompatible version of glibc and therefore fails to start the application.

from aw-qt.

johan-bjareholt avatar johan-bjareholt commented on June 14, 2024

Someone who has this issue, could you try this out if it works?
#59 (comment)

from aw-qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.