Ticket Created
over 3 years ago

CIQQA-370

strange error from era on some devices

Error Name: System Error
Occurrences: 9
First Occurrence: 2021-05-13
Last Occurrence: 2021-05-16
Devices:
    fÄ“nix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 16.60
    Forerunner® 245 Music: 6.20
Languages: eng, spa
Backtrace:
    PSX1_Vie.onSC:415
    PSX1_Vie.onLayout:364

minSdkVersion="2.4.0", erroor onSC calling from onLayout in line

using Toybox.Application.Storage as STO;

const STO_APP_SETT                =     "AppSett";

        var t =  
        [
            1,
            loadResource(Rez.Strings.OWL)
        ];
        STO.setValue(STO_APP_SETT, t);//<--------error

I have fenix 6 pro, and 16.60 and even changed language to eng and no error.

Is possible that is connected with full of "disk" on device?

  • Usually there is the problem with saving into storage an array.

    setProperty isn't a good solution due to problem with some types and also there is sometime bug with saving Disappointed (and you can't use setProperty in newest SDK).

    And you have only one error so maybe cause is connected with something special on device,

  • I have also just received a very similar ERA report:

    Error Name: System Error

    Occurrences: 1

    First Occurrence: 2022-10-20

    Last Occurrence: 2022-10-20

    Devices:

        epixTm (Gen 2) / quatix® 7 Sapphire: 10.37

    App Versions: 3.0.6

    Languages: eng

    Backtrace:

        HighMemLogic.onTimerStop:730

    The code in my onTimerStop is:

        function onTimerStop()

        {

            var info = Activity.getActivityInfo();

            if (info==null) { return; }

            if (info.elapsedDistance==null or info.timerTime==null) { return; }

            if (info.elapsedDistance==0.0  or info.timerTime==0.0) { return; }

            Storage.setValue(200, info.timerTime);

    The line #730 in which the System Error happens in is the last line with Storage.setValue. I have myself an Epix2 watch - and I have never seen such crash. I have no idea why this has happened, nor how to prevent? Note it is ENG language, so that seem not the explanation. 

    Should I try to save stuff between sessions via setProperty() instead ?

  • if you want to test it you need:

    - bluetooth connection (I call makeWebRequest to get weather data)

    - gps position (you can set manual position in settings to 0;0)

  • there is no this error in current version my wf (as I think prg is on device once you install it):

    https://apps.garmin.com/en-US/apps/b754fc6a-a5dd-4ff1-9397-db9020b3b25f

    but I've moved code from  onLayout to onShow but I have error in one example "near the code":

    Error Name: Symbol Not Found Error
    Occurrences: 1
    First Occurrence: 2021-06-17
    Last Occurrence: 2021-06-17
    Devices:
        D2™ Delta PX: 5.30                  <--- old firmware
    App Versions: 1.16.0
    Languages: chs
    Backtrace:
        PSX1_App.chkREQ:560
        PSX1_Vie.chkOWM:873
        PSX1_Vie.onShow:837


                    owm =  //line 560
                    [
                        1,//gCompVer,                       
                        loadResource(Rez.Strings.OWL)
                    ];
                    STO.setValue(STO_APP_SETT, owm);

    so I think there is problem with loadResource from time to time and previous error probably was thrown later in setValue

  • Hey there, sorry for the delay, but we've been unable to replicate this on our own so far. Would you have a code snippet or a prg you could share that could help us figure out what could be causing this? Thanks!