×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

[FIXED] indi_weatherradio crashing on connection with "JSON_VALUE_PAYLOAD_MASK"

  • Posts: 2247
  • Thank you received: 223
On Ubuntu 22.04, running the latest indi (2.0.0), the driver indi_weatherradio does not work. The error message is on connection:

2023-02-02T21:25:56: Driver indi_weatherradio: indi_weatherradio: ./indi-duino/gason/gason.h:32: JsonValue::JsonValue(JsonTag, void*): Assertion `(uintptr_t)payload <= JSON_VALUE_PAYLOAD_MASK' failed.
<delProperty device="Weather Radio"/>
2023-02-02T21:25:56: Driver indi_weatherradio: restart #2
1 year 1 month ago #90135

Please Log in or Create an account to join the conversation.

  • Posts: 2247
  • Thank you received: 223
running on 5.15.0-odroid-arm64

In github.com/sterne-jaeger/indi-3rdparty/b...-duino/gason/gason.h

replace
#define JSON_VALUE_PAYLOAD_MASK 0x00007FFFFFFFFFFFULL
#define JSON_VALUE_NAN_MASK 0x7FF8000000000000ULL
#define JSON_VALUE_TAG_MASK 0xF
#define JSON_VALUE_TAG_SHIFT 47

with
#define JSON_VALUE_PAYLOAD_MASK 0x0000FFFFFFFFFFFFULL
#define JSON_VALUE_NAN_MASK 0x7FF0000000000000ULL
#define JSON_VALUE_TAG_MASK 0xF
#define JSON_VALUE_TAG_SHIFT 48


I can now connect to the indi_weatherradio driver.
1 year 1 month ago #90137

Please Log in or Create an account to join the conversation.

Time to create page: 0.177 seconds