Open Myvillithdar opened 1 year ago
I've run into this same issue on Linux Mint 21.2 & Debian Edition 6.
After a bunch of testing I've determined that the issue is caused by this line:
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
@Myvillithdar It's my understanding that Cairo must be able to match the width and height of your Conky window, so I'm using:
local w=conky_window.width
local h=conky_window.height
But that obviously hasn't solved the problem. This is the function I'm using that's giving me the segfault:
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end
EDIT: This only appears to occur in the repo version of conky-all
which has conky
1.12.2. The appimage of 1.12.2 does not segfault under the same conditions.
Someone found a solution to this?
What happened?
I have a conky config that loads a lua file that does some cairo stuff. When I write to the conky config (not the other lua file) and conky attempts to reload it, it segfaults.
I've attached a minimal config that reproduces the issue.
Version
1.17.0_pre
Which OS/distro are you seeing the problem on?
Arch Linux
Conky config
Stack trace
Relevant log output