Skip to content

hledger-ui --watch not working on GNU/Linux ? #836

Closed

Description

@simonmichael

As reported on reddit, hledger-ui --watch is not updating as it should with latest hledger-ui 1.10 on GNU/Linux (seen on Arch and Ubuntu). It works for me on macos. Status on windows, and of hledger-ui 1.9, is unknown.


See also

Activity

  1. added
    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.
    uiThe hledger-ui tool.
    good-first-issueIf you're a new contributor, this might be a good one for you.
    needs-testingTo unblock: needs more developer testing or general usage
    needs-debuggingTo unblock: needs debugging/investigation
    on Jul 11, 2018
  2. lestephane commented on Nov 6, 2019

    @lestephane

    It is working for me with hledger-ui 1.15, hledger-ui 1.15.2 on Ubuntu 16.04, and 244 input files, on a gocryptfs mount where filesystem watching (inotify) does not even work in Intellij. So I'm surprised.

    HOWEVER, hledger-ui quickly OOMs after steadily increasing its memory usage over a period of a few minutes. I have 8 gigs of RAM, and before it died the process was beyond 4G RSS.

    When I don't use --watch it hardly takes 11M RSS.

  3. simonmichael commented on Nov 6, 2019

    @simonmichael
    MemberAuthor

    Thanks for the report @lestephane ! I usually see CPU usage creeping up over time, but not this. It would be great to fix this, would you be able to help narrow it down ? Eg compare it on a normal filesystem, with fewer files, etc. (244 files is cool, how do you have that many ?)

  4. 9 remaining items

  5. added
    annoyance4-majorMajor usability/doc bug, or any regression or crash.
    affects3-fewAffects just a few users.
    affects4-manyAffects potentially a significant number of users.
    and removed
    affects3-fewAffects just a few users.
    needs-testingTo unblock: needs more developer testing or general usage
    on Apr 1, 2025
  6. simonmichael commented on Apr 2, 2025

    @simonmichael
    MemberAuthor

    Update:

    I can reproduce hledger-ui's --watch flag having no effect (ie, you must press g to see changes) in ubuntu (24.10, ARM, in a multipass vm running on my mac).

    I have added related links to the issue description.

    @lestephane, if you remember, how did you get that fsnotify debug output in 2020 ? It looked like

    fsnotify using polling ?: False
    fsnotify:   "Modified \"scrubbed-2019-05-ALL.journal\" 2020-01-05 10:10:36.251574089 UTC False"
    fsnotify:   "Modified \"scrubbed-2019-07-ALL.journal\" 2020-01-05 10:10:36.267817201 UTC False"
    
  7. simonmichael commented on Apr 2, 2025

    @simonmichael
    MemberAuthor

    Well, immediately after posting that, I got it working. It only failed to detect changes made from the host system (the mac). If changes are made within the vm (ubuntu), they are detected.

    So I don't currently have a reproducer for this issue (--watch not working on GNU/Linux).
    (And the original report, on reddit, has been lost.)

    --watch working but leaking CPU/RAM over time is a separate issue, discussed at #1825.

  8. changed the title [-]hledger-ui --watch not working on GNU/Linux[/-] [+]hledger-ui --watch not working on GNU/Linux ?[/+] on Apr 3, 2025
  9. simonmichael commented on Apr 3, 2025

    @simonmichael
    MemberAuthor

    if you remember, how did you get that fsnotify debug output in 2020 ?

    Doh, never mind, I see it now. hledger-ui --watch --debug, tail -f hledger-ui.log.

  10. added
    affects3-fewAffects just a few users.
    and removed
    affects4-manyAffects potentially a significant number of users.
    needs-debuggingTo unblock: needs debugging/investigation
    on Apr 3, 2025
  11. simonmichael commented on Apr 3, 2025

    @simonmichael
    MemberAuthor

    I have added more problem scenarios and tips to the manual at https://hledger.org/dev/hledger-ui.html#--watch-problems .
    I can't reproduce this issue apart from those, so closing it.
    If you can, comment here.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.cant-reproduceplatform-linuxuiThe hledger-ui tool.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions