-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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. |
@DmitriySalnikov Did you ever figure out the issue with using Chrono? I'm seeing the same problem along with a mismatched signature on |
I tried a few more times, but couldn't solve the problem. So the easiest way is to start using the Godot API. |
I did that with Chrono, yeah, but the `strtoll` usage is deep in a
dependency that I can't easily touch - wouldn't even know what to replace
it with either :(
I might make a separate issue for these issues to get better visibility on
it.
…On Mon, 2 Sept 2024, 00:13 Дмитрий Сальников, ***@***.***> wrote:
@DmitriySalnikov <https://github.com/DmitriySalnikov> Did you ever figure
out the issue with using Chrono?
I tried a few more times, but couldn't solve the problem. So the easiest
way is to start using the Godot API.
Perhaps someone with more experience with emscripten can tell us.
—
Reply to this email directly, view it on GitHub
<#94537 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR3MTA2F4AJ2YVPSOYXX63ZUOGPLAVCNFSM6AAAAABLERHHH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTGUYTKMRQGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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: