Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Intermediate release with async worker handler fixes #2359

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

Conversation

WebReflection
Copy link
Contributor

Description

There is an issue with async workers handlers that is not really blocking or breaking in general but it might cause tons of errors and it might not resolve properly in some case.

Changes

  • updated Polyscript and related stack to its latest, keeping Pyodide 0.27 instead of 0.28 as that's not fixed yet
  • tested everything is fine

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection
Copy link
Contributor Author

FYI published on npm as https://cdn.jsdelivr.net/npm/@pyscript/[email protected]/dist/core.js and https://cdn.jsdelivr.net/npm/@pyscript/[email protected]/dist/core.css counterpart, tested no error is shown anymore in here https://pyscript.com/@agiammarchi/frosty-pine/latest?files=index.html (click to see no errors anymore with async listeners from a worker).

The next fix I'd like to land is for ImageData and other known not-strictly-JS types that currently don't transparently travel from main to worker in a meaningful or useful way when their data is read-only and contains views or buffers that are automatically transferred.

@WebReflection WebReflection requested a review from ntoll July 9, 2025 01:34
@WebReflection WebReflection merged commit b528ba6 into pyscript:main Jul 10, 2025
2 checks passed
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.

2 participants