New issue
Advanced search Search tips

Issue 849370 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 774852
Owner:
Closed: Sep 27
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 3
Type: Bug



Sign in to add a comment

chrome freeze on hard BigInt calculations

Reported by mozti...@gmail.com, Jun 4 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

Steps to reproduce the problem:
let a = 1n;
for (let i = 0; i < 1000000; i++) a <<= 10n;

What is the expected behavior?
maybe lags but possibiliti to close tab with execution at least.

What went wrong?
tab freeze. can't close it. can't close chrome.

Did this work before? N/A 

Chrome version: 67.0.3396.62  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Components: -Blink Internals>Core
Labels: OS-Linux
Hm actually I can almost repro on Linux: I can use the browser but I can't close the tab running code. This seems non-ideal. Maybe there is a better bug for this but you should always be able to close a badly performing tab.
Components: UI>Browser>TabStrip
Components: -UI>Browser>TabStrip
TabStrip is for tab UI stuff; in this case the TabStrip is functional (sends close requests), the problem is in the code below that (e.g. the renderer not being responsive to such requests).  I don't know what the right component is for such issues :/
Labels: Needs-Triage-M67
Hm I have a test site here [1] where I can only reproduce when devtools is open. This seems intentional here:
https://cs.chromium.org/chromium/src/chrome/browser/ui/fast_unload_controller.cc?rcl=da92021743d369b000d9c294337d2f900780dd51&l=58

Without devtools open, the tab closes within a few seconds. mozti4.1: can you reproduce without devtools open?

[1] https://cr.kungfoo.net/hung-renderer/big-int-computation.html

Comment 6 by mozti...@gmail.com, Jun 5 2018

No, I can't. It's only freeze when devtools opened. Btw when devtools closed and computation processing i can't open it.
Components: Platform>DevTools
Labels: -Pri-2 Pri-3
Status: Untriaged (was: Unconfirmed)
Punting to devtools team, but this is lower priority since it probably only affects developers.

Opening devtools also requires communication with the renderer main thread I guess, so it makes sense that you can't open it if the main thread is completely busy.

Devtools folks: Why can't we fast-shutdown a page that is being inspected?

Comment 8 by kozy@chromium.org, Jun 11 2018

Owner: kozy@chromium.org
Status: Assigned (was: Untriaged)
If it is reproducible only when DevTools is shown then you can use following steps to kill any JavaScript:
1. request pause.
2. terminate current JavaScript execution.

GIF: https://twitter.com/ak_239/status/979767841573359618

Mergedinto: 774852
Status: Duplicate (was: Assigned)

Sign in to add a comment