Imlib error in .xsession-error

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
zcot
Level 4
Level 4
Posts: 492
Joined: Wed Oct 19, 2016 6:08 pm

Re: Imlib error in .xsession-error

Post by zcot » Sat Aug 24, 2019 9:11 am

Oh, nice. Yes, I see it.

The problem is that the variable imgGlass fails, since the image is missing.

so 'glass.png' never gets loaded and the other calls with it fail too.

load image
blend image
and free image

RemonK
Level 4
Level 4
Posts: 235
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: Imlib error in .xsession-error

Post by RemonK » Sat Aug 24, 2019 1:27 pm

Dohhh :shock: why didn't i see that??? *facepalm*
I looked over that script a dozen times and did not noticed that. How stupid... Just checked the existing themes of that clock and they all have the same problem, no glass.png! Removed the references to that file and it runs fine now! Thank you for that! :D

While you're at it with your sharp eye, can you overlook these 2 scripts please? The terminal message say they miss an ${endif} but i can't seem to find where it is missing? I tried on a few places but it did not work.

The CPU bars with different temp colors

Code: Select all

conky.text = [[
${color1}CPU  LOAD ${color0}${alignr}${freq cpu0} Mhz
#
#${color2}45 ${color3}50 ${color4}53 ${color5}55 ${color6}58 ${color7}60 ${color8}63 ${color9}65
#
# CORE 1
   ${voffset -2}${offset 7}${color FC5C09}${cpubar cpu1 8,164}
   ${voffset -17}${color A0A595}${cpubar cpu1 8,172}${alignr}\
${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} <= 44}${color2}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 45}${color3}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 50}${color4}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 53}${color5}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 55}${color6}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 58}${color7}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 60}${color8}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 2} >= 63}${color9}${endif}\
${endif}${voffset -1}${platform coretemp.0/hwmon/hwmon2 temp 2} °C
#
# CORE 2
   ${voffset -2}${offset 7}${color FC5C09}${cpubar cpu2 8,164}
   ${voffset -17}${color A0A595}${cpubar cpu2 8,172}${alignr}\
${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} <= 44}${color2}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 45}${color3}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 50}${color4}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 53}${color5}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 55}${color6}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 58}${color7}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 60}${color8}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 3} >= 63}${color9}${endif}\
${endif}${voffset -1}${platform coretemp.0/hwmon/hwmon2 temp 3} °C
#
# CORE 3
   ${voffset -2}${offset 7}${color FC5C09}${cpubar cpu3 8,164}
   ${voffset -17}${color A0A595}${cpubar cpu3 8,172}${alignr}\
${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} <= 44}${color2}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 45}${color3}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 50}${color4}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 53}${color5}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 55}${color6}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 58}${color7}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 60}${color8}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 4} >= 63}${color9}${endif}\
${endif}${voffset -1}${platform coretemp.0/hwmon/hwmon2 temp 4} °C
#
# CORE 4
   ${voffset -2}${offset 6}${color FC5C09}${cpubar cpu4 8,165}
   ${voffset -17}${color A0A595}${cpubar cpu4 8,172}${alignr}\
${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} <= 44}${color2}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 45}${color3}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 50}${color4}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 53}${color5}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 55}${color6}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 58}${color7}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 60}${color8}${endif}\
${else}${if_match ${platform coretemp.0/hwmon/hwmon2 temp 5} >= 63}${color9}${endif}\
${endif}${voffset -1}${platform coretemp.0/hwmon/hwmon2 temp 5} °C
#
]];

And with this one the same missing ${endif} and the motherboard temp doesn't change color, while the gpu temp does change with the same piece of script!?

Code: Select all

