Help: Failed invoking <symbol> Invalid Value after last line of active code in onUpdate() runs through

Hey guys,

I am a beginner programmer and am currently struggling with an error which I cant solve cause i don't even know where to start looking.

I have an app called Flightmeter which I am currently trying to improve with new features.

Every since I did this I sometimes get the following error in the sim (the app also hasn't been running on the watch for a longer period of time)

Failed invoking <symbol>

Invalid Value

I put System.println marks everywhere in my code to figure out what causes the problem. usually i would expect it to be some method or class action placed in the onUpdate() part to be the culprit. But my last line in the onUpdate() is a print statement and this I still see in the console. The next line in the console after the print statement is then the error message.

All other code that should be running apart from the on upDate() is just the usual start of most apps codes where you have you sensor and position listeners. Also here I have print statements, but they are not being triggered

Does any one have an idea what can cause this error (it's not memory, i am using around 27000 testing with different watches in the sim - error still occurs.).

All my objects should be dormant after the onUpdate() runs through. Or could it be that some object code is beeing run after my onUpdate() is finished because of some scheduler?

So I am lost. It would be great if anyone had an idea what could cause the problem or at least a way for me to more thoroughly try to pin point the location of where the error is thrown (don't really have experience with debugging apart from using print statements).

Thank you very much in advance for your support :-)

  • Hi Jim,


    installed is the 3.0.1.0 but I have it set the manifest.xml to 2.4.x as I want the to support my Vivoactive HR.

  • You want to use the latest SDK - 3.1.7.  You'll also want to update your eclipse plugin.  There's a 3.1.7 version of that too.

    The 3.0.1 SDK is really old, and lots has been fixed since then.  3.1.7 builds for all CIQ devices, including the vahr.

  • Hi Jim,
    thank you very much for that simple but effective hint :-)

    The new version gave me a stacktrace that the older one did not and I think I found the culprit.

    It was a timer running into a "devide by zero" error at one point in time.

    So thank you one more time :-)

    Btw, do you also happen to know if it is possible to have double with more than 6 decimals points? I tried to create numbers like 1e-12 (specified by the algorithm I a using), but this does not seam to be possible!? Is the limit really 6 decimal digits?Shouldn't a double have 15 decimal digits?
    thank you in advance if you can also shed some light into this^^