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]: conky-cairo freezes on sway #1746

Open
kleshas opened this issue Feb 24, 2024 · 2 comments
Open

[Bug]: conky-cairo freezes on sway #1746

kleshas opened this issue Feb 24, 2024 · 2 comments
Labels
bug Bug report or bug fix PR display: wayland Issue related to Wayland backend priority: high A high priority issue or PR

Comments

@kleshas
Copy link

kleshas commented Feb 24, 2024

What happened?

2 monitors. Seconday runs conky. When you drag and drop a firefox (and chromium) tab from FF on primary monitor to the secondary monitor, the system freezes up permanently - no keyboard, nothing updated on screens, EXCEPT audio still works. Occasionally have the same issue when just watching video for example.

Running latest linux; downgrading to 6.6.10 crashes less often but it still does, even when not drag and dropping.

The one thing that seems to stop the freezing is not running conky on secondary monitor. You can run it on primary, and drag and drop will cause no issues.

Because of system freezes, there're no stack traces/journalctl or dmesg to view. on reboot journalctl shows everything up to the point of freeze.

I will downgrade conky and edit this with updates.
EDIT: Installed conky (not -cairo), and conky crashes when moving it with a buffer overflow) . Noticed this is a current issue. Downgraded to 1.18.3, and all seems good atm. No system freezing.

Version

1.19.7_pre conky-cairo

Which OS/distro are you seeing the problem on?

Arch Linux

Conky config

conky.config = {{

font = 'Liberation Mono Regular:size=10',
background = false,
cpu_avg_samples = 2,
diskio_avg_samples = 10,
double_buffer = true,
if_up_strictness = 'address',
net_avg_samples = 2,
no_buffers = true,
temperature_unit = 'celsius',
text_buffer_size = 2048,
update_interval = 1,
imlib_cache_size = 0,
alignment = 'top_left',
gap_x = 0,
gap_y = 0,
minimum_height = 600,
minimum_width = 350,
maximum_width = 350,
border_outer_margin = 1,
border_width = 1,
default_bar_width = 250,
default_bar_height = 10,
default_gauge_height = 25,
default_gauge_width = 40,
default_graph_height = 40,
default_graph_width = 153,
default_shade_color = '#000000',
default_outline_color = '#000000',
draw_borders = false,
draw_graph_borders = true,
draw_shades = false,
draw_outline = false,
stippled_borders = 0,
extra_newline = false,
format_human_readable = true,
max_text_width = 0,
max_user_text = 16384,
short_units = true,
top_name_width = 21,
top_name_verbose = false,
uppercase = false,
use_spacer = 'none',
use_xft = true,
xftalpha = 1,
own_window = true,
own_window_argb_value =255,
own_window_argb_visual = true,
own_window_class = 'Conky',
own_window_transparent = false,
own_window_title = 'system_conky',
own_window_type = 'normal',
format_human_readable = true,

-- CONKYMATIC VARIABLES -------------------------------------------------------------

color0 = '{color0}', -- "black"
color1 = '{color1}', -- variables
color2 = '{color2}', -- HEADINGS
color3 = '{color3}', -- 
color4 = '{color4}', --
color5 = '{color5}', -- 
color6 = '{color6}', -- 
color7 = '{color7}', -- entry titles
color8 = '{color8}', -- window background
color9 = '{color9}', --


default_color = '1A4770', -- Window border
own_window_colour = '{color8}', -- Window background color

}};

