Skip to content
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]: OpenBSD crash when cpu variable is used #2088

Closed
Caellian opened this issue Nov 22, 2024 · 1 comment · Fixed by #2092
Closed

[BUG]: OpenBSD crash when cpu variable is used #2088

Caellian opened this issue Nov 22, 2024 · 1 comment · Fixed by #2092
Labels
bug Bug report or bug fix PR cpu Issue or PR that's related to CPU or process tracking os: openbsd Issue or PR related to OpenBSD text Issue or PR related to `conky.text` variables

Comments

@Caellian
Copy link
Collaborator

Caellian commented Nov 22, 2024

@epsheldoni reports a bug with ${cpu} variable on OpenBSD which causes conky to crash. I'm opening it as a separate issue because it's not related to the original one which will be fixed once fix/openbsd76-build is merged.

Conky Version

main (SHA 47ec9f9), ^v1.21.8

OS

OpenBSD 7.6

Conky config

lines that cause conky to crash:

CPU 1 usage:$alignr   ${cpu cpu1}%
CPU 2 usage:$alignr   ${cpu cpu2}%
CPU 3 usage:$alignr   ${cpu cpu3}%
...
CPU 15 usage $alignr ${cpu cpu15}%

Logs

./conky -d
conky: desktop window (0x1a00003) is subwindow of root window (0x538)
conky: window type - normal
conky: drawing to created window (0x3000002)
conky: drawing to double buffer
conky: forked to background, pid is 33192
conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11
conky: '(null)' (null) session running 'XFCE' desktop
conky: Cannot get kern.cp_time
conky: obj->data.i 2 info.cpu_count 1
conky: attempting to use more CPUs than you have!
sysctl | grep cpu
conky: desktop window (0x1a00003) is subwindow of root window (0x538)
conky: window type - normal
conky: drawing to created window (0x3000002)
conky: drawing to double buffer
conky: forked to background, pid is 33192
conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11
conky: '(null)' (null) session running 'XFCE' desktop
conky: Cannot get kern.cp_time
conky: obj->data.i 2 info.cpu_count 1
conky: attempting to use more CPUs than you have!

The following lines in the terminal output may indicate something OpenBSD specific:

conky: Cannot get kern.cp_time
conky: obj->data.i 2 info.cpu_count 1
conky: attempting to use more CPUs than you have!

Originally posted by @epsheldoni in #2073 (comment)

@Caellian Caellian added bug Bug report or bug fix PR cpu Issue or PR that's related to CPU or process tracking text Issue or PR related to `conky.text` variables os: openbsd Issue or PR related to OpenBSD labels Nov 22, 2024
@epsheldoni
Copy link

OS should be OpenBSD 7.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR cpu Issue or PR that's related to CPU or process tracking os: openbsd Issue or PR related to OpenBSD text Issue or PR related to `conky.text` variables
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants