Glance Views out of memory

Hi, I wanted to enable my widget for the fenix 6 series. I didn't have glance view enabled nor have written dedicated code but the exporter didn't export since it says the 32k limit is exceeded. 

OK, then I tried to introduce a glance view and set the (:glance) tags, but still the same. My App Base class is loaded with some code but I thought it is not loaded for glance views. I am a little confused especially since old code don't works with newer devices. This is a break in compatibilty and I would expect to get at least an upgrade guide. Maybe it is somewhere and I don't know it but it is really not good practice to break compatibility here. Just my opinion.

  • AppBase is always loaded, as is code with the background annotation.  If something is annotated with glance, that will get loaded in glance or full view.

    In the sim, make sure you set 3.1.x in the run config.  Here's a whole thread about glances https://forums.garmin.com/developer/connect-iq/f/discussion/191347/widgets-for-fenix-6/944618#944618

    and Hermo did a blog post about them https://forums.garmin.com/developer/connect-iq/b/news-announcements/posts/widget-glances---a-new-way-to-present-your-data

  • Thanks for this, I got 1 star reviews because "widget not working on 6x pro!"...

    Apparenty because of this, but sheesh.. I'm really fed up with garmin updates breaking things. I do this in my spare time and have less and less of that, fixing issues and adapting stuff (because fonts are also quite random between watches) is getting more tedious every time.

    Meh, guess I'll just be happy I can make my own tools and stop bothering to try to make everybody happy.

  • It could also be that the user is running FW that's too old.  This has been seen on the f6 devices, the va4, and venu, where the app store might not give a warning if the FW is too old.

  • Might also be, but in that case the user also usually complains with the connect-iq developer...

    But yeah, I thought the xmas holidays would be a good time to work on this a bit. Tried the Hermo way to at least add very basic glance support but get an "Illegal Access (out of bounds)" error for some reason... And due to the fact debug info could be clearer at times I just can't be bothered anymore atm.

    It was fun and I'll prolly keep on making stuff for myself, but just don't have the time and energy to do this on a broader level. Complete lack of guarantees  that working things will keep working doesn't help either...

  • Well... I believe, for most of us this is just fun in our spare time - isn't it? And indeed - this is frustrating when you just spend half of Sunday on fixing things and got one star review. But then ask yourself - are you doing that for other people or just for your fun? Of course - it is nice to got 5/5 and frustrating to get 1/5 but honestly - we don't know those people. What is more important for us?

    If I'm right = this 'illegal access' means - you try to access function which are not available in the glance view. For sure it was mentioned in the other thread.

    All the best! Slight smile

  • I'v seen this error when you try to access resources in the glance view that aren't scoped for the glance.

    From the programmer's guide:

    <resources>
        <string id="MyBackgroundString" scope="background">Background String</string>
        <string id="MyGlanceString" scope="glance">Glance String</string>
        <string id="MyForegroundString" scope="foreground">Foreground String</string>
    </resources>