Acknowledged
CIQQA-3255

bug: vivoactive3 returns true for ActivityMonitor.Info has :pushes

I have the following code in one of my menus:

        if (ActivityMonitor.Info has :pushes) {
            addItem(settings, Rez.Strings.activityTypeWheelchairPushWalk, 65000);
            addItem(settings, Rez.Strings.activityTypeIndoorWheelchairPushWalk, 65086);
        }

And I got an Invalid Value exception in ERA:

Error Name: Invalid Value
Occurrences: 1
First Occurrence: 2025-05-26
Last Occurrence: 2025-05-26
Devices:
vívoactive® 3: 8.20
App Versions: 0.9.6
Languages: ces
Backtrace:
SessionDebug.createSession:5
SessionDebug.session65086:73
SessionDebug.createSessionDebug:94
HikerAppView.createSession:66
SettingsMenu2.onSelect:220

However this can only happen if ActivityMonitor.Info has :pushes is true for vivoactive3.

In the simulator (SDK 8.1.1) I can't reproduce the problem neither with nor without --disable-api-has-check-removal 

I am not 100% but 99% sure that in this build I used --disable-api-has-check-removal so if I understand correctly then this is a bug in the vivoactive firmware. Or in the simulator, that returns false, but then why does va3 throw the Invalid Value exception when calling: 

ActivityRecording.createSession({:name => "name", :sport => 65 as Activity.Sport, :subSport => 86 as Activity.SubSport});
(which BTW doesn't fail in the simulator)

Parents
  • Here's the crash log although I'm 100% sure it's exactly the same as what you posted, and it's crashing for the reason that you guessed. Obviously the crash is not a surprise, but only the fact that the wheelchair activity types are present in the menu.

    Error: Invalid Value
    Details: 'Failed invoking <symbol>'
    Time: 2020-12-06T03:33:41Z
    Part-Number: 006-B2700-00
    Firmware-Version: '8.20'
    Language-Code: eng
    ConnectIQ-Version: 5.1.1
    Store-Id: 0ffbd4ea-017d-4ef0-9846-a2c8050f1bfc
    Store-Version: 7
    Filename: AC633320
    Appname: Hiker App
    Stack:
      - pc: 0x10000cc5
      - pc: 0x10000baf
      - pc: 0x10000838
      - pc: 0x100042f0
      - pc: 0x1000573b
Comment
  • Here's the crash log although I'm 100% sure it's exactly the same as what you posted, and it's crashing for the reason that you guessed. Obviously the crash is not a surprise, but only the fact that the wheelchair activity types are present in the menu.

    Error: Invalid Value
    Details: 'Failed invoking <symbol>'
    Time: 2020-12-06T03:33:41Z
    Part-Number: 006-B2700-00
    Firmware-Version: '8.20'
    Language-Code: eng
    ConnectIQ-Version: 5.1.1
    Store-Id: 0ffbd4ea-017d-4ef0-9846-a2c8050f1bfc
    Store-Version: 7
    Filename: AC633320
    Appname: Hiker App
    Stack:
      - pc: 0x10000cc5
      - pc: 0x10000baf
      - pc: 0x10000838
      - pc: 0x100042f0
      - pc: 0x1000573b
Children
No Data