Acknowledged

Garmin Beta-published Connect IQ app crashes

Hello guys,

I've published a beta version of my very first app for my Garmin Edge 520plus which is just a datafield app with Heart Rate, Power, Elapsed Distanced, Timer, Cadence, Elevation.

And I could say it was tricky to find out how to code in Monkey C language (with VS-Code),

When I tested it on my computer  it worked well 

But on my Garmin device, I see the 'IQ!' icon. 

What could be the reason ? Maybe other developers faced the same issue with thier very first app ?

From the manifest.xml, shall I necessarly add Permissions and Languages ? 

THanks in advance

Jeremy

Parents
  • Hi, 

    thank you for your support, it was a bit tricky to find how to solve the problem so I write it down here, it could help other people.

     1. I downloaded the \GARMIN\APPS\LOGS\CIQ_LOG.YAML.

    unfortunately, only the stack error number was written in it -->

    Stack:
    - pc: 0x10000b32

    To understand what this hexadecimal number means, I found this great explanations here So you have a ciq_log file, but all you see is "pc:" without a friendly stack trace - what to do! - Discussion - Connect IQ - Garmin Forums

    It helped me to find which lines of the code were incorrect, using the debug.xml file of my project, in its "bin" folder.

    2. Back to VS Code, I identified a variable used  in the line pointed out by the debug.xml file.

    So I inserted a System.println(variable_to_monitor) to see in the debug console what was going wrong with it.

    In my case, it returned some null values.

    3. After correcting a few other errors, my Beta app is working fine on my Garmin device.

    Regards. 

Comment
  • Hi, 

    thank you for your support, it was a bit tricky to find how to solve the problem so I write it down here, it could help other people.

     1. I downloaded the \GARMIN\APPS\LOGS\CIQ_LOG.YAML.

    unfortunately, only the stack error number was written in it -->

    Stack:
    - pc: 0x10000b32

    To understand what this hexadecimal number means, I found this great explanations here So you have a ciq_log file, but all you see is "pc:" without a friendly stack trace - what to do! - Discussion - Connect IQ - Garmin Forums

    It helped me to find which lines of the code were incorrect, using the debug.xml file of my project, in its "bin" folder.

    2. Back to VS Code, I identified a variable used  in the line pointed out by the debug.xml file.

    So I inserted a System.println(variable_to_monitor) to see in the debug console what was going wrong with it.

    In my case, it returned some null values.

    3. After correcting a few other errors, my Beta app is working fine on my Garmin device.

    Regards. 

Children