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

[Bug]: Stuck on loading before I can click or do anything #22996

Closed
maticb opened this issue Feb 16, 2024 · 15 comments
Closed

[Bug]: Stuck on loading before I can click or do anything #22996

maticb opened this issue Feb 16, 2024 · 15 comments
Labels
external-contributor regression-prod-11.7.5 Regression bug that was found in production in release 11.7.5 Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-extension-platform type-bug

Comments

@maticb
Copy link

maticb commented Feb 16, 2024

Describe the bug

I'm not sure if it's the last update, but everytime I click on the metamask extension it's jsut stuck on loading, before even connecting to any network or anything, I only see the fox with the loading spinner.

I am a developer myself, so I can provide more technical details if anyone lets me know how to do that, I have provided below the output of the debug console for the extension, but I have never coded a browser extension myself so I don't know what would be most helpful.

What I have tried;

  • disable all other extensions and restart - no effect
  • it works on Chrome on the same PC and honestly I could probably fix it by reinstalling the extenision, but I thought I'd report it here and give it a shot

Expected behavior

Extension to load

Screenshots/Recordings

https://i.gyazo.com/ae0a6cded7eb10ba3cff3e5b606d56fb.png

Steps to reproduce

  1. Open metamask

Error messages or log output

Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN sentry-install.js:1:2889
Removing unpermitted intrinsics runtime-lavamoat.js:4079:15
InstallTrigger is deprecated and will be removed in the future. runtime-lavamoat.js:12382:21
onmozfullscreenchange is deprecated. runtime-lavamoat.js:12382:21
onmozfullscreenerror is deprecated. runtime-lavamoat.js:12382:21
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:10114:15
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:4381:30
Property eval will not be hardened because it is scuttled by LavaMoat protection. Visit https://github.com/LavaMoat/LavaMoat/pull/360 to learn more. sentry-install.js:1:693
unreachable code after return statement
ui-11.js:formatted:1658:12
unreachable code after return statement
ui-11.js:formatted:2005:12
unreachable code after return statement
ui-11.js:formatted:2154:12
unreachable code after return statement
ui-11.js:formatted:6059:12
unreachable code after return statement
ui-11.js:formatted:6088:12
unreachable code after return statement
ui-11.js:formatted:6271:12
Uncaught (in promise) Error: An unexpected error occurred
undefined
Uncaught (in promise) Error: An unexpected error occurred
undefined
Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN sentry-install.js:1:2889
Removing unpermitted intrinsics runtime-lavamoat.js:4079:15
InstallTrigger is deprecated and will be removed in the future. runtime-lavamoat.js:12382:21
onmozfullscreenchange is deprecated. runtime-lavamoat.js:12382:21
onmozfullscreenerror is deprecated. runtime-lavamoat.js:12382:21
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:10114:15
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:4381:30
Property eval will not be hardened because it is scuttled by LavaMoat protection. Visit https://github.com/LavaMoat/LavaMoat/pull/360 to learn more. sentry-install.js:1:693
unreachable code after return statement
ui-11.js:1:27823
unreachable code after return statement
ui-11.js:1:32762
unreachable code after return statement
ui-11.js:1:35081
unreachable code after return statement
ui-11.js:1:97293
unreachable code after return statement
ui-11.js:1:97800
unreachable code after return statement
ui-11.js:1:101509
Uncaught (in promise) Error: An unexpected error occurred
undefined
Uncaught (in promise) Error: An unexpected error occurred
undefined
Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN sentry-install.js:1:2889
Removing unpermitted intrinsics runtime-lavamoat.js:4079:15
InstallTrigger is deprecated and will be removed in the future. runtime-lavamoat.js:12382:21
onmozfullscreenchange is deprecated. runtime-lavamoat.js:12382:21
onmozfullscreenerror is deprecated. runtime-lavamoat.js:12382:21
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:10114:15
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:4381:30
Property eval will not be hardened because it is scuttled by LavaMoat protection. Visit https://github.com/LavaMoat/LavaMoat/pull/360 to learn more. sentry-install.js:1:693
unreachable code after return statement
ui-11.js:1:27823
unreachable code after return statement
ui-11.js:1:32762
unreachable code after return statement
ui-11.js:1:35081
unreachable code after return statement
ui-11.js:1:97293
unreachable code after return statement
ui-11.js:1:97800
unreachable code after return statement
ui-11.js:1:101509
Uncaught (in promise) Error: An unexpected error occurred
undefined
Uncaught (in promise) Error: An unexpected error occurred
undefined
Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN sentry-install.js:1:2889
Removing unpermitted intrinsics runtime-lavamoat.js:4079:15
InstallTrigger is deprecated and will be removed in the future. runtime-lavamoat.js:12382:21
onmozfullscreenchange is deprecated. runtime-lavamoat.js:12382:21
onmozfullscreenerror is deprecated. runtime-lavamoat.js:12382:21
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://5970a90f-ccb2-40f7-9c26-0887bb908f14/popup.html
use-snow.js:23:14
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:10114:15
Content-Security-Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). runtime-lavamoat.js:4381:30
Property eval will not be hardened because it is scuttled by LavaMoat protection. Visit https://github.com/LavaMoat/LavaMoat/pull/360 to learn more. sentry-install.js:1:693
unreachable code after return statement
ui-11.js:1:27823
unreachable code after return statement
ui-11.js:1:32762
unreachable code after return statement
ui-11.js:1:35081
unreachable code after return statement
ui-11.js:1:97293
unreachable code after return statement
ui-11.js:1:97800
unreachable code after return statement
ui-11.js:1:101509
Uncaught (in promise) Error: An unexpected error occurred
undefined
Uncaught (in promise) Error: An unexpected error occurred
undefined

