5 ms·
I had a user report exactly this on my site this week (https://cycle.travel/map https://cycle.travel/map), but iOS 14.5 rather than MacOS. I upgraded my iPad an
by Doctor_Fegg 5y ago
I had a user report exactly this on my site this week (https://cycle.travel/map https://cycle.travel/map), but iOS 14.5 rather than MacOS. I upgraded my iPad and could reproduce it trivially.
The cause was calling focus/setSelectionRange on a textfield within a click handler. When I commented these out then the problem disappeared.
Not a rare combination and I’d have thought beta-testing should have flushed this out, but there you go.
Edit:
If you want to try reproducing this, go to https://cycle.travel/map/mobile?debug=1 https://cycle.travel/map/mobile?debug=1 , and click within the 'From' or 'To' field. It crashes every time on my iPad running iOS 14.5.
- alanfranz 5y agoI've got a fully-updated iPhone 11 with iOS 14.5 and your site works perfectly well with my device in Safari.
- kelnos 5y agoMaybe because they commented out the code on their site that triggered the issue?
- alanfranz 5y agoPossibly. But then there's no way to confirm it happens on a lot of devices. So far I've been unable to reproduce the issue on any of my MacOS and iOS devices on any problem-related URL I was given in this thread or linked discussions.
- mannerheim 5y agoTrello evidently had a bug (or rather, Safari 14.1 evidently has a bug which manifested on Trello) related to Intl.NumberFormat: https://community.atlassian.com/t5/Trello-questions/Re-Trello-stuck-at-loading-after-Safari-14-1-update-on-m/qaq-p/1677346/comment-id/45687#M45687 https://community.atlassian.com/t5/Trello-questions/Re-Trell... Does the following work for you in Safari 14.1? new Intl.NumberFormat('en-US', {notation: 'compact'}).format(1825602) In Chrome this gives "1.8M"
- brewmarche 5y agoI encounter the same issue which for me breaks Microsoft's documentation, e.g. https://docs.microsoft.com/en-us/dotnet/api/system.io.memorymappedfiles.memorymappedfile?view=net-5.0 https://docs.microsoft.com/en-us/dotnet/api/system.io.memory... I get (macOS 10.14.6, Safari 14.1): > new Intl.NumberFormat('en-US', {notation: 'compact'}).format(1825602) < TypeError: Failed to initialize NumberFormat since used feature is not supported in the linked ICU version
- alanfranz 5y agoIs that even the same issue?
- mannerheim 5y agoIt is the root cause of some issue with Trello that appeared with Safari 14.1, but perhaps not the same issue causing other sites to break; if so, perhaps there are multiple bugs with the update.
- Doctor_Fegg 5y agoI did, yes - or rather I put it behind a UA check. I've just put up a reproducible case behind a query-string flag - see edit above.
- tinus_hn 5y agoThis does cause a crash on my iPhone XR running iOS 14.5
- alanfranz 5y agoI confirm not crashing for me on MacOS Mojave with Safari 14.1: https://streamable.com/5jn41o https://streamable.com/5jn41o
- mannerheim 5y agoOP said the bug appeared on iOS 14.5
- alanfranz 5y agoThe main linked article is about Safari 14.1 on MacOS. If it is "exactly the same issue" as OP says, then how come it doesn't appear on Safari 14.1 on MacOS? It's probably not a Safari bug.
- Doctor_Fegg 5y agoThat's interesting - so a Mobile Safari issue but not a desktop one. Cheers.
- alanfranz 5y agoI confirm I can trigger the bug in iOS 14.5 on my iPhone 11. Interestingly, the first time I click on "From" or "To" I get a forced refresh.
- js2 5y agoIt's crashing both times, it's just that the first time, Safari reloads the page. The second time, it gives you the "repeatedly" crashing message.
- sushikokk 5y agoHappens on my iPhone 12 also, reloading and eventually an error message about a repeating problem.
- TrueGeek 5y agoA bit off topic but I just want to thank you for such a great site. Just this morning I had been linked to it for a travel diary of LEJOG.
- Doctor_Fegg 5y agoThank you! I love working on it, and hearing about people enjoying cycling holidays they've planned with the site is the best reward.
- SamuelAdams 5y agoConfirmed the bug on an iPhone XS running 14.5. I had to focus the from field twice before it crashed.
- Nextgrid 5y agoThis also crashes on iPhone 8 running iOS 14.4.2.
- aeontech 5y agoLooks like a fix is in the works at https://bugs.webkit.org/show_bug.cgi?id=225259 https://bugs.webkit.org/show_bug.cgi?id=225259 using your site as the reproduction case :)