New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nondeterministic bug in Chrome regarding (u)int64 values #197
Comments
Confirmed via playground link on Chrome 41.0.2272.101 on OS X. Seeing 880~920 errors per run. This is pretty bizarre. Seeing zero errors in Firefox. Here's a slightly modified version that shows total errors in the output box: http://www.gopherjs.org/play/#/W9Ne2KyZSV With it, I see that when the console is opened, I keep getting 900~ errors each time, but with console closed, I get 900~ errors first two runs, but 0 errors afterwards. o.o |
Chrome's JS optimizer is quite aggressive and sometimes it does optimizations that are wrong. It is also not deterministic. I've seen similar issues before and will try to find a workaround. |
I've tracked down the exact issue. Here is a JavaScript test case: var f = function() {
var a = 4294967295;
var b = 0;
var c = a + b;
console.log(c, c >>> 0);
};
for (var i = 0; i < 1000; i++) {
f();
} After some iterations, |
Nice. I guess then we can close this for now :) |
Let's keep it open until the bug is resolved in Chrome stable, just for others who run into the same issue. |
I am using Chrome stable (version 41) and Chrome Canary (version 43). Only version 41 shows the bug. Is there someone who has Chrome beta (version 42) installed? It's not that easy to switch between release channels without messing with your system. |
I don't have 42, but I noticed that in Version 40.0.2214.111 (64-bit) the bug also does not exist. |
Chrome 42 just got released on the stable channel and the bug is fixed. Yey! 🎉 |
Hi,
I am generating a json on my Backend which includes a time.Duration field and I am trying to unmarshal it in gopherjs:
Playground: http://www.gopherjs.org/play/#/kdIAc8hVfH
From my tests this works without issues in firefox but in chromium there is an error about ~900 of 1000 times. So it does sometimes work, but most of the time there's an error.
I'm using Chromium Version 41.0.2272.101 (64-bit) on linux.
Edit:
Internet Explorer seems to work fine as well. And Google Chrome 41 on Windows has the same issue still.
The text was updated successfully, but these errors were encountered: