Closed leigh-johnson closed 1 year ago
Looks like we're not deserializing caps correctly:
Feb 15 21:29:05 travelpi printnanny-edge-nats[682]: [2023-02-15T22:29:05Z ERROR printnanny_settings::cam] Failed to parse i32 from caps width=Err(ValueGetError { name: "width", error: ValueTypeMismatchError { actual: GstIntRange, requested: gint } }) with error=GetError: Structure field with name width not retrieved
29:05 travelpi printnanny-edge-nats[682]: [2023-02-15T22:29:05Z ERROR printnanny_settings::cam] Failed to get colorimetry caps, using default: bt701 error=GetError: Structure field with name colorimetry not found
Feb 15 21:29:05 travelpi printnanny-edge-nats[682]: [2023-02-15T22:29:05Z ERROR printnanny_settings::cam] Failed to parse i32 from caps height=Err(ValueGetError { name: "height", error: ValueTypeMismatchError { actual: GstIntRange, requested: gint } }) with error=GetError: Structure field with name height not retrieved
Feb 15 21:29:05 travelpi printnanny-edge-nats[682]: [2023-02-15T22:29:05Z ERROR printnanny_settings::cam] Failed to parse i32 from caps width=Err(ValueGetError { name: "width", error: ValueTypeMismatchError { actual: GstIntRange, requested: gint } }) with error=GetError: Structure field with name width not retrieved
Feb 15 21:29:07 travelpi printnanny-edge-nats[682]: [2023-02-15T22:29:07Z ERROR printnanny_nats::subscriber] Error deserializing NATS message: missing field `framerate_d` at line 1 column 210
🎉 Verified this is fixed in the latest build.
I found a regression for this issue in v0.6.5, which I've patched in v0.6.6.
The regression occurred if any of the checkboxes were un-ticked and then attempted to save the form. https://github.com/bitsy-ai/printnanny-os-dash/pull/158
👍 Confirming this regression is fixed in the latest v0.6.6 nightly
Describe the bug
Saving camera settings using the form results in NatsError: TIMEOUT