Acknowledged
CIQQA-3057

wakeTime problem on GPSMAP 67 / 67i: 8.90

Error Name: Unhandled Exception
Occurrences: 1
First Occurrence: 2024-12-31
Last Occurrence: 2024-12-31
Devices:
    GPSMAP® 67 / 67i: 8.90
App Versions: 1.7.0
Languages: eng

using Toybox.UserProfile as USP;

function getUSRPROFILE_data()
{
    var
    s             = USP.getProfile();
    if(s != null)
    {
        var WakeTime     = s has :wakeTime  ? (s.wakeTime != null ? (s.wakeTime.value() / 60) : null)     : -1;//ERROR

        ...

}

Parents
  • Appears to be a duplicate of forums.garmin.com/.../crash-on-some-devices-accessing-user-profiler

    (Not saying this bug report shouldn't have been posted, just providing context, and also noting that Garmin acknowledged the problem, a CIQ team member commented on it, but it still apparently exists)

    I had to *guess*, I would say that wakeTime is unexpectedly/incorrectly something other than a Duration (maybe a Number?), which is why the call to value() would crash. (As flocsy mentioned, this is probably the only possible place for the crash to occur).

Comment
  • Appears to be a duplicate of forums.garmin.com/.../crash-on-some-devices-accessing-user-profiler

    (Not saying this bug report shouldn't have been posted, just providing context, and also noting that Garmin acknowledged the problem, a CIQ team member commented on it, but it still apparently exists)

    I had to *guess*, I would say that wakeTime is unexpectedly/incorrectly something other than a Duration (maybe a Number?), which is why the call to value() would crash. (As flocsy mentioned, this is probably the only possible place for the crash to occur).

Children
No Data