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
  • 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.

  • I am not trying to read currentConditionsLocation.   The crash is on the line:

    var weather = Weather.getCurrentConditions();  

  • It may have been the weather service, or it's possible that you're getting a null value for currentConditionsLocation, which is not supported in the latest firmware. If not properly handled via null checks, this has caused others to have issues with crashes using the Weather APIs.

    For some background, the location was found to be unreliable, so the feature has been removed from firmware. The Connect IQ APIs still support this member, but we plan to deprecate it in the future.

  • Got this on several more devices on two different watchfaces.
    Seems like the weather service was down for a short time or something, that would explain why ERA says it only happened on one day.

    Error Name: System Error
    Occurrences: 1524
    First Occurrence: 2024-09-19
    Last Occurrence: 2024-09-19
    Devices:
        Forerunner® 255s: 20.26
        MARQ® (Gen 2) Athlete / Adventurer / Captain / Golfer / Carbon Edition / Commander - Carbon Edition: 18.14
        Venu® 3: 11.14
        vívoactive® 5: 11.14
        Forerunner® 965: 19.18, 20.26
        epixTm (Gen 2) / quatix® 7 Sapphire: 18.14
        Forerunner® 165: 19.18
        fēnix® 7 Pro: 17.28, 17.23, 18.14
        fēnix® 7S: 17.28, 18.14
        fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 17.23, 18.14
        fēnix® 7 / quatix® 7: 18.14
        epixTm Pro (Gen 2) 51mm / D2Tm Mach 1 Pro / tactix® 7 – AMOLED Edition: 18.14
        Forerunner® 255 Music: 20.26
        epixTm Pro (Gen 2) 42mm: 18.14
        Forerunner® 265: 20.26
        fēnix® 8 47mm / 51mm: 11.60, 11.64
        fēnix® 8 43mm: 11.60
        Venu® 3S: 11.14
        Forerunner® 255: 19.18, 20.26
        fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 18.14
        epixTm (Gen 2) / quatix® 7 Sapphire: 16.22, 18.14
        Forerunner® 165 Music: 19.18
        fēnix® 7S Pro: 18.14
        fēnix® 7X Pro: 17.28, 18.14
        Forerunner® 955 / Solar: 20.26
        fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 17.23, 18.14
        epixTm Pro (Gen 2) 51mm / D2Tm Mach 1 Pro / tactix® 7 – AMOLED Edition: 17.23, 18.14
        DescentTm Mk3i 51mm: 17.32
        fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 18.14
        fēnix® 7 / quatix® 7: 17.28, 17.23, 18.14
        epixTm Pro (Gen 2) 47mm / quatix® 7 Pro: 18.14
        Forerunner® 255s Music: 20.26
        EnduroTm 3: 11.60
        Forerunner® 265s: 20.26
    App Versions: 1.1.1