alexmurray / indicator-sensors

71 stars 11 forks source link

Error message: g_str_has_prefix: assertion 'str != NULL' failed #34

Closed cokelid closed 3 years ago

cokelid commented 3 years ago

I have installed this on Ubuntu (18.04) via snap:

~ snap list indicator-sensors
Name               Version  Rev  Tracking       Publisher   Notes
indicator-sensors  1.2      291  latest/stable  alexmurray  -

Unfortunately it fills my syslog with thousands of the following messages (I assume from "indicator-senso" that it comes from here...)

Sep 26 00:21:05 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:21:10 localhost indicator-senso[4076]: message repeated 29 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:21:20 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:21:25 localhost indicator-senso[4076]: message repeated 29 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:26:20 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:30:00 localhost indicator-senso[4076]: message repeated 74 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:38:55 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:39:10 localhost indicator-senso[4076]: message repeated 74 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:41:35 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:42:10 localhost indicator-senso[4076]: message repeated 74 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:46:45 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:51:10 localhost indicator-senso[4076]: message repeated 119 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:51:15 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:51:55 localhost indicator-senso[4076]: message repeated 74 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
Sep 26 00:56:15 localhost indicator-senso[4076]: g_str_has_prefix: assertion 'str != NULL' failed
Sep 26 00:56:20 localhost indicator-senso[4076]: message repeated 29 times: [ g_str_has_prefix: assertion 'str != NULL' failed]
alexmurray commented 3 years ago

I can't reproduce this - could you try running indicator-sensors from a terminal to enable some extra debugging as this may help identify why this is happening:

indicator-sensors -v

Also could you try running it under gdb and we can see if we can figure out on what code-path this is occurring?

snap run --experimental-gdbserver indicator-sensors --g-fatal-warnings

(and then from a second terminal run gdb as instructed - then within this second terminal, type cont once at the gdb prompt and finally I am hoping the use of --g-fatal-warnings will cause an abort and you should then get a gdb backtrace which shows more details).

cokelid commented 3 years ago

Thanks for the response Alex. I had uninstalled the snap, so I reinstalled and ran it (with the verbose switch). I'm not immediately seeing the g_str_has_prefix errors in the syslog again? I'll leave it running for a while and see if they reappear...

cokelid commented 3 years ago

Just to close this out, I've monitored this for a few days and the errors have not returned, so I cannot reproduce. Whatever the problem was, uninstalling and reinstalling the snap seems to somehow have fixed it?!