Acknowledged
CIQQA-3941

SDK 9.1.0 internal compiler crash (bitor) + DevicesJsonReader NullPointerException — fenix847mm unbuildable on macOS

Hi,

I'm unable to build for fenix847mm on macOS (Apple Silicon) with any available SDK version. Two separate bugs block the build:

Bug 1 (all SDKs): DevicesJsonReader$SizeKey NullPointerException on device loading ERROR: Unable to load devices: Cannot invoke "DevicesJsonReader$SizeKey.ordinal()" because "sizeKey" is null

Bug 2 (SDK 9.1.0): Internal compiler crash in Garmin-generated Rez code CompilerException: Cannot parse unsupported involatile operation 'bitor'

fenix847mm requires API 6.0.0, so SDK 8.x won't work. SDK 9.1.0 supports it but hits the bitor crash in generated Rez.mir, not in user source.

Is anyone successfully building for fenix847mm on macOS? Any workaround?

Full bug report with stack traces and SDK/API matrix available upon request.

Environment: macOS Apple Silicon, Java Temurin 17, SDK 9.1.0

  • If you use "Monkey C: New Project" in VSC, does that app compile and run?  What if you use one of the samples in the SDK?

    Is this your first project?

  • Thanks for the replies!
    @jim_m_58 — I'm not using DevicesJsonReader directly. This is an internal SDK compiler error, not CIQ user code.

  • Thanks for the replies!
    @jim_m_58 — I'm not using DevicesJsonReader directly. This is an internal SDK compiler error, not CIQ user code.
    @flocsy — I already tried deleting and re-downloading the fenix847mm device folder multiple times. The issue persists with ALL devices, not just fenix847mm. After extensive debugging with a Java instrumentation agent, I confirmed this is an SDK-internal parser regression, not a corrupted device file.
    The second bug (bitor crash in generated Rez code) is the bigger blocker and also comes from Garmin's own code generator, not user source.

  • I think DevicesJsonReader is part of the compiler. Looks like a Java error message.

    If other devices work, then delete the whole directory of fenix847mm and download it again from the SDK manager and try again.

  • How are you using DevicesJsonReader? I've never seen such a function in CIQ..