Failure loading seasonal graph on taxon page

Please fill out the following sections to the best of your ability, it will help us investigate bugs if we have this information at the outset. Screenshots are especially helpful, so please provide those if you can.

Platform (Android, iOS, Website): Website

App version number, if a mobile app issue (shown under Settings or About):

Browser, if a website issue (Firefox, Chrome, etc) : Safari (Mac) Version 14.1.2 (14611.3.10.1.7)
Mac OS 10.14.6
Note: Problem does NOT seem to occur with Chrome Version 108.0.5359.124 (Official Build) (x86_64)

URLs (aka web addresses) of any relevant observations or pages:
Recent example: https://www.inaturalist.org/taxa/127788-Ancistrocerus

Screenshots of what you are seeing (instructions for taking a screenshot on computers and mobile devices: https://www.take-a-screenshot.org/):

Description of problem (please provide a set of steps we can use to replicate the issue, and make as many as you need.): Seasonal graph is periodically failing to display.

Step 1: Click on a taxon name in an indentification added to an observation to get to a taxon page. For example, from:
https://www.inaturalist.org/observations/125611528
click on Ancistrocerus in user dbagley’s ID to get to genus page:
https://www.inaturalist.org/taxa/127788-Ancistrocerus

Step 2: Seasonal graph often briefly displays (?) then disappears and an error message appears:
“D’oh, something went wrong: TypeError: Failed to initialize NumberFormat since used feature is not supported in the linked ICU version”

Step 3: Note: This error shows up irregularly, maybe 1/3 of the time, and I haven’t figured out what pathway or which taxa trigger it. Accessing the taxon page from other directions (e.g. Explore or from the embedded link, above) seem to show the graph loading properly.

I’m disappointed that this Bug Report has not generated any interest at all. The same issue of failed seasonal graphs is still happening regularly to me, as described above. (See a new screen capture from a few minutes ago.) The above details are still relevant. I have a suspicion this may be related to my current version of Safari and/or MacOS but I’d like to have even some hint of what this is about from someone with more knowledge about such things.

Can you open the developer tools and post any relevant messages? (I don’t have Safari and probably won’t be much help.)

Sorry, Jane. I am ignorant of how to use developer tools on the Mac. I’ll investigate and hopefully get back to you.

1 Like

sounds like: https://community.atlassian.com/t5/Trello-questions/Trello-stuck-at-loading-after-Safari-14-1-update-on-macOS-Mojave/qaq-p/1675577#M45687

here’s where the relevant iNat code might be: https://github.com/inaturalist/inaturalist/blob/main/app/webpack/taxa/show/components/charts.jsx#L78-L80.

if you look for a taxon whose seasonality chart maxes out below 1000 in the y axis, it probably will work just fine. ex.: https://www.inaturalist.org/taxa/372900-Knemidokoptidae.

1 Like

That’s a great lead, @pisum. Thank you. I just ran through a random sample of a dozen various taxa, some with >> 1,000 observations, some with < 1,000. All those with substantial numbers of observations (such that some months probably have > 1,000 observations) like Common Raccoon and Monarch failed to load the seasonal graph, but taxa with low numbers of observations, which as you suggest will have nothing in the seasonal y-axis > 1,000, load the graph correctly.
So that seems to be an interplay of Safari 14.1 and MacOS Mojave. Clearly it isn’t fixed in Safari 14.1.2 which I use and I suspect that Apple is not working on it due to the outdated OS. Sigh…
p.s. The problem does not seem to happen with my current versions of Google Chrome or Firefox. I’m just stuck in my old Safari ways.

Made an issue in case it’s an easy fix. https://github.com/inaturalist/inaturalist/issues/3619

1 Like