You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hledger-ui --watch not working on GNU/Linux ? #836
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.
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.
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 ?)
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"
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.
Activity
lestephane commentedon Nov 6, 2019
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
--watchit hardly takes 11M RSS.simonmichael commentedon Nov 6, 2019
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 ?)
9 remaining items
simonmichael commentedon Apr 2, 2025
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
simonmichael commentedon Apr 2, 2025
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.
[-]hledger-ui --watch not working on GNU/Linux[/-][+]hledger-ui --watch not working on GNU/Linux ?[/+]simonmichael commentedon Apr 3, 2025
Doh, never mind, I see it now. hledger-ui --watch --debug, tail -f hledger-ui.log.
simonmichael commentedon Apr 3, 2025
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.