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

Bug: Web Workers duplication #10622

Open
konstantincheban opened this issue Jun 11, 2024 · 0 comments
Open

Bug: Web Workers duplication #10622

konstantincheban opened this issue Jun 11, 2024 · 0 comments
Assignees
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.

Comments

@konstantincheban
Copy link

Current Behavior

I noticed that every time a created worker sends a message, pixi push it to the worker's pool, which leads to duplicate workers in memory.

this._returnWorker(event.target as Worker);

Screenshot 2024-06-11 at 7 22 58 PM

Screenshot 2024-06-11 at 7 08 06 PM

Screenshot 2024-06-11 at 7 08 22 PM

Expected Behavior

The behaviour described above should be fixed to avoid duplication of workers, unless of course it was not intended that way, which I have my doubts.

  • it would be nice to have web workers clean up when app destroy is called, right now I don't see code for that.

Steps to Reproduce

In our case, the duplicate appears after the whole application has been remounted. Unfortunately I can't create a playground, but I hope even so the essence of the problem will be visible and clear.

Environment

  • pixi.js version: 8.1.6
  • Browser & Version: Chrome 125
  • OS & Version: MacOS Sonoma
  • Running Example:

Possible Solution

No response

Additional Information

No response

@Zyie Zyie added the 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. label Jun 14, 2024
@Zyie Zyie assigned Zyie and unassigned GoodBoyDigital Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.
Projects
None yet
Development

No branches or pull requests

3 participants