system-bridge icon indicating copy to clipboard operation
system-bridge copied to clipboard

SystemBridgeWindowsSensors throwing decode errors

Open Twanislas opened this issue 4 months ago • 1 comments

Description

Hi,

While trying to look into the supported sensors in Windows, I found some values missing. Looking into the logs I see errors like this which I guess are related.

I tried both the MSI install the the installer and noticed they install in different locations (MSI in the system's Program Files, Installer in the User's AppData). What's the right way to install SystemBridge system wide and without GUI on windows (I have several user accounts and I would like to ensure it's running even if no on is logged in after a reboot) ?

Could you please have a look ?

Thanks !

What Platform / OS are you running?

Windows

How is System Bridge Being Ran?

Standalone (executable)

What version are you running?

System Bridge (4.1.13) / System Bridge Backend (4.2.9)

Anything in the logs or a references that might be useful?

2024-09-24 15:51:31 ERROR (Thread-2 (_run)) [systembridgebackend.modules.sensors.SensorsUpdate] JSONDecodeError
Traceback (most recent call last):
  File "systembridgebackend\modules\sensors.py", line 71, in _get_windows_sensors
    return json.loads(result)
           ^^^^^^^^^^^^^^^^^^
  File "json\__init__.py", line 346, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2024-09-24 16:17:06 ERROR (Thread-2 (_run)) [systembridgebackend.modules.sensors.SensorsUpdate] Windows sensors error for path: C:\Program Files\System Bridge\_up_\dist\systembridgebackend\_internal\systembridgewindowssensors\bin\SystemBridgeWindowsSensors.exe
Traceback (most recent call last):
  File "systembridgebackend\modules\sensors.py", line 62, in _get_windows_sensors
    result = pipe.communicate()[0].decode()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 6775: invalid continuation byte

2024-09-24 16:18:42 ERROR (Thread-2 (_run)) [systembridgebackend.modules.sensors.SensorsUpdate] Windows sensors error for path: C:\Users\antoi\AppData\Local\System Bridge\_up_\dist\systembridgebackend\_internal\systembridgewindowssensors\bin\SystemBridgeWindowsSensors.exe
Traceback (most recent call last):
  File "systembridgebackend\modules\sensors.py", line 62, in _get_windows_sensors
    result = pipe.communicate()[0].decode()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 6783: invalid continuation byte

Additional information

Logs attached, don't mind the token, I have reinstalled since and it has changed. systembridge.log systembridgebackend.log

Twanislas avatar Sep 24 '24 14:09 Twanislas