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?
  • Yep - we're looking into that. I just wanted to note here why I don't believe an exception is thrown in this case since there was a question why the try-catch block didn't help prevent this crash.

  • Hi ,

    Line 2 is failing in only the Montana, due to the either the value being passed in "sport" or “subsport” are not supported in the Montana, or is the Russian language not supported in the Montana.  

    According to the ERA one of the three are an ‘invalid’ values.  According to the API docs the "sport" or “subsport” values falling into this code are valid.   The Try is used to prevent a crash in a device that may not have that support and then uses a generic  type.

    I have seen other devices (particularly the VivoActive1) does not support all the activity types and must be dealt with individually  

  • Just looking at the API docs, an exception will not be thrown by createSession() unless, "required options are missing or provided options are invalid in :autoLap options dictionary." I don't think either of these conditions are present in this case.