uBlockOrigin / uMatrix-issues

This is the community-maintained issue tracker for uMatrix
https://github.com/gorhill/uMatrix
123 stars 17 forks source link

High CPU usage when blocking a 3rd party script(s) #291

Open Perkolator opened 4 years ago

Perkolator commented 4 years ago

Prerequisites

Description

Blocking a script causes high cpu. Tested on linux and windows.

A specific URL where the issue occurs

e.g. https://github.com/laurent22/joplin (not logged in)

Steps to Reproduce

  1. Go the the webpage (default 1st-party enabled rules on)

= High cpu usage.

  1. Enable script for github.githubassets.com
  2. Reload the page

= No high cpu usage.

Ruleset

Supporting evidence

cpu_usage1

cpu_usage2

Is this expected? I have been using umatrix for long and this is the first case I just recently noticed.

Your environment

gorhill commented 4 years ago

How is this a uMatrix issue?

Perkolator commented 4 years ago

It is not? Like I wrote, I haven't seen this happening before, just only recently although I have used umatrix for long time. I don't understand under the hood stuff for this. I just thought, and also after reading some comments about disabling (in umatrix) some scripts that cause high cpu, that how can a disabled script cause high cpu usage. Sorry if I've misunderstood. I just honestly though that if I disable some script from running in a webpage, it wouldn't cause high cpu usage. I don't understand at all why it happens in my example. If the script is blocked from running, what causes the high cpu usage then?

gorhill commented 4 years ago

what causes the high cpu usage then?

Why not just launch a profiling session in the browser's dev tools? That would tell you whether uMatrix's code is executing or not. I did and this shows this is not a uMatrix issue.

Anyway, as it is, I've archived uMatrix's repo, I can't and won't be spending any more time on this project, and neither on all such issues.

Whoever is free to fork under a new name -- I may re-open and resume development in some future if ever I feel for it.