it works for a sec when launched then outputs then unknow_str var 'n/a'
- used to work fine before i updated yesterday ( i was running pre pulseaudio update version not sure what version number)
- OS: ArchLinux 5.13.13-arch1-1
- CPU: Intel i5-8250U (8) @ 3.400GHz
- config of cpu_perc:
{ cpu_perc, "-[%s%% ]", NULL, 1 SEC, END },
- compilation output: http://ix.io/3yGf
- aslstatus launching strace: http://ix.io/3yGe
1c7a5809aa this commit have breaking changes to config.h
please change this defines and accordingly interval column in args array
and sorry for this
https://notabug.org/dm9pZCAq/aslstatus/commit/1c7a5809aac81ba21713b2421b685dd4db44c34d this commit have breaking changes to `config.h`
please change [this](https://notabug.org/dm9pZCAq/aslstatus/commit/1c7a5809aac81ba21713b2421b685dd4db44c34d#diff-c2701ee305390e59c2503a4fb78bbb65dde10b0R64) defines and accordingly `interval` column in `args` array
and sorry for this
i'm refactoring some components and therefor master may be quiet unstable now
and btw there is "stable" [releases](https://notabug.org/dm9pZCAq/aslstatus/releases)
i'm refactoring some components and therefor `master` may be quiet unstable now
I did notice the vars changes and renamed them (forgot to mention it) but that hasn't fixed it , however now that i have tried the latest stable release 0.1.3 it is working.
Thanks
I did notice the vars changes and renamed them (forgot to mention it) but that hasn't fixed it , however now that i have tried the latest stable release 0.1.3 it is working.
Thanks
I did notice the vars changes and renamed them but that hasn't fixed it
can you show compilation errors or warnings?
hasn't fixed it
still outputs unknow_str?
> I did notice the vars changes and renamed them but that hasn't fixed it
can you show compilation errors or warnings?
> hasn't fixed it
still outputs `unknow_str`?
yes it still outputs that while using the master branch
commands i just ran:
- git clone https://notabug.org/dm9pZCAq/aslstatus.git && cd aslstatus
- make clean install XKB=0 AUDIO=PULSE
- aslstatus
compilation output: http://ix.io/3yGY
my testing `config.h`
```c
/* ... */
static struct arg_t args[] = {
{ cpu_perc, "%3s%%", NULL, 1 _SEC, END },
};
```
`./aslstatus -s` output:
```
n/a%
5%
3%
6%
5%
...
```
can you test it with same config and command?
aslstatus: fscanf ok
n/a%
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: sum = 805
3%
aslstatus: fscanf ok
aslstatus: old_states ok
n/a%
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
...
after applying the patch:
```
aslstatus: fscanf ok
n/a%
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: sum = 805
3%
aslstatus: fscanf ok
aslstatus: old_states ok
n/a%
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
aslstatus: fscanf ok
aslstatus: old_states ok
...
```
add this at the top of function
```c
void
cpu_perc(char * out,
const char __unused *_a,
unsigned int interval,
void * static_ptr)
{
warnx("interval: %u", interval);
/* ... */
```
if it's still not fixed then send strace -ff ./aslstatus -s (but i hope it's finally fixed)
this should fix cpu component
sync with `master` and apply
https://0x0.st/-xxD.diff
if it's still not fixed then send `strace -ff ./aslstatus -s` (but i hope it's finally fixed)
it works for a sec when launched then outputs then unknow_str var 'n/a'
1c7a5809aa
this commit have breaking changes toconfig.h
please change this defines and accordingly
interval
column inargs
arrayand sorry for this
and btw there is "stable" releases
i'm refactoring some components and therefor
master
may be quiet unstable nowI did notice the vars changes and renamed them (forgot to mention it) but that hasn't fixed it , however now that i have tried the latest stable release 0.1.3 it is working. Thanks
can you show compilation errors or warnings?
still outputs
unknow_str
?yes it still outputs that while using the master branch
commands i just ran:
compilation output: http://ix.io/3yGY
my testing
config.h
./aslstatus -s
output:can you test it with same config and command?
aslstatus -s outputs using the config above
then it just hangs no more output or errors
it's outputs only when status changes, but in your case there are constantly outputs
unknow_str
, so it waits for changescan you apply this and test again?
after applying the patch:
ok, i think i found the problem
will fix soon
cool, thanks
and thank you very much, for helping with resolving this issue
apply this with latest
master
commit and try ithope this will help
(edit: formatting here should be fixed too (or not))
running git apply patch.diff errors out mind sharing what command you used
seems that wrong formatting in my comment
try this: https://0x0.st/-x2J.diff
it is still not fixed ( i recloned and patched )
ohh, lets "debug" it some more
same as previous (with previous patch) and https://0x0.st/-x2x.diff
please check if it's really fixed :)
Hi, it is still not working aslstatus -s
then hangs like usual
ohh, try to replace
cpu_perc
with this:it's just like old version, but with changed variable names and using
fscanf
instead ofpscanf
same issue
add this at the top of function
yeah just noticed xd
ok, lets try some shell script...
yet another debug patch https://0x0.st/-xJU.diff
ok, i finally found error after testing on
glibc
serverthere are very strange error in reading and seeking files
this should fix cpu component
sync with
master
and apply https://0x0.st/-xxD.diffif it's still not fixed then send
strace -ff ./aslstatus -s
(but i hope it's finally fixed)Yes it is fixed
Thank you
and thank you for helping with it ;)