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

StackBlitz server crashed #1492

Closed
1 task
ThirdGearDev opened this issue Aug 1, 2024 · 13 comments
Closed
1 task

StackBlitz server crashed #1492

ThirdGearDev opened this issue Aug 1, 2024 · 13 comments
Labels

Comments

@ThirdGearDev
Copy link

ThirdGearDev commented Aug 1, 2024

Describe the bug

I went on one of my repositories, and clicked Learn more on the thing that talked about the github bot. and it crashed. Also webcontainer/ output area just stays loading so I never see my output
Screenshot 2024-08-01 10 54 08

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/ThirdGearDev/XML-tutorial-example

Steps to reproduce

open a github respository via stack blitz and click on learn more when it asks if you want to enable GitHub bot.

Expected behavior

It would show me the benefits of the github bot.

Parity with Local

Screenshots

Screenshot 2024-08-01 10 57 33

Also i did not actually attempt to run the project in my"local machine", because idk what the heck that is

Platform

Version = 1.84.0
Hash = 499be3932f50ab06349575b1c9042f95bc072a8b
WebContainer = 41692973

Browser name  = Chrome
Full version  = 103.0.0.0
Major version = 103
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 47420122,
  "usedJSHeapSize": 43862982,
  "jsHeapSizeLimit": 1017905152
}

Additional context

TypeError: Invalid value used as weak map key
at WeakMap.set ()
at registerModule (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:161:1216)
at registerImportModuleDynamically (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:266:529)
at internalCompileFunction (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:266:1091)
at wrapSafe (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:144:13497)
at Module._compile (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:144:13881)
at Module._extensions..js (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:144:14855)
at Module.load (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:144:12820)
at Module._load (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:144:10273)
at Function.executeUserEntryPoint [as runMain] (https://xmltutorialexample-h0q2.w-credentialless-staticblitz.com/builtins.1003299b.js:165:1641)

Node.js 18.20.3

@kirjavascript
Copy link
Member

kirjavascript commented Aug 1, 2024

Hi! 👋 thanks for reporting this issue!

we are tracking it internally and will update here when it's fixed

@ThirdGearDev
Copy link
Author

Hi! 👋 thanks for reporting this issue!

we are tracking it internally and will update here when it's fixed!

Did you get the part about how webcontainer is just saying that it is booting?

@kirjavascript
Copy link
Member

Yeah, the issue is the same as ones reported by other users

@ThirdGearDev

This comment was marked as spam.

@SamVerschueren
Copy link
Contributor

There's no reason to be rude or pissed about this. So instead of giving answers which don't really help the conversation, think twice the next time you comment in a thread.

The problem is that you are using an older version of Chrome which doesn't support Symbol() as key in a WeakMap. We worked around that issue for Firefox (as Firefox also doesn't support it, not even in the latest version). However, Chrome does support in since Version 109 which was released January 10th of 2023 so we assumed we would be fine.

We will take a look at supporting this for older versions of Chrome.

@ThirdGearDev
Copy link
Author

ThirdGearDev commented Aug 6, 2024

There's no reason to be rude or pissed about this. So instead of giving answers which don't really help the conversation, think twice the next time you comment in a thread.

The problem is that you are using an older version of Chrome which doesn't support Symbol() as key in a WeakMap. We worked around that issue for Firefox (as Firefox also doesn't support it, not even in the latest version). However, Chrome does support in since Version 109 which was released January 10th of 2023 so we assumed we would be fine.

We will take a look at supporting this for older versions of Chrome.

I added a question mark, wasn't being rude or pissed. You're angrier than me. And I wasn't even mad. That's your perception. Just curious why if it is known it hasn't been fixed. I'd get a different version of chrome, if i had a choice.
Also Chromebooks stop updating after 10 years, (mine stopped early), so I'm only at Version 103.0.5060.132

@SamVerschueren
Copy link
Contributor

Just curious why if it is known it hasn't been fixed.

When I fixed this issue for Firefox, I noticed that Chrome and Safari supports this. I made the decision to fix it for Firefox and not for older versions of Chrome given that it was already implemented for 1,5 years. The first time I hear that this is causing issues is when I came back from vacation and saw these 3 issue reports about the situation.

@SamVerschueren
Copy link
Contributor

This issue is now resolved. Thanks for reporting!

If you run into other issues, please let us know.

@ThirdGearDev
Copy link
Author

Screenshot 2024-08-07 11 08 15 AM
There is progress, but sadly no output.

@SamVerschueren
Copy link
Contributor

Can you share the link of your project? I assume the project you run is just a Node.js script so then you need to run node index.js in the terminal for instance.

@ThirdGearDev
Copy link
Author

Can you share the link of your project? I assume the project you run is just a Node.js script so then you need to run node index.js in the terminal for instance.

My projects aren't just node.js scripts, i don't use them. I don't even know javascript in the first place. The issue is on every project I open.

@SamVerschueren
Copy link
Contributor

SamVerschueren commented Aug 12, 2024

So are these just some html and css files? In that case you can use something like servor or lite-server to start the project. Here's an example.

https://stackblitz.com/edit/node-efzgn5

@ThirdGearDev
Copy link
Author

ThirdGearDev commented Aug 16, 2024

So are these just some html and css files? In that case you can use something like servor or lite-server to start the project. Here's an example.

https://stackblitz.com/edit/node-efzgn5

I think the problem is because I don't use json and js files. Simply because I don't know json or js.

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

No branches or pull requests

3 participants