This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Missing information on another activity

So, GC is doing it again.  I'm missing all kinds of stuff on an activity.  Hey, I've made it shareable with you via the site.  A screenshot of what I see:

What I've noticed is that it does THIS when it pegs out my location and adds it to the name - "CALGARY running" - and it doesn't do it when it uploads just "Running".  This makes little sense to me, because when I start a run, I select to NOT use the GPS because I'm on a treadmill...  If my movement is tracked by GPS on a treadmill, that's a Bigger Other Problem.  But it seems to be random as to whether or not it picks it up.

You seem to be the .FIT expert...  I could send you the .FIT file for a "good" one and a "bad" one, perhaps?  You got any other ideas?  'Cause the last time you looked at it, your screenshot was fine...

Thanks for the help, man!

-J

  • Maybe check if data for those elements (like gear) is downloaded at F12 -> Network.

    Or debug somewhere near displayActivityModel -> this.activityIntroView.render().

  • I checked your activity from yesterday and it looks all good. There is no map when I view it. I also see the charts and the device.

    Have you checked how it looks if you make the activity public and logout and then browse to it? ...right...it is hard to make it public without the controls for it :-) Maybe if you do it from the app?

    I believe it is something with the javascript code like  suggests.

    I'm not an expert with FIT files, but you can send me a "bad" one and I can import it into Garmin Connect and see what it looks like and if I get any errors. I got no tools for investigating FIT files so a "good" one is not needed.

    You can use this public email address: info [at] garminbadges.com

  • Thanks man.  I thought you were a master of .FIT files, too.  Probably because a) you're a coder, and b) your website is awesome.  Regardless, checking the thing on "public" mode, yeah, I see all the charts and stuff that I don't on my own frikkin' dashboard.  :(  Thanks Garmin.  So at least I know the information is captured, even if I can't directly see it.  That's helpful to me at least.  

    Looking at the console as recommends, I see some stuff hasn't loaded.  I'm not a web-wizard (I code integrations between systems in C# and other .NET languages, mostly) I haven't got a clue what I'm looking for.  I *do* have an uncaught exception "cannot read property '0' of undefined" ... that sounds helpful...  LOL  But it's by far the biggest code-bust in the console.  And incidentally, the code does NOT break when opening in an incognito window...  So it's probably that.

    Still doesn't help much.  But thanks for the help, guys!

  • At Network tab, there should be a gear JSON, it can be loaded and not used, or not loaded without a try or because of error. So it can be with or without error at console.

    To be sure what's happening, just set a break point at Debugger tab (use search files) and keep following, it can be somewhere near that function I mentioned, but you can also Inspect a page and look for other interesting elements and search for them in code and put a break near them. Also it's good to inspect places of missing elements to check what html code is there.

  •  I've taken a look, and yeah, got the error and where it is.  It seems to have something to do with the map:

    getHotlinePolyData: function(e) {
    for (var t = [], i = this.activityDetails.get("directLongitude"), n = this.activityDetails.get("directLatitude"), r = 0; r < e.length; r++) {
    var o = e[r]
    , s = n[r]  // <-- right here.
    , l = i[r];
    null !== s && null !== l && t.push(new a.Map.Point(s,l,void 0,o))
    }
    return t

    I tried to put this in a code block, but Garmin Forums aren't letting me.  > : ( 

    I don't know if this will help, hinder, or is irrelevant.  But thanks for your interest!

  • this.activityGearView.render() is after that place I mentioned, and function from your post is called from the beginning of displayActivityModel. So if you have error there, then probably it doesn't do next steps.

    That polyline function is not called on activities without a map.

    If your activity should be without a map, then you could check why it was called by viewing some variables used in displayActivityModel. Or maybe look how polyline's file looks like (should be only: numberOfPoints: 0):

    jQuery.getJSON(
        'https://connect.garmin.com/modern/proxy/activity-service/activity/polyline/ACTIVTY-ID',
        function(i){console.dir(i);}
    );