Version

11.7.5

Build type

None

Browser

Firefox

Operating system

Windows

Hardware wallet

No response

Additional context

No response

Severity

No response

@metamaskbot metamaskbot added external-contributor regression-prod-11.7.5 Regression bug that was found in production in release 11.7.5 labels Feb 16, 2024
@anaamolnar
Copy link

Hey @maticb. Thanks for reporting! Do you remember doing anything specific before this happened?

@maticb
Copy link
Author

maticb commented Feb 16, 2024

Not really, because I haven't used my wallet in weeks, and I just randomly clicked on it today and noticed it doesn't load.

@vacavaca
Copy link

Encountered the same problem, nohing specific but suddenly metamask stopped working and only shows infinite loading screen, I tried reinstalling the extension, but the result is the same.

I see the same errors in the console as @maticb
Also on firefox

@8times4
Copy link

8times4 commented Feb 24, 2024

Same here.. tried rolling back but that does not work either.
@danfinlay / @danjm would appreciate if you could take a look please, as MetaMask is currently not usable on Firefox for quite some time now.

@maticb
Copy link
Author

maticb commented Feb 26, 2024

I am now actually seeing the same bug on Chrome, with a different console output:

https://i.gyazo.com/bcbba43f43be5358a60f87529560f42e.png

EDIT: I had reinstalled the plugin to fix this on chrome.

@seaona
Copy link
Contributor

seaona commented Feb 29, 2024

Thanks for the report.
I could reproduce this by downloading the 11.7.2 version and fresh install it I see the errors:

  • sentry-install.js:1 TypeError: globalThis.stateHooks.getPersistedState is not a function
  • ReferenceError#15: LavaPack is not defined
loading-get-persisted-state.mp4

@xuwinnie
Copy link

xuwinnie commented Mar 7, 2024

me too, always loading

@ExploreCrypto
Copy link

was any fix found for this? same issue here with firefox just stuck on loading screen

@8times4
Copy link

8times4 commented Mar 13, 2024

Nope, - and this is getting truly fucking annoying that no one is seemingly giving a crap about this.

@cryptodigi
Copy link

still get this on chrome

