Closed brendon1555 closed 11 months ago
I just noticed you have swapped out the deep equal package again since the last release. Apologies if I have jumped the gun on this issue if it will be solved with that change. If so, any ETA on a release including that?
I've tried changing that again, but it's not related to that. The code hangs at the setTimeout
inside the play
code of the Container
class, without entering there.
I don't know why, since it's something that was already executed on the first load. It's something that I can't debug on the engine library since the code there works without issues.
I don't have an ETA about this, since it's a strange bug and I haven't figured out a way to search for similar issues.
I thought it was the compare library for the options changing, since there are recursive object that need to be ignored during the compare, but the component is never triggered by changes.
I attempted some debugging of my own and it appears to be getting into an infinite loop on the tsparticles Canvas mutationObserver here: https://github.com/matteobruni/tsparticles/blob/main/engine/src/Core/Canvas.ts#L82
I can look a bit deeper later on tonight and see if I get any further.
Thanks, that was enough for me. I didn't notice the infinite loop there. I don't understand why the MutationObserver object didn't disconnect correctly, but I've changed its management and now it resets at every refresh or stop/start cycle. A fix will be released soon.
Awesome! Glad I could help. Looking forward to the release.
https://github.com/matteobruni/tsparticles/pull/5071 this is the PR that will fix this issue
Updating the engine (2.12.0) should fix this.
Looks like the issue mentioned in this ticket: https://github.com/tsparticles/react/issues/21 is still an issue in the current release
2.11.0
. When I change the theme by either explicitly callingloadTheme
OR switching the browser'sprefers-color-scheme
withauto: true
enabled in the theme, the whole page freezes.The react demo app included in this repo also freezes when clicking one of the theme buttons.
Here is my code in case it helps at all. And I am running this on Windows 11 in both Chrome and Firefox with the issue.