Acknowledged

Logging SPORT_VOLLEYBALL crashes the watch

I am the developer of the Volleyball App (Volleyball | Garmin Connect IQ). When I try to record an Activity as SPORT_VOLLEYBALL, it fails and crashes the App on the watch. The documentation does not contain SPORT_VOLLEBALL, but it seems to exist anyway (documentation on the SPORT Types is outdated).

Is there a way for me to record a volleyball activity (if the watch supports it)? Right now I do the following, which always seems to log as SPORT_GENERIC, but at least it does not crash the watch:

using Toybox.ActivityRecording as Record;
if (Record has :SPORT_VOLLEYBALL) {
  session = Record.createSession({:name=>"Volleyball", 
                                  :sport=>Record.SPORT_VOLLEYBALL,
                                  :subSport=>Record.SUB_SPORT_EXERCISE});
} else {
    session = Record.createSession({:name=>"Volleyball", 
                                    :sport=>Record.SPORT_GENERIC, 
                                    :subSport=>Record.SUB_SPORT_EXERCISE});
}



Parents
  • You say it "crashes the watch" in the topic description and in the post itself, and you also say it "crashes the App on the watch". There is a world of difference between these cases, and it is important that we understand the behavior you are seeing. Can you clarify which is actually happening? Based on what I believe the issue to be, I fully expect your app to crash.

    I would not, under any circumstances, expect a ConnectIQ app to be able to crash the device. If you are indeed seeing a device crash/hang, please provide information about the specific device model and firmware version to help us reproduce the issue.

Comment
  • You say it "crashes the watch" in the topic description and in the post itself, and you also say it "crashes the App on the watch". There is a world of difference between these cases, and it is important that we understand the behavior you are seeing. Can you clarify which is actually happening? Based on what I believe the issue to be, I fully expect your app to crash.

    I would not, under any circumstances, expect a ConnectIQ app to be able to crash the device. If you are indeed seeing a device crash/hang, please provide information about the specific device model and firmware version to help us reproduce the issue.

Children
No Data