-
Notifications
You must be signed in to change notification settings - Fork 909
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
Whitelisted tabs being suspended #723
Comments
You may be correct about this. I didn't foresee this being triggered that often, but you've helped me realise this may seem like a bug to a lot of users. An easy fix would be to check the whitelist status of the tab first, and allowing whitelisted tabs to discard but not suspend. I'll try to implement this as a hotfix. |
@deanoemcke please turn that feature off by default! I just tried loading master from GitHub and it hammered by CPU: I had to kill Chrome to regain control of my machine. Not as bad as #687 but it still took several minutes of slowly navigating to and launching Process Explorer before I could kill it. I guess it was trying to undiscard and then suspend every discarded tab when the extension was enabled? I'm not convinced this feature is a good idea at all, but if it's available, I think it should only work prospectively, as tabs get discarded in the future. Trying to reload hundreds of discarded tabs at once will bring down older machines. This is Win7 Chrome 68. |
I think you're probably encountering this bug actually: #722 It's being worked on right now. Sorry about this.. |
It's not clear what's happening in that bug, but what I saw was the CPU spiking as soon as the extension loaded. Tabs in the background, which I'm pretty sure had been discarded, started showing spinners, as if they were loading. That would be consistent with them being undiscarded, causing them to start loading, in order for them to then be suspended. What's strange is that I don't think I lost any tabs after killing Chrome, restarting it, restoring the tabs, and immediately turning off the 104 version of the extension. I guess it either didn't successfully suspend any tabs or what was restored was the set of URLs immediately before installing 104 from a local folder. |
@fwextensions are you still CPU issues on the latest master? all known bugs have now been fixed. |
@deanoemcke Is the change to call Anyway, this time I had proc explorer ready to kill Chrome if needed. I enabled the latest version from GitHub and... it mostly seemed fine. Some CPU spiking, but the machine was still usable: This was with 362 tabs open across 22 windows. 330 of those were discarded, and 56 of the discarded tabs had also been suspended previously by either the Chrome store version or the .72 alpha (both were running). However, I did notice that all the non-discarded suspended tabs got unsuspended. This time, I had only 7 of those. If all of those had been unsuspended at once (and usually I have more like 150 suspended) then I think the performance would've tanked. I looked at the code but couldn't tell where the startup sequence might be trying to unsuspend all those tabs. Oh, I guess it's from It's certainly an edge case that would only affect people trying non-store versions, but I suspect this may be what happened with my #687 issue. The latest alpha at that time was probably treating all my suspended tabs as unresponsive and reloading them all at once, locking up the machine. Also, I don't think it played into what happened to me before, but the |
One other note: I'd had the 104 version installed, but disabled. I simply re-enabled it for the test above, which is when the suspended tabs got unsuspended. I noticed that the Extensions page still said 104, since Chrome doesn't reload the manifest when you re-enable an extension. I also noticed there was no logging in the background page, which I then saw was disabled in the code. So I set One thing I noticed was that it logged For beta testers, you might want to set |
Thinking about this a little more, it's not clear to me why it would matter if a suspended tab was unresponsive. If the user does an unsuspend all, and the content script doesn't respond to the command, the background script can just set the tab's URL directly. If the JS on |
@fwextensions there's a lot to unpack here. i'd also just like to clarify regarding the 2 different issues raised in this github ticket.
i'm not sure where you read that in regards to sorry if i haven't covered everything in your posts. i've got some other things to look into so need to be somewhat frugal with my time :) |
Sorry for the novel above, and for the confusion on I was posting on this issue as I thought what the 104 version was doing was undiscarding and then suspending every discarded tab due to the new "instantly suspend" option. What I now think it was doing was what I saw 109 do, which was unsuspend every I've been pushing on these issues because the only times I've had trouble with TGS is when something has triggered a mass unsuspend and it locks up my machine. So I've been on the lookout for things that could cause that (like the still scary Unsuspend All menu item :). |
In my PC whitelisted google pages are being suspended even in enough free memory just cause of long waiting time. Kindly fix. |
As posted by Jonathan Hilton on the chrome webstore support forum:
The GS is suspending whitelisted tabs. I suspect it is due to the "instantly suspend when system memory gets very low" setting?
The text was updated successfully, but these errors were encountered: