Help in debugging app crash

Hi,

I've released my first app (https://apps.garmin.com/en-US/apps/c9012c4e-998c-4a0e-a567-b1e1c6078401) to the store. I've heard reports that the app crashes on startup (IQ with an exclamation mark) when ran in an actual device (FR920XT). This does not happen in simulator so it's likely due some difference between the simu and the real thing.

Since it'll take still 2-3 weeks until I get a device to finalise the testing and get the app fixed, I wanted to check if someone could do me a favour and run the app on Forerunner and send me a crash report or any clues on where to start with.

BR,
Mikko
  • I had looked at this last week because I'm interested in this app for personal use. :) This looks like a nicely-designed app, and would be super useful at the range. I'm building a couple of rifles right now, and thought I'd try using this app when it came time to sight them in.

    The app does, in fact, crash on the 920XT. Here's the output in the CIQ_LOG.txt:

    @PC = 0x100004AF
    TVM ERROR:
    Out Of Memory Error
    Failed invoking <symbol>

    TVM ERROR:
    Out Of Memory Error
    failed in cdp_tvm_invoke


    When I try to run the PRG in the simulator, I receive a generic System Error, so I'm not entirely sure what's happening in the sim. Generally, it looks like the app is simply running out of memory. If you continue to have trouble and can't sort it out, maybe we can take a look at your source code with you.
  • Great, thanks for your help :) As I've mentioned in an earlier post, the app uses pretty much all available memory but should be 10-15kb below the 64kb limit on startup. Does it crash right away or after first rendering something?

    If you'd care to look through the source to pinpoint the problem, it would be really helpful - I doubt I'd be able to find the bug myself without access to the hardware. Would it be ok, if I save the project to a dropbox share and send you the link in a PM? At this point the code is not worth pushing to github as it is still uncleaned and has some last-minute memory-saving kludges that don't exactly improve readability ;)
  • The app crashes immediately before rendering anything, so it's tough to say what exactly is happening. If you PM a dropbox link like you mentioned, we'd be happy to take a look.
  • I've sent you a link to the source in a private message. I might've send several by accident, as I did not realize the messages aren't automatically stored in Sent messages - sorry :)
  • I've now updated the app. The 0.92R beta version uses some 10k less memory. If someone could confirm whether it works now or do I still need to cut down some more features, I'd be very grateful :)
  • I just tried 0.92R beta on my 920 fw 3.30 and I see "Calculating values" for 1s then it crashes :(
  • Thanks! So at least it starts now :) I'll just cut down some more features then to see if I can get the memory usage low enough.

    Luckily I expect to get the device soon, which should definitely speed up the development.
  • Now there's a new barebones version (0.93R-beta) available. The simulator indicates 41kb memory use and unless it does a huge invisible peak, it seems to stay at that during the initialization. Can anyone get it working?

    Thanks in advance :)
  • The latest version gives me an empty white screen, but it doesn't crash. If I hit the Back button a few times then the app crashes.
  • That's strange - and unfortunately quite unresolvable without the hardware. Did you do a fresh install or update? Maybe there were some corrupted values in the permanent storage from your last run as it crashed in the initialization stage.