-
-
Notifications
You must be signed in to change notification settings - Fork 20k
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 with gdextension not working on 4.3 if threads/nothreads variants are mismatched #94537
Comments
Which Emscripten version did you use to compile the GDExtension? |
I use 3.1.62.
|
I can reproduce the issue with the MRP on Firefox with 4.3.beta3, with these errors:
Worth noting that the addons includes prebuilt binaries in the git repo. If you're using those instead of compiling your own, then they might not have been compiled with Emscripten 3.1.62, but instead with whichever version @DmitriySalnikov used for the 1.4.2 release. I tested updating to 1.4.3 and it still has the same issue. One should test with a custom built extension using Emscripten 3.1.62 (like 4.3.beta3) or 3.1.63 (regression fix release, which we'll use for 4.3.rc1). |
And I finally found what the problem was!
The mismatch between shared and non-shared memory directly depends on threads support.
Yes, for some reason it is not possible to use Here you can download .gdextension_libs with new libraries. And here Is an updated .gdextension. |
Thanks to @DmitriySalnikov. On 4.3.beta3, I'm able to fixed this issue by building gdextensions using
Maybe we should add this sections to the gdextension tutorial? |
I got a similar problem with the same message when running on android, but I was using the official build without multithreading and gdextension. |
Tested versions
System information
Confirmed on MacOS and Windows
Issue description
Web export with gdextension not working on 4.3 dev6 ~ 4.3.beta3.
Empty project with gdextension support flag on works well, but add a gdextention (I use debug draw 3d, but my own gdextention not working too) addon to the project cause problem, and console says:
Steps to reproduce
Download MRP, run in broswer.
Minimal reproduction project (MRP)
gdextention test.zip
The text was updated successfully, but these errors were encountered: