el1t / uBlock-Safari

uBlock Origin - An efficient blocker for Chromium, Firefox, and Safari. Fast and lean.
GNU General Public License v3.0
2.74k stars 100 forks source link

Opening some pages results in continuous looping with a lot of CPU time and RAM being consumed #82

Open ptkovsky opened 6 years ago

ptkovsky commented 6 years ago

Hi. So I would like to report yet again another issue that occurs for me only with uBlock and in Safari browser.

First of all, I would also like to emphasize yet again that It doesn't occur for me with the same configuration being tested in other browsers installed in this system like Chrome, Firefox, Opera, well, except uBlock being more up-to-date there, of course.

Basically, from my understanding, what happens is that some of the sites are being rendered incorrectly, which leads to inadequately increasing consumption of hardware resources and resulting in instability of the whole test system.

One or more specific URLs where the issue occurs

So there is a page called news tape on the site named ixbt.com, it can be opened from this URL: https://www.ixbt.com/news/?show=tape

There is a site called ferra.ru and it has an article section here: https://www.ferra.ru/ru/all/review/. Clicking on any of those does the job.

There should be many more other cases out there on the internet, for sure.

Screenshot in which the issue can be seen

This issues are visually obvious and look like page content being sort of doubled on the side of the screen. It can be observed particularly on this screenshot being provided:

screen shot 2017-12-21 at 7 02 19 pm

It can look like part of the page being not rendered at all and therefore just showing gray screen, like it does on ferra. It can be different. Also the page being opened and uBlock stuck looping results in 100% CPU usage (one logical core as being shown in Activity Monitor) and increasing memory leakage.

Steps for anyone to reproduce the issue

  1. You need to start your Safari browser with uBlock installed and all the filter stuff being there too, obviously.
  2. Just navigate to the above-mentioned URLs.

Versions

Filter lists

So they're mostly stock + Fanboy’s Enhanced Tracking, Annoyance, RU AdList and BitBlock.

Custom filters (if any)

Have only this filter left as of now: ||www.overclockers.ru/images/vkontakte-icon.png$image as BitBlock doesn't seem to hide the icon as it should.

ptkovsky commented 6 years ago

Another really interesting issue on ixbt is when you open the main page and press anything on the left, for example, you want to click on any review or whatever, it opens the page and then suddenly redirects you to a sort of small text version of the piece of the site where it says something about forum topics activity (they call it conferencing). Didn't bother uploading screenshots this time but just ask for them if needed. Yep, tested in other browsers and it's fine and working as intended. This sounds a little bit crazy but it is so. Fun stuff indeed, but what's next?

ptkovsky commented 6 years ago

Well, have been observing this issue for probably since late summer (September-ish maybe). Not really bothered too much as most people have many browsers installed. But just recently decided to report it for the greater good. Nice to know that the issue is reproducible in other environments as well.

ptkovsky commented 6 years ago

The issue also happens here: http://www.gametech.ru. Looks like this is their parent site. However, somewhere around or after 1.14.24 release it started happening less on the news feed on ixbt. Don't use this often so cannot confirm. The issue with the main page navigation as described in https://github.com/el1t/uBlock-Safari/issues/82#issuecomment-353990778 can be still reproduced regularly.