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 doesn't show a window on KDE #2008

Closed
maxulm opened this issue Aug 5, 2024 · 6 comments
Closed

[Bug]: Conky doesn't show a window on KDE #2008

maxulm opened this issue Aug 5, 2024 · 6 comments
Labels
bug Bug report or bug fix PR display: wayland Issue related to Wayland backend

Comments

@maxulm
Copy link

maxulm commented Aug 5, 2024

What happened?

Conky doesn't start anymore on current Arch.

Version

1.21.5-1

Which OS/distro are you seeing the problem on?

Arch Linux

Conky config

font = 'DejaVu Sans Mono:size=10',

....


${font Font Awesome 6 Free:style=Solid:size=12}↓${font}          ${downspeed enp0s31f6}
${font Font Awesome 6 Free:style=Solid:size=12}↑${font}          ${upspeed enp0s31f6}

Stack trace

No response

Relevant log output

DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
@maxulm maxulm added bug Bug report or bug fix PR triage Issue that hasn't been verified labels Aug 5, 2024
@zlice
Copy link
Contributor

zlice commented Aug 6, 2024

#1939 not sure if this is related. this fix it?

@Caellian Caellian added the need details Issue that's waiting for more details from reporter label Oct 2, 2024
@Caellian
Copy link
Collaborator

Caellian commented Oct 2, 2024

@maxulm Do you mind providing the following details so I can triage this issue better:

  • Which WM/DE you're using? Is it wayland/X11?
  • Provide the whole script file. Just dump it here, I'll clean it up if needed.
  • How do you start conky? Is it with Xinitrc, WM/DE autostart script, manually?
    • Does the issue occur when started manually from the terminal?

Depending on those, there might be some additional questions I'll ask.

@maxulm
Copy link
Author

maxulm commented Oct 3, 2024

@maxulm Do you mind providing the following details so I can triage this issue better:

  • Which WM/DE you're using? Is it wayland/X11?

  • Provide the whole script file. Just dump it here, I'll clean it up if needed.

  • How do you start conky? Is it with Xinitrc, WM/DE autostart script, manually?

    • Does the issue occur when started manually from the terminal?

Depending on those, there might be some additional questions I'll ask.

Hi,
thank you!

  1. I'm using KDE 6.1 with wayland
  2. See below
  3. With KDE autostart, but the problem still occurs starting conky via terminal
-- Conky, a system monitor https://github.com/brndnmtthws/conky
--
-- This configuration file is Lua code. You can write code in here, and it will
-- execute when Conky loads. You can use it to generate your own advanced
-- configurations.
--
-- Try this (remove the `--`):
--
--   print("Loading Conky config")
--
-- For more on Lua, see:
-- https://www.lua.org/pil/contents.html

conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = '#FFFFFF',
    default_outline_color = '#FFFFFF',
    default_shade_color = '#FFFFFF',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'DejaVu Sans Mono:size=10',
    gap_x = 60,
    gap_y = 60,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = false,
    out_to_wayland = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'dock',
    own_window_argb_visual = true,
    own_window_transparent = true,
    own_window_hints = 'below,skip_taskbar,sticky',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true
}

