Comments (6)
looks like this happens for others too -d
conky: Invalid value of type 'table' for setting 'background'. Expected value of type 'boolean'.
from conky.
ok the value is -2
instead of whatever values boolean should have (1 and 0 ?). EDIT: ok I don't know what I'm talking about, since -2 is the index and this is the call if(ok && do_convert(l, -2).second)
conky: Invalid value of type 'table' (-2) for setting 'double_buffer'. Expected value of type 'boolean'.
And this doesn't happen on setting (due to -b
) but later on... I've yet to find out where
EDIT2: ok I found out how to get a stacktrace(when the error happens; line number will differ)
placed asm("int $3");
before the error, then
$ gdb -- conky
GNU gdb (GDB) 7.8.2
...
(gdb) run -DD -b
...
(gdb) bt full
#0 conky::simple_config_setting<bool, conky::lua_traits<bool, true, false, false> >::do_convert (this=0x6dd300 <use_xdbe>, l=..., index=-2)
at /tmp/makepkg/conky-git/src/conky/src/setting.hh:280
No locals.
#1 0x0000000000431012 in conky::simple_config_setting<bool, conky::lua_traits<bool, true, false, false> >::lua_setter (this=0x6dd300 <use_xdbe>, l=...,
init=<optimized out>)
at /tmp/makepkg/conky-git/src/conky/src/setting.hh:303
s = {L = 0x7064d0, n = 5}
ok = true
#2 0x00000000004803a9 in priv::use_xdbe_setting::lua_setter (
this=0x6dd300 <use_xdbe>, l=..., init=<optimized out>)
at /tmp/makepkg/conky-git/src/conky/src/x11.cc:164
s = {L = 0x7064d0, n = 5}
#3 0x000000000045f117 in conky::priv::config_setting_base::process_setting (
l=..., init=init@entry=true)
at /tmp/makepkg/conky-git/src/conky/src/setting.cc:137
s = {L = 0x7064d0, n = 4}
ptr = <optimized out>
#4 0x000000000045f80d in conky::set_config_settings (l=...)
at /tmp/makepkg/conky-git/src/conky/src/setting.cc:218
i = 100
s = {L = 0x7064d0, n = <optimized out>}
---Type <return> to continue, or q <return> to quit---
#5 0x00000000004356cc in initialisation (argc=argc@entry=3,
argv=argv@entry=0x7fffffffe028)
at /tmp/makepkg/conky-git/src/conky/src/conky.cc:2983
act = {__sigaction_handler = {sa_handler = 0x70a4e0,
sa_sigaction = 0x70a4e0}, sa_mask = {__val = {7336640, 0,
140737351974416, 140737310084976, 0, 0, 140737310085771,
140733193388032, 7385152, 7385112, 7045968, 0, 7365840, 0, 0,
0}}, sa_flags = -136407603, sa_restorer = 0x1}
oact = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0},
sa_mask = {__val = {140737349681480, 140737488347176, 3, 0,
140737351974416, 4788136, 140737349737070, 7365840,
140737330758057, 7365840, 16, 140737488346720, 140737488346640,
0, 140737310562631, 1}}, sa_flags = 3, sa_restorer = 0x3}
#6 0x000000000042950f in main (argc=3, argv=0x7fffffffe028)
at /tmp/makepkg/conky-git/src/conky/src/conky.cc:3148
from conky.
Stacktrace with correct line numbers (commit c35c852):
gdb -- conky
GNU gdb (GDB) 7.8.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from conky...done.
(gdb) run -DD -b
Starting program: /usr/bin/conky -DD -b
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
DEBUG(0) [/tmp/makepkg/conky-git/src/conky/src/conky.cc:2671]: reading contents from config file '/home/emacs/.conkyrc'
conky: desktop window (1600003) is subwindow of root window (2b7)
conky: window type - desktop
conky: drawing to created window (0x3a00001)
Program received signal SIGTRAP, Trace/breakpoint trap.
conky::simple_config_setting<bool, conky::lua_traits<bool, true, false, false> >::do_convert (
this=0x6dc300 <use_xdbe>, l=..., index=-2) at /tmp/makepkg/conky-git/src/conky/src/setting.hh:278
278 NORM_ERR("Invalid value of type '%s' for setting '%s'. "
(gdb) bt full
#0 conky::simple_config_setting<bool, conky::lua_traits<bool, true, false, false> >::do_convert (
this=0x6dc300 <use_xdbe>, l=..., index=-2) at /tmp/makepkg/conky-git/src/conky/src/setting.hh:278
index = -2
l = @0x7054d0: {<std::mutex> = {<std::__mutex_base> = {_M_mutex = {__data = {__lock = 0,
__count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {
__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>,
__align = 0}}, <No data fields>}, cobj = std::shared_ptr (count 1, weak 0) 0x706960}
this = 0x6dc300 <use_xdbe>
#1 0x0000000000430f2d in conky::simple_config_setting<bool, conky::lua_traits<bool, true, false, false> >::lua_setter (this=0x6dc300 <use_xdbe>, l=..., init=<optimized out>)
at /tmp/makepkg/conky-git/src/conky/src/setting.hh:298
s = {L = 0x7054d0, n = 5}
ok = true
#2 0x000000000047fc0d in priv::use_xdbe_setting::lua_setter (this=0x6dc300 <use_xdbe>, l=...,
init=<optimized out>) at /tmp/makepkg/conky-git/src/conky/src/x11.cc:163
s = {L = 0x7054d0, n = 5}
#3 0x000000000045ea37 in conky::priv::config_setting_base::process_setting (l=..., init=init@entry=true)
at /tmp/makepkg/conky-git/src/conky/src/setting.cc:137
s = {L = 0x7054d0, n = 4}
ptr = <optimized out>
#4 0x000000000045f12d in conky::set_config_settings (l=...)
at /tmp/makepkg/conky-git/src/conky/src/setting.cc:218
i = 100
s = {L = 0x7054d0, n = <optimized out>}
#5 0x000000000043559c in initialisation (argc=argc@entry=3, argv=argv@entry=0x7fffffffe028)
at /tmp/makepkg/conky-git/src/conky/src/conky.cc:2970
act = {__sigaction_handler = {sa_handler = 0x709510, sa_sigaction = 0x709510}, sa_mask = {__val = {
7332544, 0, 140737351974416, 140737310084976, 0, 0, 140737310085771, 140733193388032, 7381168,
7381128, 7041872, 0, 7361744, 0, 0, 0}}, sa_flags = -136407603, sa_restorer = 0x1}
oact = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {
140737349681480, 140737488347176, 3, 0, 140737351974416, 4785512, 140737349737070, 7361744,
140737330758057, 7361744, 16, 140737488346720, 140737488346640, 0, 140737310562631, 1}},
sa_flags = 3, sa_restorer = 0x3}
#6 0x00000000004294bf in main (argc=3, argv=0x7fffffffe028)
at /tmp/makepkg/conky-git/src/conky/src/conky.cc:3135
No locals.
(gdb)
diff --git a/src/setting.hh b/src/setting.hh
index e7b2064..5cf6901 100644
--- a/src/setting.hh
+++ b/src/setting.hh
@@ -274,6 +274,7 @@ namespace conky {
return {default_value, true};
if(l.type(index) != Traits::type) {
+ asm("int $3");
NORM_ERR("Invalid value of type '%s' for setting '%s'. "
"Expected value of type '%s'.", l.type_
name(l.type(index)),
Base::name.c_str(), l.type_name(Traits:
:type) );
from conky.
Issue #97 is a duplicate of this issue. By any chance, could you apply the patch in commit 11ec010 and see if it solves the problem for you?
from conky.
Hmm, since @ghost is a ghost now, I'll just ping this issue... Fixed by #119.
from conky.
Ping received. Allegedly fixed by #119. Thanks.
from conky.
Related Issues (20)
- [Bug]: Conky are only in window not at desktop on sway HOT 10
- [Bug]: own_window_type = 'panel' breaks window positioning HOT 3
- High cpu usage and broken position since last update HOT 1
- [Bug]: Fonts are red. Default config file, background is black, X11 environment HOT 5
- [Bug]: conky pixel unit isn't scaled by screen DPI HOT 25
- [Bug]: 1.21.1 /usr/share/doc/conky name mistake? HOT 2
- [Bug]: Wrong hr line thickness HOT 6
- [Bug]: 1.21.1 conky display is truncated HOT 8
- if_updatenr config in wayland/sway always crashes after a couple hours or so
- [Bug]: conky 1.21. does not start consistently HOT 1
- [Bug]: Tests fail with BUILD_COLOUR_NAME_MAP=OFF HOT 1
- [Bug]: Version 1.21.1 Images larger HOT 7
- [Bug]: attempt to call a nil value (global 'cairo_xlib_surface_create') HOT 4
- [Bug]: Build failure on aarch64 on Mageia Cauldron HOT 2
- Border_width ignored on top and bottom borders HOT 20
- [Bug]: $desktop variable not changing when switching desktops Linux Mint HOT 3
- [Bug]: blank window HOT 1
- [Bug]: set_struts wrong with large DPI HOT 2
- [Bug]: Middle not working as second argument in Alignment HOT 2
- [Bug]: append_file doesn't append to config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conky.