New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 773695 link

Starred by 3 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Browser process taking up 80+% CPU then close page with SharedWorker

Reported by sowingsa...@gmail.com, Oct 11 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 OPR/48.0.2685.35

Steps to reproduce the problem:
Use powerless PC like Intel(R) Celeron(R) CPU G540 @ 2.50GHz 4GB RAM

1. Open online.sbis.ru wait until loaded
2. Open online.sbis.ru in 2d tab and wait until loaded
3. Open online.sbis.ru in 3d tab and wait until loaded
4. Close 1st tab
5. Close second tab
6. Profit. You have 80%+ CPU utilization in closed tab process. Tab from step 5.

Tab from step 5 have no fire unload event as side effect.

What is the expected behavior?

What went wrong?
Tab from step 5 is closed. But in windows task manager i see process with same pid and it utilizate 80%+ CPU.

Tab from step 5 did not fire 'unload' event.

I think what something wrong with closing tab where SharedWorker jumped.

We have SharedSorker with websocket connect and communicate using MessageChannel with page.

I recorded profile and trace 3 times and compress in zip file each try. 
And record normal work of SharedWorker.

In faster PC problem is not reproduced :(

Did this work before? N/A 

Chrome version: 61.0.3163.100  Channel: stable
OS Version: 7
Flash Version: -
 
try-1.zip
5.1 MB Download
try-2.zip
4.2 MB Download
try-3.zip
3.5 MB Download
trace_normal-behavior.json.gz
604 KB Download
spike-cpu.png
166 KB View Download
Labels: Needs-Triage-M61
Cc: ranjitkan@chromium.org
Labels: Needs-Feedback
Rechecked issue with chrome version 61.0.3163.100 on windows 10 by following the steps mentioned in the issue and was unable to reproduce it. Cpu usage was normal in all the cases.

Can you please try a system restart relaunch chrome and try again. Please update us with your observations.

Thanks.!
 Issue 773694  has been merged into this issue.
ranjitkan@chromium.org

We have 100k uniq users every day. Bug reprodused stable in 10-20 incident in day using powerless PC like Intel(R) Celeron(R) CPU G540 @ 2.50GHz 4GB RAM
We see it every day in a month. 
In powerfull PC it reprodused never.


Project Member

Comment 6 by sheriffbot@chromium.org, Oct 12 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "ranjitkan@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Excuse me. I forgot one simple step.
To reproduce you need login to the online.sbis.ru and enter captcha.
And then try.

Today we have 30 feedback about issue.
login 12.10.2017 17-50-20-196.png
124 KB View Download
logined 12.10.2017 17-50-20-196.png
188 KB View Download
yeah! I can reproduce on power pc (windows 10 Core i7-4770 @ 3.40 GHz)
I used 5 VBScript(load.vbs) processes to load CPU (on screenshot only 4, cos i cant create screenshot with 5 processes)

Reproduced in 4nd try:

1. Open online.sbis.ru and login wait until loaded
2. Open online.sbis.ru in 2d tab and wait until loaded
3. Open online.sbis.ru in 3d tab and wait until loaded
4. Close 1st tab
5. Close second tab
6. Profit. You have 80%+ CPU utilization in closed tab process (reproduce-power-pc.png)
reproduce-power-pc.png
302 KB View Download
config 12.10.2017 18-26-05-836.png
46.9 KB View Download
load.vbs
16 bytes View Download
Cc: krajshree@chromium.org
Labels: Needs-Feedback
Tried testing the issue on Win-10 by creating an account at site online.sbis.ru, but that site seems to allow registration for that specific region only.

sowingsadness@ - Could you please provide sample credentials to login to the site. This will help us in triaging the issue further.

Thanks...!!
Hi! 
Thanks for response!. You can login using demo link below login form.


Скриншот 13.10.2017 13-13-59-973.png
171 KB View Download
Project Member

Comment 11 by sheriffbot@chromium.org, Oct 13 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Internals>Core
Labels: Needs-Feedback
Unable to reproduce the issue on Win-10 using chrome reported version #55.0.2883.87, latest stable #61.0.3163.100 and latest canary #64.0.3241.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened online.sbis.ru and logged into it. Waited until loaded
2. Opened online.sbis.ru in 2d tab and waited until loaded
3. Opened online.sbis.ru in 3d tab and waited until loaded
4. Closed 1st tab
5. Closed second tab
6. Observed that browser process did not take up 80+% CPU, rather CPU utilization was 11-12% only.

Note: Tested the  issue 3  times, but was unable to reproduce the issue.

sowingsadness@ - Could you please check the issue on latest canary #64.0.3241.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
773695.webm
19.9 MB Download
Ignore the  issue 3 . I meant that tested 3 times.
Hi!
I tried reproduce in demo account but can't do it in 5 times.
In real account it was reproduce in 2nd time.
I think bug depend on deliver message by MessageChnnal between tab 
 and SharedWorker. In our organisation scheme we have a big count of messages. Today i disabled send log message from page to SharedWorker and issue was reprodused in 1 of 100 tries only (screenshot attached)

I attach video and traces.
I will try receive login in our organisation schema.
Oct 17 2017 2-24 PM.webm
23.3 MB Download
trace_bug.json.gz
4.1 MB Download
profile.json
2.5 MB View Download
Скриншот 17.10.2017 15-26-51-434.png
35.4 KB View Download
Project Member

Comment 15 by sheriffbot@chromium.org, Oct 17 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I created user in big account where issue has reproducing.
Try to reproduce several times and better in 09:00 - 18:00 GMT+3. In that time this account have huge event stream.

https://fix-online.sbis.ru/
login: google
password: google12



Oct 20 2017 2-24 PM.webm
9.4 MB View Download
Reprodused in Canary 64.0.3244.0 to.
Unable to reproduce the issue on Win-10 using chrome version #64.0.3244.0 and latest canary #64.0.3248.2 .

Could anyone from Internals>Core team please have a look into the issue.

Thanks...!!
Labels: TE-NeedsTriageHelp
Adding label TE-NeedsTriageHelp as the issue is not reproducible from TE-end.
Requesting someone from Internals>Core team please have a look into the issue.

Thanks...!!
We have disabled the shared worker implementation in our product because it very bad for our reputation and have used BroadcastChannel instead of it.

Sign in to add a comment