conky.text = [[
${color #808080}Info:$color ${scroll 32 $sysname $nodename $kernel $machine}
$hr
${color #808080}Uptime:$color $uptime
${color #808080}Frequency (in MHz):$color $freq
${color #808080}Frequency (in GHz):$color $freq_g
${color #808080}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
#${color #808080}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color #808080}CPU Usage:$color $cpu% ${cpubar 4}
${color #808080}Processes:$color $processes  ${color #808080}Running:$color $running_processes
$hr
${color #808080}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
#${color #808080}Networking:
#Up:$color ${upspeed} ${color #808080} - Down:$color ${downspeed}
#$hr
${color #808080}Name              PID     CPU%   MEM%
${color #D3D3D3} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #D3D3D3} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #D3D3D3} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #D3D3D3} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
${color #808080}wifi:${color}${if_up wlp3s0}
IP         ${addr wlp3s0}
GW         ${gw_ip wlp3s0}
SSID       ${wireless_essid wlp3s0}
strength   ${wireless_bitrate wlp3s0}
quality    ${wireless_link_qual wlp3s0}%
${endif wlp3s0}
$hr
${color #808080}lan:${color}${if_up enp0s31f6}
IP         ${addr enp0s31f6}
GW         ${gw_ip enp0s31f6}
${font Font Awesome 6 Free:style=Solid:size=12}↓${font}          ${downspeed enp0s31f6}
${font Font Awesome 6 Free:style=Solid:size=12}↑${font}          ${upspeed enp0s31f6}
${endif enp0s31f6}
${if_up ppp0}
${hr}
${color #808080}vpn:${color}
IP        ${addr ppp0}
GW        ${gw_ip ppp0}
${endif ppp0}

${hr}
battery load    ${battery_bar BAT1}
battery state   ${battery BAT1}
${hr}
#AGE	${execi 600 /usr/share/wie/scripts/age} days
]]

@Caellian Caellian added the display: wayland Issue related to Wayland backend label Oct 3, 2024
@Caellian Caellian added this to the Wayland Support milestone Oct 3, 2024
@Caellian Caellian removed triage Issue that hasn't been verified need details Issue that's waiting for more details from reporter labels Oct 3, 2024
@Caellian
Copy link
Collaborator

Caellian commented Oct 3, 2024

Right, Wayland support is very WIP at the moment. There's a lot of things that don't work correctly.

Do you mind running conky -DD and pasting the whole debug output?

@maxulm
Copy link
Author

maxulm commented Oct 4, 2024

Right, Wayland support is very WIP at the moment. There's a lot of things that don't work correctly.

Do you mind running conky -DD and pasting the whole debug output?

DEBUG(0) [/usr/src/debug/conky/conky/src/conky.cc:1956]: reading contents from config file '/home/maximilian/.config/conky/conky.conf'
conky: drawing to single buffer
DEBUG(1) [/usr/src/debug/conky/conky/src/core.cc:2108]: no templates to replace
DEBUG(1) [/usr/src/debug/conky/conky/src/core.cc:2108]: no templates to replace
DEBUG(1) [/usr/src/debug/conky/conky/src/core.cc:714]: Adding $cpu for CPU 0
DEBUG(1) [/usr/src/debug/conky/conky/src/core.cc:728]: Adding $cpubar for CPU 0
DEBUG(0) [/usr/src/debug/conky/conky/src/display-output.cc:39]: HTTP display output disabled. Enable by recompiling with 'BUILD_HTTP' flag enabled.
conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11
conky: FOUND: wayland
DEBUG(1) [/usr/src/debug/conky/conky/src/display-output.cc:99]: Testing display output 'x11'... 
DEBUG(1) [/usr/src/debug/conky/conky/src/display-output.cc:99]: Testing display output 'wayland'... 
DEBUG(1) [/usr/src/debug/conky/conky/src/display-wayland.cc:251]: Wayland display output 'wayland' enabled in config.
DEBUG(1) [/usr/src/debug/conky/conky/src/display-output.cc:101]: Detected display output 'wayland'... 
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(0) [/usr/src/debug/conky/conky/src/display-output.cc:109]: Initialized display output 'wayland'... 
DEBUG(1) [/usr/src/debug/conky/conky/src/display-output.cc:99]: Testing display output 'ncurses'... 
DEBUG(1) [/usr/src/debug/conky/conky/src/display-output.cc:99]: Testing display output 'console'... 
DEBUG(1) [/usr/src/debug/conky/conky/src/display-output.cc:99]: Testing display output 'file'... 
conky: '(null)' wayland session running 'KDE' desktop
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(0) [/usr/src/debug/conky/conky/src/display-wayland.cc:692]: conky: defining struts

DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/conky.cc:638]: jumping
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:84]: loading fonts
DEBUG(1) [/usr/src/debug/conky/conky/src/fonts.cc:64]: setting up fonts
^Cconky: received SIGHUP, SIGINT, or SIGTERM to terminate. bye!

The 4 lines are always repeating. I've stopped the process at the end.

@Caellian
Copy link
Collaborator

Caellian commented Oct 4, 2024

Closing as duplicate of #1960.

Than you for the additional infomation. It's linked with the other issue so whoever gets to fixing it will see it.

@Caellian Caellian closed this as completed Oct 4, 2024
@Caellian Caellian reopened this Oct 4, 2024
@Caellian Caellian closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
@Caellian Caellian changed the title [Bug]: Conky doesn't start [Bug]: Conky doesn't show a window on KDE Oct 4, 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
Projects
None yet
Development

No branches or pull requests

3 participants