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

HTML5 link error behind CloudFlare pages: WebAssembly.instantiate(): Import #0 module="a" function="a": function import requires a callable #86099

Open
PeterMarques opened this issue Dec 12, 2023 · 6 comments

Comments

@PeterMarques
Copy link

PeterMarques commented Dec 12, 2023

Tested versions

System information

linux

Issue description

Sometimes, and when happed i aways fixed and it returned again, and if i re-fix i wil try to get what i did to fix, and describe, but:
:
(on brave):
index.js:45 Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #0 module="a" function="a": function import requires a callable
at index.js:45:17

(on firefox):
Uncaught (in promise) LinkError: import object field 'a' is not a Function

and it will refuse to finish loading.

What the heck is module a function a?

(more on the details (brave))

(anonymous) | @ | index.js:45

  | Promise.then (async)
  | instantiateWasm @ index.js:441
  | createWasm | @ index.js:9
  | (anonymous) | @ index.js:9
  | (anonymous) | @ index.js:625
  | Promise.then (async)    
  | (anonymous) | @ index.js:623
  | doInit | @ index.js:622
  | init | @ index.js:639
  | startGame | @ index.js:738
  | (anonymous) | @ (index):222
  | (anonymous) | @ (index):248

Steps to reproduce

open web export

Minimal reproduction project (MRP)

none

@Calinou
Copy link
Member

Calinou commented Dec 12, 2023

Which browser(s) did you test? Are you testing with a local web server? Opening a file:// URL directly won't work.

Please upload a minimal reproduction project1 to make this easier to troubleshoot.

Footnotes

  1. A small Godot project which reproduces the issue, with no unnecessary files included. Be sure to not include the .godot folder in the archive (but keep project.godot).

    Drag and drop a ZIP archive to upload it. Do not select another field until the project is done uploading.

    Note for C# users: If your issue is not Mono-specific, please upload a minimal reproduction project written in GDScript or VisualScript. This will make it easier for contributors to reproduce the issue locally as not everyone has a Mono setup available.

@BQKdev
Copy link

BQKdev commented Dec 13, 2023

@PeterMarques can you upload a minimal project since most of the description it's just the debug console, This would help better to understand the problem.

@PeterMarques
Copy link
Author

There is no need for minimal project.

The issue arives from cloudflare pages, again.

If i use any of the 2 links, version internal, or internal, there is no error, if i use the custom domain one, there is the error.

But, i fixed that somehow, but now it is back. If more details arise, or i can reproduce the error in other form, i will update.

@PeterMarques
Copy link
Author

Only other place i found a reference to this error:

lana-k/sqliteviz#45 (comment)

@akien-mga akien-mga changed the title HTML5 bug module a function a HTML5 link error behind CloudFlare pages: WebAssembly.instantiate(): Import #0 module="a" function="a": function import requires a callable Dec 13, 2023
@Calinou
Copy link
Member

Calinou commented Dec 23, 2023

Can you check the Network tab in your web browser's DevTools to make sure Godot is able to find all files when loading the page? To do so, open DevTools by pressing F12 or Ctrl + Shift + I, go to its Network tab and reload the page. Check for any 404 errors or similar.

@PeterMarques
Copy link
Author

PeterMarques commented Dec 23, 2023 via email

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

No branches or pull requests

3 participants