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

Web export doesn't work correctly with binary GDScript #93102

Closed
SkanerSoft opened this issue Jun 12, 2024 · 5 comments · Fixed by #93166
Closed

Web export doesn't work correctly with binary GDScript #93102

SkanerSoft opened this issue Jun 12, 2024 · 5 comments · Fixed by #93166

Comments

@SkanerSoft
Copy link

Tested versions

4.3 Beta 1

System information

Ubuntu 22.04

Issue description

After exporting the game, it does not work in the browser, the console is filled with errors.

This happens randomly in different projects when editing a script.
Even adding comments to the code has an effect.

I found a solution for myself, but I think it's a mistake.

The solution is to select text GDScript when exporting.

image

These are the errors that go to the browser console and are repeated many times. The project itself does not respond to anything.

image

Steps to reproduce

This happens randomly in any project.

Minimal reproduction project (MRP)

None

@Hilderin
Copy link
Contributor

I think this issue is the same as #92233 and #92021 ??

@Alex2782
Copy link
Contributor

I have not yet been able to reproduce it.

Do static variables have to be used? static var label_cache := {}
#92021 (comment)

@AThousandShips
Copy link
Member

Please upload an MRP with code that triggers this case

@SkanerSoft
Copy link
Author

@AThousandShips

Unfortunately, I can't replicate this in a minimal project, but it happens in all my production projects.

Criteria, which may be:

  • there are static functions
  • there are singletons
  • have their own classes
  • there is inheritance
  • there are built-in scripts

An error occurs when there are different combinations of these points, as well as in the absence of some of them.

@AThousandShips
Copy link
Member

Then please see with either a custom build with the latest master or check when beta2 comes out to confirm that this has been fixed, otherwise please create a new issue report with more details to help identify it, but only if you can still identify it with a version after the fix above was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Release Blocker
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants