Safari bug in metric conversion - new

  • 1
  • Problem
  • Updated 2 months ago
I use the metric settings on my PWS page. Up til yesterday the page worked fine in Safari on Mac OSX. Not today. It freezes during the page load.

The bug occurs when loading either a PWS page or a local city weather report, in Safari (v 13.0.5) on Mac OSX (10.14.6), if the settings require conversion to metric units (Celsius etc).

I can load the page properly in Google Chrome (v. 80.0.3987.100) and Opera (v 66.0) and an old version of Firefox (though the CPU load from Firefox on the PWS page is not trivial). 

On my iPhone (iOS 13.3.1) using the iOS Safari (not the wunderground app), it starts to work and then crashes with a message about multiple errors. 

I think the problem is with a script that changes the Fahrenheit (etc) setting to Celsius (etc).

I have encountered the same problem on another Mac (OSX 10.14.6) using Safari (13.0.5), that had not previously loaded the wunderground website.

Given Safari's notorious flakiness on some Javascript, this seems to me the likely cause. Chrome and Opera are usually much more robust with Javascript.

Since most Mac and iOS users use Safari as their default browser, the bug needs to be fixed.  A work around for Safari users would be to revert the script to the previous version when the user agent browser ID is Safari. (Back to the bad old days of Internet Explorer 4 and Netscape 4)

I have sent a report to Wunderground with Case Number 01273646

DN




Photo of dcnicholls

dcnicholls

  • 14 Posts
  • 1 Reply Like

Posted 2 months ago

  • 1
Photo of Welly

Welly

  • 4 Posts
  • 3 Reply Likes
I updated to Firefox 73.0 this morning and it won't even load the complete page - Chrome is fine.
Photo of Zobva

Zobva

  • 8 Posts
  • 20 Reply Likes
I'm not sure if it's the latest Firefox update ot the wundergound website, but for the past couple of days when I try to access my local weather I get a horrible memory leak.  Within a minute my browser freezes (64 bit Firefox), and before I can even close it my 6GB of RAM maxes out on my quad core Windows 7 64 bit PC and the whole computer freezes.  Then I have to do a hard shutdown. I tried loading FF in safe mode with no extensions, same results.  Did a complete FF refresh,  no difference. It's only the Weather Underground local weather page that does this, I have not encountered the memory leak anywhere else.
As was mentioned by others, Opera and Chrome do not do this.

Photo of dcnicholls

dcnicholls

  • 14 Posts
  • 1 Reply Like
Fortunately I have 32 GB RAM in this Mac, so it doesn't run out quickly, the fans start blowing hard due to the CPU load and I have enough time to shut the browser tab in Safari. But I looked at the OSX Activity Monitor and there's a huge memory leak (10GB and increasing when I shut the tab) as well as 5 of the 6 cores running near 100%, so this is a SERIOUS code flaw on the PWS web pages (and others). Does anyone with connections to Wunderground see these messages?
Photo of dcnicholls

dcnicholls

  • 14 Posts
  • 1 Reply Like
It looks like this has been fixed.  Fingers crossed.