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

Remix runtime errors #128

Open
kbachnik opened this issue Sep 23, 2023 · 19 comments
Open

Remix runtime errors #128

kbachnik opened this issue Sep 23, 2023 · 19 comments

Comments

@kbachnik
Copy link

After adding and activating the plugin I give permissions 4 times. Then in Starknet logo left sidebar I see this error :

Uncaught runtime errors:
×
ERROR
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at Object.get (https://cairo-remix-test.nethermind.io/static/js/bundle.js:7259:18)
    at https://cairo-remix-test.nethermind.io/static/js/bundle.js:2926:76
    at commitHookEffectListMount (https://cairo-remix-test.nethermind.io/static/js/bundle.js:47780:30)
    at commitPassiveMountOnFiber (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49273:17)
    at commitPassiveMountEffects_complete (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49245:13)
    at commitPassiveMountEffects_begin (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49235:11)
    at commitPassiveMountEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49225:7)
    at flushPassiveEffectsImpl (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51110:7)
    at flushPassiveEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51062:18)
    at performSyncWorkOnRoot (https://cairo-remix-test.nethermind.io/static/js/bundle.js:50279:7)
ERROR
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at Object.get (https://cairo-remix-test.nethermind.io/static/js/bundle.js:7259:18)
    at https://cairo-remix-test.nethermind.io/static/js/bundle.js:2926:76
    at commitHookEffectListMount (https://cairo-remix-test.nethermind.io/static/js/bundle.js:47780:30)
    at commitPassiveMountOnFiber (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49273:17)
    at commitPassiveMountEffects_complete (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49245:13)
    at commitPassiveMountEffects_begin (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49235:11)
    at commitPassiveMountEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49225:7)
    at flushPassiveEffectsImpl (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51110:7)
    at flushPassiveEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51062:18)
    at performSyncWorkOnRoot (https://cairo-remix-test.nethermind.io/static/js/bundle.js:50279:7)
ERROR
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at Object.get (https://cairo-remix-test.nethermind.io/static/js/bundle.js:7259:18)
    at https://cairo-remix-test.nethermind.io/static/js/bundle.js:2926:76
    at commitHookEffectListMount (https://cairo-remix-test.nethermind.io/static/js/bundle.js:47780:30)
    at commitPassiveMountOnFiber (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49273:17)
    at commitPassiveMountEffects_complete (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49245:13)
    at commitPassiveMountEffects_begin (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49235:11)
    at commitPassiveMountEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:49225:7)
    at flushPassiveEffectsImpl (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51110:7)
    at flushPassiveEffects (https://cairo-remix-test.nethermind.io/static/js/bundle.js:51062:18)
    at performSyncWorkOnRoot (https://cairo-remix-test.nethermind.io/static/js/bundle.js:50279:7)

In Plugin Manager Permissions - No Permission requested yet.

How to fix this?

@EdgarBarrantes
Copy link
Member

@kbachnik quick question, are you using Brave with Shields on?

@kbachnik
Copy link
Author

@kbachnik quick question, are you using Brave with Shields on?
No, just Chrome

@stranger80
Copy link
Contributor

stranger80 commented Sep 25, 2023

@kbachnik, can we ask you for a few more details of this behaviour? We suspect what may be the problem, but to be clear, would you like to fill in the details as per below?

To Reproduce
Steps to reproduce the behavior (from a clean start):

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

NOTE: Please clearly indicate the time (with timezone or in UTC) when you have observed the error.

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

Cairo files
Please include the Cairo source file.

Starknet Remix Plugin details

  • Are you using the default Starknet plugin from Remix marketplace, or any self-configured plugin instance?
  • What Environment are you using (Remote/Local Devnet, a wallet configuration)?

Host system (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari], any nonstandard browser plugins/adblocks
  • Version [e.g. 22]

@kbachnik
Copy link
Author

Go to: https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js
image

Click on : Plugin Manager
image

Searching: Starknet
image

Click on Activate

Permissions Accept :
image

Write file permission error: Error from IDE : [TIMEOUT] Timeout for call writeFile from Starknet
image

Checking the Permissions tab :
image

Checking the Straknet logo on the sidebar :
image

Then i refreshed the page and checked the Starknet logo again :
image


Second try

Go to: https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js
image

Click on : Plugin Manager
image

Searching: Starknet
image

Click on Activate

First Permission Accept :
image

Second Repmission Accept :
image

Tird Repmission Accept :
image

Fourth Repmission Accept :
image

Write file permission error: Error from IDE : [TIMEOUT] Timeout for call writeFile from Starknet
image

Checking the Permissions tab :
image

Checking the Straknet logo on the sidebar :
image

Then i refreshed the page and checked the Starknet logo again :
image

===============================================================================

I am using this instruction from nethermind-eth
https://medium.com/nethermind-eth/unlocking-onboarding-to-starknet-an-overview-of-the-starknet-remix-plugin-6b0658e73521

The time, when i indicate the Error - 00:50-01:05UTC

Im using the default Starknet plugin from Remix

Im using a wallet configuration

All Cairo files that i have :
hello_world.zip

System Spec :
OS - Windows 11 Version 10.0.22621 Build 22621
Browser - Chrome Version 116.0.5845.188 (Official Build) (64-bit)

@stranger80
Copy link
Contributor

stranger80 commented Sep 26, 2023

@kbachnik thank you for your patience in getting all the details to us! Your attempts appear to have coincided with plugin backend outages which we have experienced during the last few days. We believe we have rectified these now - would you like to give the plugin another spin and confirm it is now compiling as expected?

@henryf10h
Copy link

hello! I am getting a similar error.

To Reproduce
Steps to reproduce the behavior (from a clean start):

Go to Remix.
Since we're using Brave, turn off 'Shields Up'.
Re-open Remix.
Click on the extensions and search for the StarkNet plugin.
Click on the StarkNet plugin.
image

See error: The plugin appears activated, but it doesn't redirect to the permissions window, and there's no option to compile the Cairo contract.

@kbachnik
Copy link
Author

@kbachnik thank you for your patience in getting all the details to us! Your attempts appear to have coincided with plugin backend outages which we have experienced during the last few days. We believe we have rectified these now - would you like to give the plugin another spin and confirm it is now compiling as expected?

image

Same error today

@stranger80
Copy link
Contributor

@henryf10h An empty plugin panel indicates the plugin hasn't loaded. This can be caused by connectivity problems - the following link must work from your browser, and must return a blank screen (with React-related HTML markup visible in page source): https://cairo-remix-test.nethermind.io/ . Can you test that and confirm the URL responds correctly.

Note: The plugin, when launched, must be able to connect to following URLs as well:

Note2: I see in your URL bar that you have been trying to connect to Remix/Starknet plugin using an external link, with incorrect activate parameter - the correct value is activate=Starknet (as opposed to activate=Starknet-cairo1-compiler on your screenshot). In other words, you seem to be using an old external reference link - the correct one is: https://remix.ethereum.org/#activate=Starknet

@stranger80
Copy link
Contributor

@kbachnik we were digging a bit deeper in the symptoms you are observing. The stacktrace error indicates that the browser is blocking access to localStorage element of the webpage. Possible causes are:

  • Chrome is launched in incognito mode
  • Chrome setting "Block third-party cookies" is activated (see chrome://settings/cookies):
    image

Note: even with "Block third-party cookies" activate, exceptions can be added to a whitelist - the whitelist must include:
- https://remix.ethereum.org
- https://cairo-remix-test.nethermind.io

  • ...also see this link for potential hints.

I hope this helps now.

@henryf10h
Copy link

henryf10h commented Sep 28, 2023

Hello @stranger80 ,
So far, I have done the following:

  1. I went to https://cairo-remix-test.nethermind.io/ and I still got a white screen.
    image
  2. Then I connected to the next two links you have suggested to me, in both cases I got the expected responses ('ok' and '{"tx_status":"NOT_RECEIVED"}').
  3. finally I go to the final link https://remix.ethereum.org/#activate=Starknet and I still can not see anything to compile.
    image
  4. I noted, when I go to the final link, I get defaulted the following link:
    https://remix.ethereum.org/#activate=Starknet&lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js
    It seems to be using a solidity's compiler version.

@stranger80
Copy link
Contributor

stranger80 commented Sep 28, 2023

@henryf10h would you like to join our Telegram channel (as posted on the repo's main README.md header)? Seems like something is interfering with js code on the Remix page, but that requires more sophisticated debugging (eg. clear the js console and network traces, restart Remix UI from the https://remix.ethereum.org/#activate=Starknet and watch Console and Network for errors...)

Also, do other Remix plugins launch for you (eg. Tenderly)?

@henryf10h
Copy link

I cleared js console and network traces. After restarting I got the following errors:
image
image
image
image
image

@EdgarBarrantes
Copy link
Member

@henryf10h @kbachnik by any chance, are any other Remix plugins working for you right now?

You might want to try using a VPN, there has been issues reported in our telegram regarding the list of plugins not showing due to location restrictions.

@kbachnik
Copy link
Author

@EdgarBarrantes other Remix plugins work well
I have tried all the steps with VPN enabled but the error remains the same

@henryf10h
Copy link

ok, I just used VPN, and I still get the same.

pd: I can not see other plugins such as tenderly.

@EdgarBarrantes
Copy link
Member

Thanks for your patience and reports :)

@henryf10h, could you try out connecting to a different server? E.g.: France, USA? If you can't see the other plugins it's most likely the location issue reported in Telegram unrelated to this plugin.

@kbachnik, do you think you could clean cache ("Clear site data" in the Application tab in developer tools) and reload, we made some changes that should fix the timeout (we're working on more optimisations), also, be sure you're not getting running in incognito mode / blocking 3rd party cookies like stranger80 said. Thanks a lot.

@kbachnik
Copy link
Author

kbachnik commented Oct 3, 2023

@EdgarBarrantes Same error
image

@henryf10h
Copy link

Hello @EdgarBarrantes ,

I still get the same blank page even if I set the VPN to USA.

image

@henryf10h
Copy link

Hello team, Is there any clue what could be happening? I have been trying to connect from different vpn's locations. Is there a remix tool that supports cairo in VSC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants