simple-tab-groups icon indicating copy to clipboard operation
simple-tab-groups copied to clipboard

STG gets stuck loading, "Loading, please wait..."

Open taoeffect opened this issue 2 years ago • 6 comments

Describe the bug

When I quit and restart Firefox, STG will get stuck with the spinner showing "Loading, please wait..." on mouse hover.

I can no longer open the add-ons page, that fails to load. I can't load about:performance either.

To Reproduce

Steps to reproduce the behavior:

  1. Install Tree Style Tabs
  2. Create several tab groups, assign some containers to them
  3. Have over 1000 tabs in one of the containers
  4. Restart Firefox

Those aren't exact steps, they're just my setup.

I'm not sure how to reproduce it tbh. It only happens on one machine. When I copy the Firefox folder to another machine and try it there, it breaks.

So the exact same setup works in one situation, but doesn't in another.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS and version: macOS Monterey 12.2
  • Firefox version: 97
  • Simple Tab Groups version: 4.7.2.1

Additional context

I also tried disabling Facebook Container extension, and that didn't help.

Sometimes it will load, but only like once out of 5 times. So most of the time it hangs.

Help!!

EDIT: FIXED IT!!!

Thanks to @ReaLadge's comment here: https://github.com/Drive4ik/simple-tab-groups/issues/379#issuecomment-1004023590

The solution turned out to be adjusting the layout.frame_rate to 120 (EDIT2: This is no longer needed in FF v100, see comment) - the refresh rate of my monitor on this machine!!

Crazy!

@Drive4ik - do you think this is something that could be mentioned in the extension README?

taoeffect avatar Feb 14 '22 20:02 taoeffect

I went into safe mode, disabled virtually all exceptions except Firefox Multi-Account Containers (the one by Mozilla), and STG, and the problem still shows up, so it's not a conflict with TST.

Here's the Browser Log from the broken run:

most estensions disabled, including TST (broken):

14:21:22.253 1644877282253  addons.xpi  WARN  Checking /Applications/Firefox.app/Contents/Resources/distribution/extensions for addons
14:21:25.584 QM_TRY failure (ERROR): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:7367
14:21:25.584 QM_TRY failure (ERROR): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:4202
14:21:25.584 QM_TRY failure (ERROR): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:4286
14:21:25.584 QM_TRY failure (WARNING): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:4328
14:21:26.305
ExtensionError: No such native application mozillavpn ExtensionUtils.jsm:58:5

And here's what happens when, rarely, it does load:

most estensions disabled, including TST (working):

14:20:12.646 1644877212646  addons.xpi  WARN  Checking /Applications/Firefox.app/Contents/Resources/distribution/extensions for addons
14:20:15.823 QM_TRY failure (ERROR): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:7367
14:20:15.823 QM_TRY failure (ERROR): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:4202
14:20:15.823 QM_TRY failure (ERROR): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:4286
14:20:15.823 QM_TRY failure (WARNING): 'Unavailable failed with resultCode 0x80070057, resultName NS_ERROR_ILLEGAL_VALUE, context dom::quota::FirstInitializationAttempt::TemporaryStorage', file dom/quota/ActorsParent.cpp:4328
14:20:15.843 BackgroundUpdate: _reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]"  nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 241"  data: no] BackgroundUpdate.jsm:243
14:20:16.536
ExtensionError: No such native application mozillavpn ExtensionUtils.jsm:58:5
14:20:16.563
TypeError: this.activityErrorsMap is undefined
7 WebRequest.jsm:756:1

I tried checking the checkbox to enable the debug logging in STG, but on the next launch that didn't seem to generate any additional entries in the browser log, and there's no way for me to uncheck the checkbox because now it seems to be broken each time I launch Firefox, so I can't get to that setting.

taoeffect avatar Feb 14 '22 22:02 taoeffect

Thanks to @ReaLadge's comment here: https://github.com/Drive4ik/simple-tab-groups/issues/379#issuecomment-1004023590

The solution turned out to be adjusting the layout.frame_rate to 120 (EDIT: This is no longer needed in FF v100, see comment) - the refresh rate of my monitor on this machine!!

Crazy!!

@Drive4ik - do you think this is something that could be mentioned in the extension README?

taoeffect avatar Feb 14 '22 22:02 taoeffect

Same issue for me. It started happening when I switched from my external monitor to my notebook integrated 300hz monitor.

AqlaSolutions avatar Mar 07 '22 12:03 AqlaSolutions

I just had this with 100% CPU usage but not Tree Style Tab installed so I don't know the cause. It stopped doing this and maybe it's becauseI switched from the laptop monitor to an external one. Both are 60Hz.

~Shouldn't this ticket or #379 stay open? The bug it still here even if it's upstream it should be tracked here to make it easier to users to mitigate with the manual fix.~ edit: I though somehow that this ticket was closed.

tuxayo avatar Mar 16 '22 18:03 tuxayo

Just an update: since v100 I had to set layout.frame_rate back to -1 for it to load.

taoeffect avatar May 15 '22 00:05 taoeffect

@taoeffect I just installed this extension and ran into the same issue on my laptop. layout.frame_rate was set to -1 but changing it to match my monitor refresh rate (300hz) fixed it for me. Thank you!

BTW, I'm on Firefox 101.01 with all extensions up-to-date. Win11 with latest updates installed. Since I'm using dark mode, I edited the svg.context.... to "true" as required by STG.

distresscode avatar Jun 20 '22 16:06 distresscode