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?
  • @Brandon.ConnectIQ and

    Please look into this issue.  

  • 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

  • Sorry for the late response, but has activity recording of any sport ever worked on the Montana 700i? From my testing I am getting Invalid Value "failed invoking <symbol> errors when attempting to create a session with any sport or subsport. Based on the configuration files it "should" work and based on documentation default the subsport to 0 should also work. 

    I've passed along the issue to the Montanna 700i team as it would require a firmware update to resolve. 

  • Yes, I am using a subsport  but there are two conditions for example:  Are they both invalid with the Montana?

    1.) this condition has a both:  sport=MainValue;  and subSport=SubValue;  // I understand this will be invalid with the Montana

    2.) the other condition has Both but there is no specific subSports so it is set to zero.  sport=MainValue;  and subSport=0;   // would this be invalid with the Montana

    I use a variable for subSport sometimes it is set to a value otherwise it is zero.    

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

    Does the Montana only support this format?

    session = ActivityRecording.createSession({:sport=>sport, :name=>name});

  • Hello, I've been testing ActvityRecording.createSession on the Montana in English and in Russian, but have yet to run into any crashes. Do you have a specific value for the sport and subsport that is causing the crash? I don't believe any subsport can be paired with any sport as an example. Having the sport "SPORT_CYCLING" and the subsport of "SUB_SPORT_TREADMILL" might be invalid.