conky.text = [[
${{color2}}${{font :size=12}}SYSTEM${{hr 3}}${{font}}
 ${{color7}}Hostname: ${{color1}}$nodename${{alignr}}${{color7}}Kernel: ${{color1}}$kernel
 ${{color7}}Uptime: ${{color1}}$uptime${{alignr}}${{color7}}Conky version: ${{color1}}$conky_version
 ${{time}}

${{color2}}${{font :size=12}}CPU${{hr 3}}${{font}}
 ${{color7}}Freq.:${{color1}} ${{freq_g}}${{color7}}GHz
 ${{color7}}Usage:${{color1}} ${{cpu}}% ${{alignr}}${{cpubar 10}}
 ${{alignr}}${{cpugraph 30,345}}
 
 ${{color7}}Package ID0 ${{color1}}${{hwmon coretemp temp 1}}°C
 ${{color7}}Core0 ${{goto 50}}   ${{color1}}${{cpu cpu1}}% ${{goto 95}}${{cpubar cpu1 13, 40}} ${{alignr}}${{color7}}Core4   ${{color1}}${{cpu cpu2}}% ${{cpubar cpu2 13, 40}}
 ${{color7}}Core8 ${{goto 50}}   ${{color1}}${{cpu cpu3}}% ${{goto 95}}${{cpubar cpu3 13, 40}} ${{alignr}}${{color7}}Core12   ${{color1}}${{cpu cpu4}}% ${{cpubar cpu4 13, 40}}
 ${{color7}}Core16 ${{goto 50}}   ${{color1}}${{cpu cpu5}}% ${{goto 95}}${{cpubar cpu5 13, 40}} ${{alignr}}${{color7}}Core20   ${{color1}}${{cpu cpu6}}% ${{cpubar cpu6 13, 40}}
 ${{color7}}Core28 ${{goto 50}}   ${{color1}}${{cpu cpu7}}% ${{goto 95}}${{cpubar cpu7 13, 40}} ${{alignr}}${{color7}}Core29   ${{color1}}${{cpu cpu8}}% ${{cpubar cpu8 13, 40}}
 ${{color7}}Core30 ${{goto 50}}   ${{color1}}${{cpu cpu9}}% ${{goto 95}}${{cpubar cpu9 13, 40}} ${{alignr}}${{color7}}Core31   ${{color1}}${{cpu cpu10}}% ${{cpubar cpu10 13, 40}}

 ${{color7}}Top Processes
  ${{color7}}CPU Usage ${{alignr}} PID   CPU%   MEM%
   ${{color1}}${{top name 1}}${{alignr}}${{top pid 1}}   ${{top cpu 1}}      ${{top mem 1}}
   ${{color1}}${{top name 2}}${{alignr}}${{top pid 2}}   ${{top cpu 2}}      ${{top mem 2}}
   ${{color1}}${{top name 3}}${{alignr}}${{top pid 3}}   ${{top cpu 3}}      ${{top mem 3}}

${{color2}}${{font :size=12}}MEMORY${{hr 3}}${{font}}
 ${{color7}}RAM:${{color1}} ${{mem}} ${{alignr}}${{color1}}${{membar 10}}
 ${{color1}}${{memgraph 30,345}}
 ${{color7}}Swap:${{color1}} ${{swap}} ${{alignr}}${{color1}}${{swapbar 10}}
 
 ${{color7}}Largest Users:
 ${{color7}}CPU Usage ${{alignr}} PID   CPU%   MEM%
  ${{color1}}${{top_mem name 1}}${{alignr}}${{top_mem pid 1}}   ${{top_mem cpu 1}}      ${{top_mem mem_res 1}}
  ${{color1}}${{top_mem name 2}}${{alignr}}${{top_mem pid 2}}   ${{top_mem cpu 2}}      ${{top_mem mem_res 2}}
  ${{color1}}${{top_mem name 3}}${{alignr}}${{top_mem pid 3}}   ${{top_mem cpu 3}}      ${{top_mem mem_res 3}}
  
${{color2}}${{font :size=12}}FILE SYSTEM${{hr 3}}${{font}}
 ${{color7}}I/O: ${{color1}}${{diskio}}B/s
 ${{color7}}I/O read: ${{color1}}${{diskio_read}} ${{color7}}${{alignr}}I/O write: ${{color1}}${{diskio_write}}
 ${{diskiograph_read 30,155}} ${{alignr}}${{diskiograph_write 30,155}}
 
 ${{color7}}/             ${{goto 100}} ${{color1}}${{fs_type /}}${{alignr}} ${{color1}} ${{fs_used /}} / ${{fs_size /}} ${{alignr}}${{color1}}${{fs_bar 10,80 /}}
 ${{color7}}nvme0n1p3     ${{goto 100}} ${{color1}}${{fs_type /mnt/nvme0n1p3}}  ${{color1}}${{execi 10 sudo nvme smart-log /dev/nvme0 | grep '^temperature'|cut -c 18-23}}  ${{alignr}} ${{color1}} ${{fs_used /mnt/nvme0n1p3}} / ${{fs_size /mnt/nvme0n1p3}} ${{alignr}}${{color1}}${{fs_bar 10,80 /mnt/nvme0n1p3}}
 ${{color7}}SN570       ${{goto 100}} ${{color1}}${{fs_type /mnt/sn570}}  ${{color1}}${{execi 10 sudo nvme smart-log /dev/nvme2 | grep '^temperature'|cut -c 18-23}} ${{alignr}} ${{color1}} ${{fs_used /mnt/sn570}} / ${{fs_size /mnt/sn570}} ${{alignr}}${{color1}}${{fs_bar 10,80 /mnt/sn570}}
 ${{color7}}670p       ${{goto 100}} ${{color1}}${{fs_type /mnt/670p}}  ${{color1}}${{execi 10 sudo nvme smart-log /dev/nvme1 | grep '^temperature'|cut -c 18-23}} ${{alignr}} ${{color1}} ${{fs_used /mnt/670p}} / ${{fs_size /mnt/670p}} ${{alignr}}${{color1}}${{fs_bar 10,80 /mnt/670p}}
 ${{color7}}10TB		${{goto 100}} ${{color1}}${{fs_type /mnt/10TB}}  ${{color1}}${{hddtemp /dev/sda}} °C ${{alignr}} ${{color1}} ${{fs_used /mnt/10TB}} / ${{fs_size /mnt/10TB}} ${{alignr}}${{color1}}${{fs_bar 10,80 /mnt/10TB}}
 ${{color7}}8TB		   ${{goto 100}} ${{color1}}${{fs_type /mnt/8TB}}  ${{color1}}${{hddtemp /dev/sdb}} °C ${{alignr}} ${{color1}} ${{fs_used /mnt/8TB}} / ${{fs_size /mnt/8TB}} ${{alignr}}${{color1}}${{fs_bar 10,80 /mnt/8TB}}
 ${{color7}}4TB		   ${{goto 100}} ${{color1}}${{fs_type /mnt/4TB}}  ${{color1}}${{hddtemp /dev/sdc}} °C ${{alignr}} ${{color1}} ${{fs_used /mnt/4TB}} / ${{fs_size /mnt/4TB}} ${{alignr}}${{color1}}${{fs_bar 10,80 /mnt/4TB}}
 
${{color2}}${{font :size=12}}NETWORK${{hr 3}}${{font}}
 ${{color7}}External IP: ${{color1}}${{execi 60 wget http://ipinfo.io/ip -qO -}} ${{alignr}}${{if_up wg-mullvad}} ${{color7}}VPN: ${{color green}}CONNECTED${{else}} ${{color7}}VPN: ${{color red}}DISCONNECTED${{endif}}
 ${{color7}}Net Down:${{color1}} ${{downspeedf enp8s0}}kiB/s ${{alignr}} ${{color7}}Net Up:${{color1}} ${{upspeedf enp8s0}}kiB/s
 ${{color1}}${{downspeedgraph enp8s0 30,155}} ${{alignr}}${{color1}}${{upspeedgraph enp8s0 30,155}}
 ${{color7}}Total down:${{color1}}${{totaldown enp8s0}} ${{alignr}}${{color7}}Total Up:${{color1}}${{totalup enp8s0}}
 
 ${{color7}}Inbound: ${{color1}}${{tcp_portmon 1 32767 count}}  ${{color7}}Outbound: ${{color1}}${{tcp_portmon 32768 61000 count}}${{alignr}}
 ${{color7}}Inbound Connection ${{alignr}} Local Service/Port
  ${{color1}}${{tcp_portmon 1 32767 rhost 0}} ${{alignr}} ${{tcp_portmon 1 32767 lservice 0}}
  ${{color1}}${{tcp_portmon 1 32767 rhost 1}} ${{alignr}} ${{tcp_portmon 1 32767 lservice 1}}
  ${{color1}}${{tcp_portmon 1 32767 rhost 2}} ${{alignr}} ${{tcp_portmon 1 32767 lservice 2}}
  ${{color1}}${{tcp_portmon 1 32767 rhost 3}} ${{alignr}} ${{tcp_portmon 1 32767 lservice 3}}
 ${{color7}}Outbound Connection ${{alignr}} Remote Service/Port
  ${{color1}}${{tcp_portmon 32768 61000 rhost 0}} ${{alignr}} ${{tcp_portmon 32768 61000 rservice 0}}
  ${{color1}}${{tcp_portmon 32768 61000 rhost 1}} ${{alignr}} ${{tcp_portmon 32768 61000 rservice 1}}
  ${{color1}}${{tcp_portmon 32768 61000 rhost 2}} ${{alignr}} ${{tcp_portmon 32768 61000 rservice 2}}
  ${{color1}}${{tcp_portmon 32768 61000 rhost 3}} ${{alignr}} ${{tcp_portmon 32768 61000 rservice 3}}

${{color2}}${{font :size=12}}GPU${{hr 3}}${{font}}
 ${{color7}}GPU fan: ${{color1}}${{execi 5 sensors | grep fan1 |head -1 | cut -c 14-17}}rpm ${{color7}}${{alignr}}GPU Temp ${{color1}}${{execi 5 sensors | grep edge | cut -c 16-17}}°C
 ${{color7}}GPU Usage: ${{color1}}${{execi 5 radeontop -d- -l1 | grep -o 'gpu [0-9]\{{1,3\}}' | cut -c 5-10}}%${{alignr}}${{color7}}Memory Usage: ${{color1}}${{execi 5 radeontop -d- -l1 | grep -o 'vram [0-9]\{{1,3\}}' | cut -c 5-10}}%
 
]]

Stack trace

n/a - system freezes

Relevant log output

n/a - system freezes
@kleshas kleshas added bug Bug report or bug fix PR triage Issue that hasn't been verified labels Feb 24, 2024
@brndnmtthws brndnmtthws removed the triage Issue that hasn't been verified label Feb 24, 2024
@lnxlv
Copy link

lnxlv commented Apr 12, 2024

What happened?

Similar problem as reported by previous member, but with Openbox WM. System often freezes. I cannot find or reproduce exact circumstances under which these freezes occur.
During the freeze mouse cursor can be moved, but clicks has no effects. Keyboard works, at least Ctrl-Alt-F2 works, can switch to console.
In the console process monitor (htop) shows high CPU load ~100% for openbox and conky. After killing conky process, openbox still consumes around 100% CPU and does not responding to mouse clicks. After killing openbox and restarting Xorg session everything works good until next freeze.
The same problem is observed оn another machine with almost the same openbox and conky configuration.
Rolling back the conky to 1.18.3 solves the problem, no freezes occurs with 1.18.3 version.

Version

1.19.6, 1.19.7 (Arch linux conky-1.19.6-1, 1.19.7-1, 1.19.7-2 versions tested)

Which OS/distro are you seeing the problem on?

Arch Linux

Conky config

conky.config = { 
 alignment='bottom_right',
 background=true,
 border_width=1,
 cpu_avg_samples=2,
 default_color='grey',
 default_outline_color='white',
 default_shade_color='white',
 double_buffer=true,
 draw_borders=false,
 draw_graph_borders=true,
 draw_outline=false,
 draw_shades=false,
 gap_x=30,
 gap_y=40,
 maximum_width=1000,
 net_avg_samples=2,
 no_buffers=false,
 out_to_console=false,
 own_window=true,
 own_window_transparent = true,
 own_window_argb_visual = true,
 own_window_hints='undecorated,below,sticky,skip_taskbar,skip_pager',
 own_window_class='Conky',
 own_window_type='desktop',
 own_window_transparent=true,
 stippled_borders=0,
 update_interval=3,
 uppercase=false,
 show_graph_scale=false,
 show_graph_range=false,
 text_buffer_size=4096,
 use_xft=true,
 font='Dejavu Sans:size=8',
 xftalpha=1.0,
}
conky.text=[[
${color grey}${font DejaVu Sans Mono :size=9}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed s/"$DJS"'\b'/'${color orange}'"$DJS"'${color grey}'/ | sed s/^/'${offset 600}'/}$font

${exec journalctl -n 9}

${offset 500}${font Dejavu Sans Mono :size=8} ${color grey}Disk space free/used
${offset 500}${color grey} /      : $color${fs_free /}/${color grey}${fs_used /}
${offset 500}${color grey} /media  : $color${fs_free /media}/${color grey}${fs_used /media}
${font}
${offset 500}${font DejaVu Sans Mono :size=8} ${color grey}Networking
${offset 500}${font DejaVu Sans Mono :size=8}${color grey} Wired ${font}Up:$color${upspeed eno1}${color grey} Down:$color${downspeed eno1}
#${offset 500}${font DejaVu Sans Mono :size=8}${color grey} Wi-Fi ${font}Up:$color${upspeed wlan0}${color grey} Down:$color${downspeed wlan0}
]]

Stack trace

n/a

Relevant log output

nothing to report

@Caellian Caellian self-assigned this Apr 12, 2024
@Caellian Caellian added display: wayland Issue related to Wayland backend priority: high A high priority issue or PR labels Apr 15, 2024
@Caellian Caellian added this to the Wayland Support milestone Apr 19, 2024
@Caellian Caellian removed their assignment Apr 30, 2024
@kleshas
Copy link
Author

kleshas commented May 6, 2024

1.19.8_pre (arch linux version) seems to have fixed this; so far, no problems on a new install

edit: or not. Instead of freezing the system, conky(-cairo) freezes now. Back to 1.18.3

@Caellian Caellian changed the title [Bug]: conky causing sway to freeze [Bug]: conky-cairo freezes on sway May 9, 2024
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 display: wayland Issue related to Wayland backend priority: high A high priority issue or PR
Projects
None yet
Development

No branches or pull requests

4 participants