Skip to content
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

100% CPU Usage of Userscripts-Mac-Safari-Extension even with no Safari windows open #729

Open
MikeRich88 opened this issue Sep 27, 2024 · 3 comments
Labels
need reproduce Need reproduce or more information

Comments

@MikeRich88
Copy link

image

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.

@MikeRich88
Copy link
Author

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

@ACTCD
Copy link
Collaborator

ACTCD commented Sep 27, 2024

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:

@ACTCD
Copy link
Collaborator

ACTCD commented Sep 27, 2024

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:

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.

@ACTCD ACTCD added the need reproduce Need reproduce or more information label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduce Need reproduce or more information
Projects
None yet
Development

No branches or pull requests

2 participants