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
  • 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});

Comment
  • 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});

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