Resource_Monitor icon indicating copy to clipboard operation
Resource_Monitor copied to clipboard

[Temperature Error] on random startups (fixes itself on opening extension settings)

Open pc00per opened this issue 3 years ago • 1 comments

Describe the bug Some sort of extension initialization issue. Sometimes it just shows [Temperature Error] beside cpu usage & nothing else. It sort of fixes itself after I open the extension settings (or right click shortcut ingeneral).

To Reproduce Steps to reproduce the behavior: It's actually random. I donno how to reproduce it but, it often appears on random startups.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Will post the screenshot soon when I have get it next time

Desktop (please complete the following information):

  • OS: archlinux / gnome-42.3.1
  • Version : 17

pc00per avatar Jul 17 '22 09:07 pc00per

Thanks for reporting, I am aware of the problem. I will try to fix it in the next version.

0ry0n avatar Jul 17 '22 17:07 0ry0n

Hi, any idea how to fix this? Opening the settings does not fix it

изображение

LenaKiseleva avatar Sep 21 '22 22:09 LenaKiseleva

Hi, any idea how to fix this? Opening the settings does not fix it

изображение

That's different error from what I've got. Mine's just an initialization issue of cputemp. Yours look like the temperature sensor itself didn't have a reading.

ghost avatar Sep 22 '22 03:09 ghost

anyway to debug this @0ry0n ?

ghost avatar Sep 25 '22 08:09 ghost

I am aware of the problem and am finding a solution. it is due to the asynchronous temperature reading mechanism.

0ry0n avatar Sep 25 '22 09:09 0ry0n

Any updates on the fix mate ? This bug is repetitive & starting to annoy me xD.

ghost avatar Oct 12 '22 22:10 ghost

Ok, I think I have solved the problem. I have yet to test it well but waiting for the new version you can make these changes to your code https://github.com/0ry0n/Resource_Monitor/blob/dc9e8957bfc37c3eea5ef1c8c3883acebff758e3/Resource_Monitor%40Ory0n/extension.js#L1544-L1547 move this "else" here https://github.com/0ry0n/Resource_Monitor/blob/dc9e8957bfc37c3eea5ef1c8c3883acebff758e3/Resource_Monitor%40Ory0n/extension.js#L1514 like this

if (GLib.file_test(path, GLib.FileTest.EXISTS)) { this._loadFile(path).then(contents => { const value = parseInt(ByteArray.toString(contents));

this._cpuTemperatures += value / 1000; this._cpuTemperaturesReads++; }); } else { this._cpuTemperatureValue.text = _('[Temperature Error'); this._cpuTemperatureUnit.text = ''; }

0ry0n avatar Oct 13 '22 10:10 0ry0n

I'm still experiencing this random temperature error.

I'm running: Ubuntu 23.04 but it was still happening on the previous version as well Gnome 44.0 Resource_Monitor 19

After rebooting, if it doesn't fix itself, opening the settings and scrolling through the tabs seems to fix it.

mavrik132 avatar May 26 '23 21:05 mavrik132

Facing the same error on Ubuntu 22.04.2 LTS X11. Opening Resource Monitor extension settings helps, the error disappears and the temperature value is displayed.

eual8 avatar Jun 11 '23 16:06 eual8