Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Pandos on January 6th, 2014, 05:11 PM

Title: Stats are broken
Post by: Pandos on January 6th, 2014, 05:11 PM
Browser hangs since yesterday while waiting for:
http://code.jquery.com/jquery-2.1.0-beta1.min.js(http://code.jquery.com/jquery-2.1.0-beta1.min.js:2)

Loading OK as link, buts stats loads forever while waiting
Title: Re: Stats are broken
Post by: Nao on January 6th, 2014, 10:15 PM
Phew... Problem fixed. I'd experienced it for a few days, but thought it was only on mobile. It was also on desktop. The reason was due to Date().getMonth() returning a 0-based value, rather than 1-based, and January is 0, and Wraph simply wasn't built for a graph that ended in a zero month. Technically, the 'bug' would have fixed itself in February, but I figured, people will probably want it to work now... :P

The reason for the crash was that the whole script was caught in an infinite loop. It was totally unrelated to the jQuery version. (Yes, I'm aware that beta 3 is out, but I'd rather wait for the final release to be out, and the current beta is working just fine for me, so...)
Title: Re: Stats are broken
Post by: emanuele on January 10th, 2014, 12:53 AM
Yep, it was a funny loop, Chrome filled up 16 GB of ram, I had to log from ssh and kill it! LOL
Title: Re: Stats are broken
Post by: Nao on February 14th, 2014, 10:19 PM
Apologies for that, then!

Ohh, I'd so love to get 16GB of RAM... I nearly bought them last year, but figured I'd wait until prices would go down... And then poof, a year later, they're actually twice as high. Argh!
Thankfully, 8GB are enough most of the time... As long as you reboot regularly, or restart your browser regularly. (I don't... Then I get memory corruption and crashes. -_-)