Ticket Created
over 3 years ago

CIQQA-955

No info in doc how to check invalid sample from sensor history

I have  a strange error on f6pro (but not in mine)  Error Name: System Error in line

x = MAT.round(v);

where v is data field from Toybox.SensorHistory.SensorSample class

I suppose data/v is invalid but how to check it? Doc says:

The Sensor sample may contain invalid data. Make sure to has check for invalid samples. If the samples do not contain data, they will return null.

What has should I use to check sample? Now I check only if null.

Parents
  • Of course I do everything you have mentioned but even though obtained value v generate error.

    Value isn't null - I also check it, so I suspected that invalid sample is for example string or something so I've asked about how to check if Toybox.SensorHistory.SensorSample.data is invalid.

    Backtrace form ERA in this example is impossible so I expect that line with MAT.round makes problem. It has happened only once 

    Error Name: System Error
    Occurrences: 1
    First Occurrence: 2022-02-06
    Last Occurrence: 2022-02-06
    Devices:
        fÄ“nix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 20.30

Comment
  • Of course I do everything you have mentioned but even though obtained value v generate error.

    Value isn't null - I also check it, so I suspected that invalid sample is for example string or something so I've asked about how to check if Toybox.SensorHistory.SensorSample.data is invalid.

    Backtrace form ERA in this example is impossible so I expect that line with MAT.round makes problem. It has happened only once 

    Error Name: System Error
    Occurrences: 1
    First Occurrence: 2022-02-06
    Last Occurrence: 2022-02-06
    Devices:
        fÄ“nix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 20.30

Children
No Data