Closed msjr65 closed 5 months ago
I am also struggling to work this out...
${top mem 1}
reads inf
${top_mem mem 1}
reads inf
Confirming I have the same issue. Mostly reads inf, but also occasionally -nan. I have not changed my conky config between the time it was last working and when this issue appeared.
Ok, I just spent some time with MELD. I copied the default https://github.com/brndnmtthws/conky/blob/master/data/conky.conf Using a launcher to have two conkies open and then slowly adjusted the text in both to be more similar.
The strange thing is it still seems to make no sense. Just edit line by line until your 'inf' turns into a number...
I now have this section:
conky.text = [[
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
\
# Storage
\
I have NO SWAP, yet if I delete the 'Swap Usage' line, it reverts to 'inf'. The same applies to the next line. If I hash out the Swap Usage line (in code, with autosave) conky reloads and works. If I kill it and load it again, it comes up with 'inf'.
Update: I gave up. I have no swap, yet even removing $swap/$swapmax brings back the inf so I'll just leave it in.
I'm sure this is well-known and obvious, but in lua, NaN is "nan" or "-nan", and infinities are "inf" or "-inf", both matching the reported errors. Perhaps this is caused by something in a library or in a variable call that is dividing by zero? I don't know where or how to look for anything that may be helpful.
fyi. #960 documents a potential workaround. add $mem
or $swap
somewhere and you'll stop seeing inf
and nan
with top mem
.
edit (although, i see now that's exactly what the first sentence of the issue says....i'll leave this comment for the link issue 960 if nothing else)
I'm not sure if related but Conky's ${top mem}
and ${top mem_res}
now show nothing at all.
I might not be Conky's fault as it started happening today all of a sudden and the last Conky update on Arch Linux was on 2021-04-26.
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.
bump
Is this still happening with 1.15.0? It seems to have been updated in the arch repos: https://archlinux.org/packages/extra/x86_64/conky/
I noticed that the issue is "solved" when using the memgraph
. So something about memory stats are not collected, unless the memgraph
is included as well?
In my case:
${color1}${font Font Awesome 5 Free:style=Solid:pixelsize=13}${font}${goto 30}RAM${alignr}${mem} (${memperc}%) used / ${memmax}
${color2}${memgraph 50,299 ${gradientcolor1} ${gradientcolor2} -t}
I see something similar was mentioned by @rmartin16
I had the same issue, but I saw this PR that fixes this. It's merged and after installing conky-git from AUR I can confirm that this issue is fixed, so it will be included in the next release
Duplicate of #960. Closing as fixed. Leave a comment if you believe this issue should be reopened.
Issue
top mem shows 'inf' or '-nan' when $mem is not included anywhere in the conky.text
Information
Linux 5.9.11-arch2-1 x86_64 GNU/Linux Conky v1.11.6