Complete

WERETECH-9596

Cannot Reproduce

SDK 3.2.1 vs SDK 3.1.9 Runtime Error?

Can anyone shed any light on why the code snippet below works fine on SDK 3.1.9 but fails with the error below with SDK 3.2.1.  The last line of code relates to the first error in the list.

private var heartRateZoneDisplayRatio = 0.0;

function initialize() {
    var profile = UserProfile.getProfile();
    var currentSport = profile.getCurrentSport();
    heartRateZones = profile.getHeartRateZones(currentSport);

    //work out the ratio to move the ticker for increase in 1 beat
    heartRateZoneDisplayRatio = 250 / (heartRateZones[5] - heartRateZones[0]).toFloat();
}

Error: Invalid Value
Details: Failed invoking <symbol>
Stack:
- initialize() at C:\Garmin\Git\datafields\Multi\01-BaseMulti\source\BaseMultiView.mc:9 0x10001320
- initialize() at C:\Garmin\Git\datafields\Multi\20-ConfigMulti\source\ConfigMultiView.mc:19 0x10000077
- getInitialView() at C:\Garmin\Git\datafields\Multi\20-ConfigMulti\source\ConfigMultiApp.mc:25 0x1000005e

Parents
  • Thanks for reply.  I tried renaming the temp dir.  But before and after the rename I am struggling to test this as when I select Connect IQ-> Open SDK Manager from the menu nothing happens now (worked previously).   Any ideas on how to resolve this one first?  I can't find an option to uninstall the Garmin SDK suite and then re-install.  Do I need to remove Eclipse in its entirety?

Comment
  • Thanks for reply.  I tried renaming the temp dir.  But before and after the rename I am struggling to test this as when I select Connect IQ-> Open SDK Manager from the menu nothing happens now (worked previously).   Any ideas on how to resolve this one first?  I can't find an option to uninstall the Garmin SDK suite and then re-install.  Do I need to remove Eclipse in its entirety?

Children