-
-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Conky crashes on reload with Xft enabled #1538
Comments
I am getting this same error on my Kubuntu 22.04 LTS system. I have to relaunch the conky each time the configuration is edited as a result. |
Okay, I have a new symptom: You can't kill it after editing the config! I mean that even "sudo killall conky-x86_64.appimage" does absolutely nothing. My three conkys will just continue trucking right along like nothing ever happened!? Can't kill them from htop, either! Next time it happens I'll try some things other than rebooting to try and get around this bug. What makes it even weirder is that sometimes, maybe about 25% of the time at most after editing the config, and almost 100% of the time at boot up (if I don't have a 3 second delay in my loader script), the conkys will load in such a way that clicking on them makes them exit/quit/crash/disappear!? I can then run the exact same loader script from terminal and they will load just fine. By the way, the appImage conky reports as "AppRun", not "Conky" to the "top cpu/ram"... variables. |
Same problem here as well:
Conky version (--version) info:
Some OS info, please poke me if you need more information:
|
Same here too, also on Arch. No CDE in use. Conky version reported as
Abort report appears identical to that shown by @panmarco83:
Fwiw: I see that this issue was opened in May, 2023, but am pretty sure its been extant for quite a bit longer than that, dating back to 2022 I think (but not positive of that). |
I've had this problem for quite some time, so it is not a recent development. |
Cf. #1537 (which is indeed about recent versions of Conky). |
Too,
Try default config
try update/stop with
try
and don't work / Aborted, if editing config.file-conky with started
This is up actions works fine w/o aborted on this system with |
I'm on the same version as @slacknk and it seems to reload on config-file-change-save a few times before it crashes instead of instant crash like it used to be on 1.19.2_pre. |
I'm totally ignorant on a lot of this stuff so I don't know how helpful this will be, but with a bit of research this looks to be an old issue with
Potentially an easy fix? I saw a handful of workarounds that allegedly solved the issue by removing uninstalled font folders with only .uuid files inside in /usr/share/fonts/, but I could not corroborate this. |
I have this problem too.
tell me what to debug. |
I know that Conky's maintainers are not exactly obligated to fix any bug, but this bug is a regression and a really irritating one. So: it seems bad, and it looks bad, and it is an inconvenience to users of this marvellous software, that Conky's developers seem not to care about this bug. Please fix it or at least try to fix it or at least explain what the problem is. |
In case no one noticed it seems that the bug was fixed by: which is included in conky 1.19.4 I can now reliably send |
@Tchou: Thanks for mentioning this. Can confirm fixed in 1.19.6 (built from sources) on my Arch setup also. So maybe @brndnmtthws can close it now, if others concur. Interestingly though, Arch has not updated conky in their core repo for a long time. They presently have 1.18.1-2 in there, which has been flagged as "out of date" since March, 2023. Anyway... h/t to devs for getting this fixed. |
In case it matters, I have tested this both from a Wayland session and from a pure X11 session (using Ubuntu+Gnome 45 meaning mutter as a compositor/display manager/window manager) and in both cases conky reloads reliably after receiving a signal. |
. . and Conky crashes. EDITED (to fix minor things). |
Same bug here in Linux Mint Xfce 21.3 with |
I can confirm what @jakariyaa and @LinuxOnTheDesktop said that this bug is not resolved in Conky 1.19.6 as reported by @Tchou and @ahmogit. I tested Conky 1.19.6 compiled yesterday on my Debian 10 system. It has kernel (version 6.1.0-18-amd64) and few firmware packages from Debian 12 and also has some backported and local packages. But from the packages used for Conky build only "cmake", "cmake-data", "debhelper" and "dwz" were used from Debian 10 Backports while the other Conky build dependencies were from Debian 10 Main repositories. I wanted Conky with only the features I need, so I set the following build flags: The "DEB_C*FLAGS" variables had the following values: The result is that Conky crashes on any config modification when The result is also that Conky crashes (when So the bug really occurs for me on any config reload (when Without If I cannot resolve these crashes this will stop my upgrade from Conky 1.10.8 (which I need to move away from |
@Jmkrnet All I can say is that the version that I built locally from 1.19.6_pre sources definitely fixes the restart-crash issue on my setup. I checked again, just now, to be sure that I hadn't somehow misinterpreted or mis-reported the results that I mentioned earlier, but the behavior that I see on my system is that conky restarts successfully upon modification to .conkyrc. I have little expertise in the font config stuff that seems to be at the core of this issue, but if I can be of help in tracking down what might be key differences between your (@Jmkrnet) system and mine, glad to assist if I can. Just let me know what would be useful for you to see, I'll post it. Fwiw, the output from "conky --version" of my executable is attached. Not sure it will shed any light, but perhaps. |
@ahmogit On my system packages In the meantime I analyzed the Fontconfig source code and focused on the
The The 2nd commit completely replaced the assertion that causes the error message on my system and the whole reporting source code should only run when debugging with |
@Jmkrnet Presently, my system reports fontconfig version as 2:2.15.0-2. Hasn't had 2.13.x since April 2022 Attached is the update history of fontconfig on my system, going back to 2020. |
@ahmogit Thanks for your quick comments and Fontconfig versions report. When I saw the keywords "font config stuff" in your comment it forced me to re-read the beginning of this bug report. After I examined the Fontconfig sources @Tchou mentioned, I found myself on the right track. Now I can report that you were both right = Conky 1.19.6 really does not crash on reload with I built the Fontconfig 2.15.0-1 from Debian Sid (Unstable) repositories for my Debian 10 system. I also had to upgrade "autoconf", "automake" and "autotools-dev" packages to their Debian 12 versions to avoid some build errors. So @jakariyaa and @LinuxOnTheDesktop can try to upgrade their Fontconfig versions and see if it helps them. Probably the bug can be also closed now as Conky devs see fit. |
My thanks to everyone who is sharing tips within this thread. @Jmkrnet: would you supply a link to the FontConfig source code that you mention? Here is why I ask. I am on Linux Mint. So I tried to find a suitable Ubuntu .deb, and I did, or at least a fairly recent deb of FontConfig, but I seemed stuck in dependency hell. Then I sought and found Debian .debs, but I didn't get anywhere with them either - and Firefox kept warning me about insecure downloads. So building from source does seem to be the way. I take it from you (Jmkrnet) that so doing will involve updating some tooling (but the Ubuntu-deb route itself seemed to need a new libc . .). Finally: I notice that Conky 1.19.7 has arrived just now; but its changelog does not suggest (unless I am mistaken) that it will solve the reload problem. |
@LinuxOnTheDesktop I think you need Conky 1.19.6+ and Fontconfig 2.15.0+. See the "Tags containing commit" link in this page with the relevant Fontconfig commit I mentioned in previous message: Not sure how recent Fontconfig packages are in your Linux Mint repository, but probably you will need to rebuild at least Fontconfig. Maybe you can try just rebuilding Fontconfig DEB packages from Debian Sid source package. After you download and extract the source package and install its build dependencies you can try to use If you have enabled Debian Sid Source repository in your "/etc/apt/sources.list" (e.g. add line like: Installed build dependencies and added "deb-src" repository can be removed after building - you do not need these to install and use the generated DEB packages. I can also recommend testing generated DEB packages first in Virtual Machine just to be on the safe side:). |
This should be resolved with #1755. |
@brndnmtthws : I tested the putative fix/workaround and it does seem to work. Great! Yet, given the valgrind warning, perhaps it would be good to revert the change once Fontconfig >=2.15.0 is in wider circulation. @ Jmkrnet : thank you very much - that was most considerate of you - though I fear that your kind effort is now superseded! |
What happened?
Conky crashes with the message:
when restarting after .conkyrc is modified. Recompiling with debug and getting a backtrace in gdb gives:
The culprit is the call to
FcFini
indisplay-x11.cc
, commenting this call restores the correct behavior (not crashing on reload). After further research, I stumbled upon this fontconfig issuewhich seems relevant here. Unfortunately, it seems that removing the call to
FcFini
may leak some memory, but there does not seem to be a way to properly clean Xft's internal structures.Version
1.91.1, 1.19.2, main
Which OS/distro are you seeing the problem on?
Ubuntu
Conky config
conky
crashes on reload.The text was updated successfully, but these errors were encountered: