100% CPU Usage of Userscripts-Mac-Safari-Extension even with no Safari windows open
No Safari windows/tabs were open at all. (Maybe there was still a service worker running?)
Next time it does this, I'll run a sample to try and see what it's doing.
I have ~20 scripts but only 5 are even enabled, and all of those are targeting specific websites.
Version 4.6.0 (98) from TestFlight, but apparently this is old. Now updated to Version 5.0.0 (108). Safari v18.0.
This issue has been going on for a while.
There's a report in Console, I forgot the system will run these automatically.
Userscripts-Mac-Safari-Extension_2024-09-26-193700_QuinnHex.cpu_resource.diag.zip
This shouldn't happen, the extension process is started by Safari, not our App.
So if you are not running Safari, the extension process should not exist.
You can check who started it.
One possible reason is that in Safari 18:
- https://github.com/quoid/userscripts/issues/719
There's a report in Console, I forgot the system will run these automatically. Userscripts-Mac-Safari-Extension_2024-09-26-193700_QuinnHex.cpu_resource.diag.zip
@MikeRich88 I'm not an expert in analyzing log reports.
According to the log file you provided, it seems that the problem mainly points to the system Foundation framework.
This is the log symbolized based on the Userscripts_mac_v4.6.0(98).app.dSYM file of the corresponding version:
Userscripts-Mac-Safari-Extension_2024-09-26-193700_QuinnHex.cpu_resource.diag.symbol.txt
This appears to be consistent with a potential crash issue we recently fixed:
- https://github.com/quoid/userscripts/pull/714
- https://github.com/quoid/userscripts/pull/724
We didn't know it would also cause energy consumption issues.
Hopefully recent fixes will fix it in the meantime.
So please check if the same situation still exists in the latest version.
Does your issue still exist?
If the issue is no longer reproducible in the latest version, please close the issue.
I switched to Firefox a few months ago due to intolerable outstanding bugs in Safari (such as: every single time I use the web inspector, it clears most, but not all, of my cookies/site logins/etc.)
Yes, I remember that issue existed on some versions.
There are also nasty bugs like this:
- https://github.com/quoid/userscripts/issues/723
Anyway, I'm just cleaning up the stale issues recently, if you couldn't check or reproduce the issue anymore, I'll close it.
If you want to check it again, our latest beta version includes a built-in logger so you could export and view logs more easily.
- https://github.com/quoid/userscripts/pull/761