Ticket Created
over 3 years ago

CIQQA-923

Montana 7xx Crash in createSession()

We've received reports of an app crash on Montana 7xx (incidentally, using Russian language) when calling createSession:

try {
    session = ActivityRecording.createSession({:sport=>sport, :subSport=>subSport, :name=>name});
} catch(e) {
    sport = 0;
    subSport = 0;
    session = ActivityRecording.createSession({:sport=>sport, :subSport=>subSport, :name=>name});
}

The crash is occurring on what's listed here as line 2, and there are two concerns:

  1. Why is the crash occurring here?
  2. Should the error be handled by the try-catch?
Parents
  • I have experienced this error as well several times, when users have English or Spanish as languages, as of May 2022.  The ERA viewer says the error name is "Invalid Value", devices "Montana 7 Series: 10.80, 10.90", the backtrace links back to the following line:

    fitSession = ActivityRecording.createSession({ :name=>WatchUi.loadResource(Rez.Strings.Orienteering), :sport=>ActivityRecording.SPORT_GENERIC });

    I am half inclined to just change the sport type to a more normal sport like "SPORT_RUNNING"...

    Any idea what is the matter?  What I should do?  Should I just cancel the FIT-recording capability of Montana devices? Disappointed

Comment
  • I have experienced this error as well several times, when users have English or Spanish as languages, as of May 2022.  The ERA viewer says the error name is "Invalid Value", devices "Montana 7 Series: 10.80, 10.90", the backtrace links back to the following line:

    fitSession = ActivityRecording.createSession({ :name=>WatchUi.loadResource(Rez.Strings.Orienteering), :sport=>ActivityRecording.SPORT_GENERIC });

    I am half inclined to just change the sport type to a more normal sport like "SPORT_RUNNING"...

    Any idea what is the matter?  What I should do?  Should I just cancel the FIT-recording capability of Montana devices? Disappointed

Children
No Data