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

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

Children