SES_UNHANDLED_REJECTION: (TypeError#2)

@Rydgel
Copy link

Rydgel commented Mar 23, 2024

same problem

@gauthierpetetin gauthierpetetin added the Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. label Apr 12, 2024
@gauthierpetetin
Copy link
Contributor

Potentially related to: #22589, #22533, #23141

@danjm
Copy link
Contributor

danjm commented Apr 16, 2024

If you are still experiencing this, it would be helpful if you could provide the following:

  1. metamask version number
  2. firefox version number
  3. when MM on firefox was last working for you, and when you first noticed it broken
  4. screenshots of errors, with as much of the stack trace as possible, from the "Console" tab after going to about:debugging#/runtime/this-firefox and clicking "Inspect" next to MetaMask
  5. Go to about:debugging#/runtime/this-firefox and clicking "Inspect" next to MetaMask, then go to the "Storage" tab and then click "Extension Storage" and get a screenshot
  6. After doing all of that, uninstalling and reinstalling MetaMask, or installing MetaMask on a different instance of Firefox, and reporting on whether you still see the problem.

If you can do all of those, that's really helpful, but if you can only do a few of them, that is helpful as well.

Work is in progress on this problem and has been for some time, but it likely is partially caused by data management and data corruption problems that occur in other parts of the computer than MetaMask (the browsers internal data storage, the operating system, the harddrive, etc). We are unable to reproduce this and so would greatly appreciate any information that anyone can share.

@CodeSandwich
Copy link

1. metamask version number

11.12.4

2. firefox version number

125.0.1 Flatpak

3. when MM on firefox was last working for you, and when you first noticed it broken

A few days ago and it broke today.

4. screenshots of errors, with as much of the stack trace as possible, from the "Console" tab after going to about:debugging#/runtime/this-firefox and clicking "Inspect" next to MetaMask
Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN sentry-install.js:1:2889
Removing unpermitted intrinsics runtime-lavamoat.js:4079:15
InstallTrigger is deprecated and will be removed in the future. runtime-lavamoat.js:12382:21
onmozfullscreenchange is deprecated. runtime-lavamoat.js:12382:21
onmozfullscreenerror is deprecated. runtime-lavamoat.js:12382:21
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/home.html
use-snow.js:23:14
Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm. 
Window moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/home.html
use-snow.js:23:14
Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'wasm-unsafe-eval'” (Missing 'unsafe-eval') runtime-lavamoat.js:10114:15
Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'wasm-unsafe-eval'” (Missing 'unsafe-eval') runtime-lavamoat.js:4381:30
Property eval will not be hardened because it is scuttled by LavaMoat protection. Visit https://github.com/LavaMoat/LavaMoat/pull/360 to learn more. sentry-install.js:1:693
unreachable code after return statement ui-11.js:26:76215
unreachable code after return statement ui-11.js:26:81154
unreachable code after return statement ui-11.js:26:83473
unreachable code after return statement ui-11.js:26:145685
unreachable code after return statement ui-11.js:26:146192
unreachable code after return statement ui-11.js:26:149901
Uncaught (in promise) Error: An unexpected error occurred
undefined
Uncaught (in promise) Error: An unexpected error occurred
undefined
SES_UNHANDLED_REJECTION: (Error#1) sentry-install.js:1:693
    t moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    _ moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    levelMethod moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6929
    handleRejection moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7285
    finalizeDroppedPromise moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7058
Error#1: An unexpected error occurred sentry-install.js:1:693
    t moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    _ moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    logError moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6890
    logSubErrors moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6833
    levelMethod moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6931
    handleRejection moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7285
    finalizeDroppedPromise moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7058
<empty string> sentry-install.js:1:693
    t moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    _ moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    logError moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6912
    logSubErrors moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6833
    levelMethod moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6931
    handleRejection moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7285
    finalizeDroppedPromise moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7058
SES_UNHANDLED_REJECTION: (Error#2) sentry-install.js:1:693
    t moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    _ moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    levelMethod moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6929
    handleRejection moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7285
    finalizeDroppedPromise moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7058
Error#2: An unexpected error occurred sentry-install.js:1:693
    t moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    _ moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    logError moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6890
    logSubErrors moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6833
    levelMethod moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6931
    handleRejection moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7285
    finalizeDroppedPromise moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7058
<empty string> sentry-install.js:1:693
    t moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    _ moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/sentry-install.js:1
    logError moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6912
    logSubErrors moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6833
    levelMethod moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:6931
    handleRejection moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7285
    finalizeDroppedPromise moz-extension://31e8b364-30f7-430b-b278-9e926bba3b3b/runtime-lavamoat.js:7058
5. Go to about:debugging#/runtime/this-firefox and clicking "Inspect" next to MetaMask, then go to the "Storage" tab and then click "Extension Storage" and get a screenshot

image

I guess that it's empty?

6. After doing all of that, uninstalling and reinstalling MetaMask, or installing MetaMask on a different instance of Firefox, and reporting on whether you still see the problem.

Reinstallation worked, so I won't be able to share any more information. I lost the entire configuration which now I must reconstruct, which to put it mildly is frustrating.

@gauthierpetetin
Copy link
Contributor

Hi everyone, if you're still facing a similar issue, this issue is the possible cause: #9196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor regression-prod-11.7.5 Regression bug that was found in production in release 11.7.5 Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-extension-platform type-bug
Projects
Archived in project
Development

No branches or pull requests