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

Gravity Tests Crash on HTML5 #36

Open
STREGA opened this issue Jul 30, 2023 · 0 comments
Open

Gravity Tests Crash on HTML5 #36

STREGA opened this issue Jul 30, 2023 · 0 comments
Labels
bug Something isn't working Platform: HTML5

Comments

@STREGA
Copy link
Contributor

STREGA commented Jul 30, 2023

The test executable crashes during tests involving Gravity scripts at WASIPlatform.fetch()
Deferring solving this bug until it gets hit in a GateEngine project where more information might be available in output.

Debugging Discoveries
The crash occurs after JSPromise.value returns and before the retuned value is stored.

Thoughts:

  • The debugging results could indicate an exception on another thread
  • Sometimes fetch does return once, so again probably a threading issue
  • SwiftWASM doesn't support threading, but does use a Javascript worker.

The crash trace:

<?>.wasm-function[swift_task_asyncMainDrainQueueImpl()]@[wasm code]
<?>.wasm-function[swift_task_asyncMainDrainQueue]@[wasm code]
<?>.wasm-function[XCTMainRunLoopMain]@[wasm code]
<?>.wasm-function[$s6XCTest7XCTMain_9arguments9observersySayAA0A4CaseCm04testE5Class_SaySS_yAFKctG8allTeststG_SaySSGSayAA0A11Observation_pGtF]@[wasm code]
<?>.wasm-function[$s6XCTest7XCTMainyySayAA0A4CaseCm04testC5Class_SaySS_yADKctG8allTeststGF]@[wasm code]
<?>.wasm-function[$s22GateEnginePackageTests6RunnerV4mainyyFZ]@[wasm code]
<?>.wasm-function[$s22GateEnginePackageTests6RunnerV5$mainyyFZ]@[wasm code]
<?>.wasm-function[main]@[wasm code]
wasm-stub@[wasm code]
49869@[native code]
@http://127.0.0.1:8080/test.js:8948:30

Tests involving gravity are disabled on HTML5 using a package define DISABLE_GRAVITY_TESTS

@STREGA STREGA added bug Something isn't working Platform: HTML5 labels Jul 30, 2023
STREGA added a commit that referenced this issue Jul 30, 2023
Will solve this at a later time.
Issue: #36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: HTML5
Projects
None yet
Development

No branches or pull requests

1 participant