You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest release 20.9.3 that rolled into my Firefox Developer Edition ( v81.0b5 ) on an Ubuntu 20.04.1 LTS machine earlier today started hogging all of my system resources whenever a github page was loaded.
Install Refined Github extension from addons.mozilla.org
Open a Github page
Expected Behavior
The page loads without issues.
Actual Behaviour
Firefox warns that the extension is slowing the page down.
CPU hits 100% ( on all cores ) and the fans start spinning very loudly
RAM starts to fill up until none is left.
Clicking the 'Stop it' button in the browser warning does not take immediate effect because the whole browser process is in some kind of a hung state. The only 2 ways ( that I could figure was ) to stop it is to either disable the add-on from the Add-ons Manager ( if the tab is already open; new tabs don't load the pages within the DOM ) or to kill the whole browser process.
Test Environment
Operating System : Ubuntu 20.04.1 LTS
Browser Version : Firefox 80.0, Firefox Developer Edition ( 81.0b5 )
Extension Version : 20.9.3
Reacted by Chris Sewell, Shaan Subbaiah, Augustin Trancart, Jeroen van Warmerdam, Raul Santos and racterub
Also, more helpfully, can you try clicking on "Debug script" to see where it stops? This might take a minute to stop, but it will provide information about what's causing it.
Same issue here on ArchLinux, FF 80.0.1
Actually as soon as I interact with the yellow bar, either to disable the addon on the page, stop the script or debug the whole Firefox UI stops responding and only solution is to kill Firefox.
I'll have to disable the extension for the time being.
I think the issue might have caused by the 20.9.3 update. Before this update everything was working perfectly on my side.
If there's any other way to give helpful information I'd be happy to provide them.
changed the title [-]latest release hogs system resources - Firefox on Ubuntu 20.04[/-][+]latest release hogs system resources on Firefox[/+]on Sep 4, 2020
That button isn't affected, the selector is very specifically get-repo details which only appears on the root (get-repo being the custom dropdown element with the "clone/download" links)
Aaaaannd I can't reproduce any more. I'm pretty sure it's an interaction with another addon, possibly octotree, because disabling and enabling it made the problem go away for me.
@autra I have Octotree as well and cannot reproduce (on Chrome 86.0.4240.22, though I believe this doesn't affect Chrome) @fregante I can reproduce it on Firefox 80 with a fresh install
That button isn't affected, the selector is very specifically get-repo details which only appears on the root (get-repo being the custom dropdown element with the "clone/download" links)
@fregante is right. that was the change in #3517. my bad 🙏
so, all the root repository pages then? I think I had it reproduce on josh/selector-observer too during my initial hangs and tests ( before I went hard-core debugging the issue )
The error in #3527 (comment) suggests that get-repo details .octicon-download doesn't exist. That's really strange because we don't remove it.
I made it crash by doing this in the console:
Remove download icon
Rename details tag to whatever
Rename it back to details, it immediately hangs
So indeed this loops inside the add function, probably because of the error. This is kinda of a new problem with selector-observer; if that happens every time GitHub changes the DOM we're screwed.
That just hides the error, we don't do that. We can however change the original selector to point directly to the SVG, which would fix this specific issue for the time being.
Activity
fregante commentedon Sep 4, 2020
Thanks for the detailed report, but does this happen on any page? If not, please leave a link where it happens.
There have been some changes lately that might cause this, but we had just hoped they wouldn't — #3084
fregante commentedon Sep 4, 2020
Also, can you try finding which version started causing this? https://addons.mozilla.org/en-US/firefox/addon/refined-github-/versions/
fregante commentedon Sep 4, 2020
Also, more helpfully, can you try clicking on "Debug script" to see where it stops? This might take a minute to stop, but it will provide information about what's causing it.
njibhu commentedon Sep 4, 2020
Same issue here on ArchLinux, FF 80.0.1
Actually as soon as I interact with the yellow bar, either to disable the addon on the page, stop the script or debug the whole Firefox UI stops responding and only solution is to kill Firefox.
I'll have to disable the extension for the time being.
I think the issue might have caused by the 20.9.3 update. Before this update everything was working perfectly on my side.
If there's any other way to give helpful information I'd be happy to provide them.
swt30 commentedon Sep 4, 2020
Same here on OSX Catalina, Firefox 81.0b4, Refined Github 20.9.3, on any github repo. I hit debug but no luck, the page just hangs.
noaione commentedon Sep 4, 2020
Same problem, it only occured on repository page.
I'm using version 20.9.3 on Chrome 85.0.4183.83
Looking at the dev console, the problem is because this line of code https://github.com/sindresorhus/refined-github/blob/master/source/features/cleanup-repo-filelist-actions.tsx#L38
Line 9621 on the packaged(?) script
shinenelson commentedon Sep 4, 2020
That would probably explain why this 'hang' happens only on the "Code" tab and doesn't happen on "Issues" or "Pull requests" tabs.
I was looking at the changes that went into this release - it wasn't much but I found #3517 and somehow felt that the
observeblock and theonetime(init)could be the source of the problem; though I couldn't connect it to theselector-observerand https://bugzil.la/1422522[-]latest release hogs system resources - Firefox on Ubuntu 20.04[/-][+]latest release hogs system resources on Firefox[/+]yakov116 commentedon Sep 4, 2020
I just tried to reproduce I did a fresh install (brand new computer) and I am not seeing the issue.
Note I am on windows.
yakov116 commentedon Sep 4, 2020
shinenelson commentedon Sep 4, 2020
[-]latest release hogs system resources on Firefox[/-][+]latest release hogs system resources[/+]yakov116 commentedon Sep 4, 2020
shinenelson commentedon Sep 4, 2020
11 remaining items
fregante commentedon Sep 4, 2020
That button isn't affected, the selector is very specifically
get-repo detailswhich only appears on the root (get-repobeing the custom dropdown element with the "clone/download" links)autra commentedon Sep 4, 2020
Aaaaannd I can't reproduce any more. I'm pretty sure it's an interaction with another addon, possibly octotree, because disabling and enabling it made the problem go away for me.
shinenelson commentedon Sep 4, 2020
@autra : can you check whether your add-on got updated to v20.9.4? it was published a little earlier reverting #3517.
kidonng commentedon Sep 4, 2020
@autra I have Octotree as well and cannot reproduce (on Chrome 86.0.4240.22,
though I believe this doesn't affect Chrome)@fregante I can reproduce it on Firefox 80 with a fresh install
shinenelson commentedon Sep 4, 2020
@fregante is right. that was the change in #3517. my bad 🙏
so, all the root repository pages then? I think I had it reproduce on josh/selector-observer too during my initial hangs and tests ( before I went hard-core debugging the issue )
fregante commentedon Sep 4, 2020
The error in #3527 (comment) suggests that
get-repo details .octicon-downloaddoesn't exist. That's really strange because we don't remove it.I made it crash by doing this in the console:
detailstag towhateverdetails, it immediately hangsSo indeed this loops inside the
addfunction, probably because of the error. This is kinda of a new problem withselector-observer; if that happens every time GitHub changes the DOM we're screwed.My guess: https://github.com/josh/selector-observer/issues/30
shinenelson commentedon Sep 4, 2020
I don't know if this will be of much help
The
.octicon-downloadbutton is there though.kidonng commentedon Sep 4, 2020
This is really strange, I can reproduce it when I didn't login into GitHub, but cannot when I logged in (both without setting token, Firefox 80)
kidonng commentedon Sep 4, 2020
@fregante Maybe just
Or the good old way:
fregante commentedon Sep 4, 2020
That just hides the error, we don't do that. We can however change the original selector to point directly to the SVG, which would fix this specific issue for the time being.
kidonng commentedon Sep 4, 2020
autra commentedon Sep 4, 2020
I'm still on v20.9.3
fregante commentedon Sep 5, 2020
@kidonng probably just observe the download button directly: