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

[wasm64] Fix _emscripten_run_callback_on_thread under wasm64 #21852

Merged
merged 1 commit into from Apr 29, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 29, 2024

The only test we have for this was in test_interactive.py. I ran it locally to ensure it now works.

Fixes: #21851

@sbc100 sbc100 requested review from kripken and dschuff April 29, 2024 19:43
@dschuff
Copy link
Member

dschuff commented Apr 29, 2024

The code and test changes look fine. Do you think it would be possible to move some of this event-threading coverage out of interactive tests? Presumably things like key or mouse events would have to stay interactive but maybe for proxying we could move to some other kind of event?

The only test we have for this was in `test_interactive.py`.  I ran it
locally to ensure it now works.

Fixes: emscripten-core#21851
@sbc100
Copy link
Collaborator Author

sbc100 commented Apr 29, 2024

The code and test changes look fine. Do you think it would be possible to move some of this event-threading coverage out of interactive tests? Presumably things like key or mouse events would have to stay interactive but maybe for proxying we could move to some other kind of event?

Actually it looks like we do already have some coverage in the browser tests for this and the test was explictly disabled for wasm64. Now enabled!

@jspanchu
Copy link
Contributor

Upon pasting that last line in tools/emscripten.py, mouse/keyboard/resize all work great in wasm64 + proxy-to-pthread! Assuming this gets merged, will this fix make it to the next release 3.1.59? Any rough estimate when that will happen?

Thanks for working on this!

@sbc100
Copy link
Collaborator Author

sbc100 commented Apr 29, 2024

Upon pasting that last line in tools/emscripten.py, mouse/keyboard/resize all work great in wasm64 + proxy-to-pthread! Assuming this gets merged, will this fix make it to the next release 3.1.59? Any rough estimate when that will happen?

Thanks for working on this!

3.1.59 is already in the process of being built, so this would go into 3.1.60.

BTW you can always use emsdk install tot to get the very largest version of emscripten (usually lags just a few hours).

@sbc100 sbc100 enabled auto-merge (squash) April 29, 2024 21:04
@sbc100 sbc100 merged commit 0649692 into emscripten-core:main Apr 29, 2024
29 checks passed
@sbc100 sbc100 deleted the wasm64_callback_on_thread branch April 29, 2024 21:19
@jspanchu
Copy link
Contributor

Can an entry please be made for this bug fix in the changelog for 3.1.60 (in development). Thanks. I usually look at the ChangeLog to find interesting bug fixes/features before updating our emsdk version.

@sbc100
Copy link
Collaborator Author

sbc100 commented May 16, 2024

Given that wasm64 is itself still experimental I wouldn't normally put something like this in the ChangeLog. I'm happy to make an exception though if you think this will be useful to others too?

@sbc100
Copy link
Collaborator Author

sbc100 commented May 16, 2024

Given that wasm64 is itself still experimental I wouldn't normally put something like this in the ChangeLog. I'm happy to make an exception though if you think this will be useful to others too?

(we normally reserve the ChangeLog for major changes or breaking changes, not bugfixes like this)

@jspanchu
Copy link
Contributor

Okay. I don't know of others interested in rendering and event processing with 64-bit wasm outside of the simulation post processing industry, anyone from gaming?

It seems fair enough to leave it out.

@sbc100
Copy link
Collaborator Author

sbc100 commented May 16, 2024

BTW the 3.1.60 release should get done today or tomorrow I hope.

@jspanchu
Copy link
Contributor

Awesome!

@sbc100 sbc100 mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wasm64: html5 callbacks throw type error when proxying to pthread
4 participants