You are not logged in.

#1 2018-11-19 15:10

jschall
Member
Registered: 2018-09-16
Posts: 51

conky keeps crashing

Does anybody know why my conky keeps crashing?

Here is just one of several error messages I keep getting:
---------------------------------------------------------------------
adminq@pinebook1080p:~$ conky&
[1] 16383
adminq@pinebook1080p:~$ conky: desktop window (1200016) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x3c00002)
conky: drawing to double buffer
conky: malloc.c:2406: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
^C
[1]+  Aborted                 conky
adminq@pinebook1080p:~$
-------------------------------------------------------------------------
.conkyrc:
conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=12',
    gap_x = 5,
    gap_y = 60,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    double_buffer = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_argb_visual = true,
    own_window_argb_value = 0,
stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
Battery: ${exec ./batt_percent}%
$hr
${color grey}Uptime:$color $uptime
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${cpugraph 000000 ffffff}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
$hr
${color grey}Networking:
${wireless_essid}, ${addr waan0}, -${exec ./wifilevel}
Down:${downspeed waan0} ${downspeedgraph waan0}
Up:${upspeed waan0} ${upspeedgraph waan0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
]]


Attachments:
png 2018-11-19-080854_1920x1080_scrot.png, Size: 280.5 KiB, Downloads: 565

Offline

#2 2018-11-19 17:53

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: conky keeps crashing

The problem appears to be with your script, could you post the content of wifilevel?

Offline

#3 2018-11-19 19:34

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: conky keeps crashing

Here is my wifilevel script:
#!/bin/sh
/sbin/iwconfig waan0|grep level|cut -b46-52

Offline

#4 2018-11-19 20:44

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: conky keeps crashing

I just tested that on my laptop and instead of a script I used this

${exec /sbin/iwconfig wlp1s0|grep level|cut -b45-47}

it seems to work ok here,

This is the full text section that works for me

conky.text = [[
Battery: ${battery BAT0}
$hr
${color grey}Uptime:$color $uptime
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${cpugraph 000000 ffffff}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
$hr
${color grey}Networking:
${wireless_essid waan0}, ${addr waan0}, -${exec /sbin/iwconfig waan0|grep level|cut -b45-47}
Down:${downspeed waan0} ${downspeedgraph waan0}
Up:${upspeed waan0} ${upspeedgraph waan0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
]]

Obviously I replaced the waan0 with my own device ID and it all worked correctly...

UUIiGBH.png

1 other thing I noticed is that you have no device id for your wireless_essid command but I didn't check if it made a difference.

Offline

#5 2018-11-19 21:39

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: conky keeps crashing

I added the device id to the wireless_essid comand.

My conky has been running without error for several minutes - maybe that was the problem.

Thanks for your help, @Dai_trying.

Offline

#6 2018-11-19 22:50

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: conky keeps crashing

You are welcome smile

Offline

#7 2018-11-20 13:55

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: conky keeps crashing

Here is a sequence of recent errors. I wonder if it's because this is an arm64 cpu?

adminq@pinebook1080p:~$ conky&
[1] 20237
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
*** Error in `conky': free(): invalid pointer: 0x000000555e1fb4e0 ***
conky&
[2] 20383
[1]   Aborted                 conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
*** Error in `conky': corrupted size vs. prev_size: 0x0000005555aa7f20 ***
conky&
[3] 21142
[2]   Aborted                 conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
*** Error in `conky': malloc(): memory corruption: 0x000000559172e010 ***
conky&
[4] 23065
[3]   Aborted                 conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
conky: attempt to index a nil value
conky&
[5] 23203
[4]   Exit 1                  conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
scrot
adminq@pinebook1080p:~$ *** Error in `conky': corrupted size vs. prev_size: 0x00000055942b6650 ***
conky&
[6] 26208
[5]   Aborted                 conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
*** Error in `conky': corrupted double-linked list: 0x000000557ae40f00 ***
conky&
[7] 26548
[6]   Aborted                 conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
*** Error in `conky': corrupted size vs. prev_size: 0x0000005592e26ca0 ***
conky&
[8] 26689
[7]   Aborted                 conky
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
conky: attempt to index a nil value
adminq@pinebook1080p:~$ conky: desktop window (a001f9) is subwindow of root window (25d)
conky: window type - normal
conky: drawing to created window (0x400002)
conky: drawing to double buffer
*** Error in `conky': free(): invalid pointer: 0x000000557e8d8590 ***

Last edited by jschall (2018-11-20 13:57)

Offline

#8 2018-11-20 14:24

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: conky keeps crashing

jschall wrote:

I wonder if it's because this is an arm64 cpu?

It is a possibility, but you should have the correct arm64 version of conky too so I'm not sure if that is the case.

Did you install using the Q4OS Pine64 setup guide?

Offline

#9 2018-11-20 16:32

jschall
Member
Registered: 2018-09-16
Posts: 51

Re: conky keeps crashing

No, real men don't need no setup guide :-)

Thanks for that link.

Offline

#10 2018-11-20 17:15

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,992

Re: conky keeps crashing

lol big_smile

Offline

Board footer

Powered by FluxBB