How to crash the simulator/Vivoactive device

Former Member
Former Member
To crash the simulator, or force a reboot on the Vivoactive device, simply execute the following:

Ui.pushView(new Ui.Menu(), new ViewBehaviorDelegate(), Ui.SLIDE_UP);

I haven't yet figured out what the problem with this is. The ViewBehaviorDelegate class used here is a pretty standard implementation that is used with other views with no problems. This code can be executed when large amounts ~30k of memory is left on the device - no out of memory is sent to the console, the simulator app simply crashes.
  • Former Member
    Former Member over 10 years ago
    Update

    Apart from the delegate being the wrong type (of course, this should derive from MenuInputDelegate), there must be at least one item added to a menu. Calling addItem at least once prevents this crash from happening.

    I still have no idea what the actual crash is. Perhaps someone from Garmin can take a look.