conky.text = [[
#
# Test temp colors
#${font Noto Sans:bold:size=14}${color5}O ${color6}O ${color7}O${font}
#
# OS INFO
${color2}OS ${color0}${alignr}${execi 600 cat /etc/linuxmint/info | grep 'DESCRIPTION=' | cut -c 14-29} ${execi 600 cat /etc/linuxmint/info | grep 'EDITION=' | cut -c 10-17}
#
# DESKTOP INFO
${voffset -3}${color2}DESKTOP ${color0}${alignr}${execi 600 cat /etc/linuxmint/info | grep 'DESKTOP=' | cut -c 9-14} & ${execi 600 cat /etc/linuxmint/info | grep 'TOOLKIT=' | cut -c 9-14}
#
# KERNEL INFO
${voffset -3}${color2}KERNEL ${color0}${alignr}$kernel   ${execi 600 uname -i}
#
# CPU ID
${voffset -3}${color2}CPU ${color0}${alignr}${execi 600 cat /proc/cpuinfo | grep -m 1 -oP "^model name.*:\K.*" | awk '{gsub("CPU", "");print}' | awk '{gsub("[(R]", "");print}' | awk '{gsub("[TM)]", "");print}'}
#
# MOTHERBOARD INFO
${voffset -3}${color2}MOBO ${color0}${alignr}${execi 600 cat /sys/devices/virtual/dmi/id/sys_vendor} ${execi 600 cat /sys/devices/virtual/dmi/id/board_name} ${color3}(${execi 600 cat /sys/devices/virtual/dmi/id/board_version})${color0}\
${if_match ${platform nct6775.656/hwmon/hwmon3 temp 1} <= 35}${color0}\
${else}${if_match ${platform nct6775.656/hwmon/hwmon3 temp 1} >= 38}${color5}${endif}\
${else}${if_match ${platform nct6775.656/hwmon/hwmon3 temp 1} >= 42}${color6}${endif}\
${else}${if_match ${platform nct6775.656/hwmon/hwmon3 temp 1} >= 47}${color7}${endif}\
${endif}   ${platform nct6775.656/hwmon/hwmon3 temp 1} °C
#
# BIOS INFO
${voffset -3}${color2}BIOS ${color0}${alignr}${execi 600 cat /sys/devices/virtual/dmi/id/bios_vendor}  v${execi 600 cat /sys/devices/virtual/dmi/id/bios_version}
#
# GPU INFO
${voffset -3}${color2}GPU ${color0}${alignr}Radeon R5770\
${if_match ${hwmon 1 temp 1} <= 50}${color0}\
${else}${if_match ${hwmon 1 temp 1} >= 51}${color5}${endif}\
${else}${if_match ${hwmon 1 temp 1} >= 57}${color6}${endif}\
${else}${if_match ${hwmon 1 temp 1} >= 65}${color7}${endif}\
${endif}    ${hwmon 1 temp 1} °C
#
]];
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

RemonK
Level 4
Level 4
Posts: 235
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: Imlib error in .xsession-error

Post by RemonK » Sat Aug 24, 2019 1:40 pm

Never mind the motherboard temp, i solved that one! I had a gap between 35 and 38 degrees, so the color stays white.
But the missing ${endif} still riddles me. It seems to me i did it right when i look at other examples, i really have no clue where they are missing??
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

User avatar
zcot
Level 4
Level 4
Posts: 492
Joined: Wed Oct 19, 2016 6:08 pm

Re: Imlib error in .xsession-error

Post by zcot » Sat Aug 24, 2019 5:14 pm

Great! good, that's a nice clock.

I don't see anything wrong in those scripts, syntax-wise.

but, make sure each of the calls can be successful on its own, otherwise part of this if_else scaffolding could mess up and break, then you are left with missing parts:

Code: Select all

core 1 temp: ${platform coretemp.0/hwmon/hwmon2 temp 2}
core 2 temp: ${platform coretemp.0/hwmon/hwmon2 temp 3}
core 3 temp: ${platform coretemp.0/hwmon/hwmon2 temp 4}
core 4 temp: ${platform coretemp.0/hwmon/hwmon2 temp 5}
mobo temp: ${platform nct6775.656/hwmon/hwmon3 temp 1}
that's all I can think of.

I don't have anything useful with the platform (/sys/bus/platform/devices/) functionality, everything I have is under the hwmon (/sys/class/hwmon/) tree like your gpu call.

User avatar
zcot
Level 4
Level 4
Posts: 492
Joined: Wed Oct 19, 2016 6:08 pm

Re: Imlib error in .xsession-error

Post by zcot » Mon Aug 26, 2019 2:20 pm

RemonK wrote:
Sat Aug 24, 2019 1:40 pm
Never mind the motherboard temp, i solved that one! I had a gap between 35 and 38 degrees, so the color stays white.
But the missing ${endif} still riddles me. It seems to me i did it right when i look at other examples, i really have no clue where they are missing??
I was playing around with this. Weird one.

So, keep adding ${endif} at the end of the block until the error message is gone. :wink:

RemonK
Level 4
Level 4
Posts: 235
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: Imlib error in .xsession-error

Post by RemonK » Tue Aug 27, 2019 7:13 am

zcot wrote:
Sat Aug 24, 2019 5:14 pm
but, make sure each of the calls can be successful on its own, otherwise part of this if_else scaffolding could mess up and break, then you are left with missing parts:
They worked a few months without the tempcolor switching, later i added the $if_match.
And then it worked a few weeks before you opted to start them in a terminal and then found out about the missing ${endif}.
So that is strange..

zcot wrote:I don't have anything useful with the platform (/sys/bus/platform/devices/) functionality, everything I have is under the hwmon (/sys/class/hwmon/) tree like your gpu call.
Not all my hardware can be found under hwmon..

zcot wrote:
Mon Aug 26, 2019 2:20 pm
So, keep adding ${endif} at the end of the block until the error message is gone. :wink:
Going to try that and let you know if that worked! ;)
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

Post Reply

Return to “Newbie Questions”