Acknowledged

Weather.getCurrentConditions() causes crash on Fenix 8

The last line in the following snippet causes a crash:

                if (Toybox has :Weather) {
                    dialMinMax=showFarenheit? [50.0,100.0]:[0.0,50.0];
                    var weather = Weather.getCurrentConditions();  
Here is the crash report from the ERA:
Error Name: System Error
Occurrences: 17
First Occurrence: 2024-09-19
Last Occurrence: 2024-09-19
Devices:
fēnix® 8 47mm / 51mm: 11.60
App Versions: 2.10.2
Languages: chs
  • Same issue, and I use the has check. 

                if (!(Toybox has :Weather) || !(Toybox.Weather has :getCurrentConditions)) {
                    return;
                }
               
                var garminCond = Toybox.Weather.getCurrentConditions();

     --------------------------------------------------

    Error Name: System Error
    Occurrences: 1838
    First Occurrence: 2025-02-24
    Last Occurrence: 2025-02-25
    Devices:
    Forerunner® 255s: 22.22
    MARQ® (Gen 2) Athlete / Adventurer / Captain / Golfer / Carbon Edition / Commander - Carbon Edition: 20.16
    vívoactive® 5: 13.17
    Venu® 3: 12.12, 13.17
    Forerunner® 965: 22.22, 21.22
     epixTm (Gen 2) / quatix® 7 Sapphire: 20.16, 20.19
    Forerunner® 165: 22.22, 21.22, 20.32
    fēnix® 7 Pro: 20.16, 19.41, 20.19
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16
    fēnix® 7 / quatix® 7: 20.16, 19.38, 19.41, 20.19
     DescentTm Mk3 43mm / Mk3i 43mm: 19.49, 19.34
     epixTm Pro (Gen 2) 51mm / D2Tm Mach 1 Pro / tactix® 7 – AMOLED Edition: 20.16
    Forerunner® 255 Music: 22.22, 21.22
     epixTm Pro (Gen 2) 42mm: 20.16
    fēnix® 8 Solar 47mm: 13.31
    Forerunner® 265: 19.18, 22.22, 21.22
    fēnix® 8 47mm / 51mm / tactix® 8 47mm / 51mm: 13.31, 12.38
    Venu® 3S: 13.17
    Forerunner® 255: 22.22, 21.22
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16
     epixTm (Gen 2) / quatix® 7 Sapphire: 20.16
    Forerunner® 165 Music: 22.22
    fēnix® 7S Pro: 20.16
    fēnix® 7X Pro: 20.16, 19.41, 20.19
    Forerunner® 955 / Solar: 22.22, 21.22, 21.20
     epixTm Pro (Gen 2) 51mm / D2Tm Mach 1 Pro / tactix® 7 – AMOLED Edition: 20.16
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16, 19.41
     DescentTm Mk3i 51mm: 19.49
    fēnix® 7S: 20.16
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 18.16, 17.28, 20.16, 17.23, 19.34, 19.41, 20.19
    fēnix® 7 / quatix® 7: 20.16, 19.34
     epixTm Pro (Gen 2) 47mm / quatix® 7 Pro: 20.16
     EnduroTm 3: 13.31
    Forerunner® 255s Music: 22.22
    MARQ® (Gen 2) Aviator: 20.16
    Forerunner® 265s: 19.18, 22.22
    fēnix® 8 Solar 51mm / tactix® 8 Solar 51mm: 13.31
    App Versions: 1.1.4.b1
    Languages: ara, bul, ces, chs, cht, deu, dut, eng, est, fin, fre, gre, heb, hrv, hun, ind, ita, jpn, kor, lit, nob, pol, por, rus, slo, spa, swe, tha, tur, ukr, vie

  • A bunch of users just reported the same issue, crash on getCurrentConditions:

    var w = Weather.getCurrentConditions();

    Is it a System 8 bug?

    -------------------------

    Error Name: System Error
    Occurrences: 1300
    First Occurrence: 2025-02-24
    Last Occurrence: 2025-02-25
    Devices:
    MARQ® (Gen 2) Athlete / Adventurer / Captain / Golfer / Carbon Edition / Commander - Carbon Edition: 20.19
    Forerunner® 255s: 22.22
    Venu® 3: 12.12, 13.17
    vívoactive® 5: 13.17
    Forerunner® 965: 22.22
     epixTm (Gen 2) / quatix® 7 Sapphire: 20.16, 20.19
    Forerunner® 165: 22.22, 21.22
    fēnix® 7 Pro: 20.16, 19.41, 20.19
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16
    fēnix® 7 / quatix® 7: 20.16, 19.34
     epixTm Pro (Gen 2) 51mm / D2Tm Mach 1 Pro / tactix® 7 – AMOLED Edition: 20.16
    Forerunner® 255 Music: 22.22
     epixTm Pro (Gen 2) 42mm: 20.16
    fēnix® 8 Solar 47mm: 13.31
    Forerunner® 265: 22.22
    fēnix® 8 47mm / 51mm / tactix® 8 47mm / 51mm: 13.31
    Venu® 3S: 13.17
    Forerunner® 255: 22.22
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16, 20.19
    Instinct® 3 AMOLED 45mm: 7.08
     epixTm (Gen 2) / quatix® 7 Sapphire: 20.16
    fēnix® 7S Pro: 20.16
    Forerunner® 165 Music: 22.22
    fēnix® 7X Pro: 20.16
    Forerunner® 955 / Solar: 22.22
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16
    fēnix® 7S: 20.16
     fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 20.16, 19.41, 20.19
    fēnix® 7 / quatix® 7: 20.16
     epixTm Pro (Gen 2) 47mm / quatix® 7 Pro: 20.16
    Forerunner® 255s Music: 22.22, 21.22
     EnduroTm 3: 13.31
    fēnix® 8 Solar 51mm / tactix® 8 Solar 51mm: 13.31
    Forerunner® 265s: 22.22

  • Besides, it's a system error, which usually indicates something outside of the dev's control. If it was a problem with a missing null check, it would've been a different error.

  • A bit disappointing to hear that currentConditionsLocation may be deprecated.  It is very useful, no just for weather.