I get the error "Failed invoking symbol. System Error" every time my app performs a certain command for the 16th time. The first 15 times everything is ok, but at the 16th iteration, it crashes every time.
I have tried to isolate the issue as much as possible, by making af very simple version of the app, where I have omitted all code that are not related to the problem.
The code is attached in 2 files - which are the only files in the app (except for some resource files).
If I declare the Bojer3 variable locally in the onUpdate function, then everything is ok, but if I declare it globally, (or retrieve it from the object store), as I do in the attached files, then the problem occurs every time.
Eclipse version:
Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
Windows 10
Version 1511
Build 10586.218
The problem occurs when launching the simulator in Eclipse, and starting to simulate FIT data (GPS). The simulater simulates a Fenix 3 or a Edge 1000, and the problem occurs in both.
If I upload the app to Fenix 3, then the watch restarts after a while.
I hope this is sufficient information, otherwise I will be happy to provide more details.