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

Infinite loop when accessing to texture.source #348

Closed
Marine-Dos-Wiztivi opened this issue Oct 20, 2021 · 0 comments · Fixed by #451 or #514
Closed

Infinite loop when accessing to texture.source #348

Marine-Dos-Wiztivi opened this issue Oct 20, 2021 · 0 comments · Fixed by #451 or #514

Comments

@Marine-Dos-Wiztivi
Copy link
Contributor

Marine-Dos-Wiztivi commented Oct 20, 2021

After discussion on #336 topic, I modify my code to access to texture.source.renderInfo as suggested by @g-zachar. It was working fine until I tried to update the text.
Here a jsfiddle : https://jsfiddle.net/mz48725p/

I just add a timeout to update the text and I get an infinite loop :
Uncaught RangeError: Maximum call stack size exceeded at FlexTarget.get flexParent [as flexParent] (lightning.js:2022) at FlexTarget.isFlexItemEnabled (lightning.js:1997) at FlexTarget.isEnabled (lightning.js:1991) at ElementCore.hasFlexLayout (lightning.js:4181) at ElementCore.setDimensions (lightning.js:3101) at StateMachineRouter._updateDimensions (lightning.js:7276) at StateMachineRouter._setDisplayedTexture (lightning.js:7220) at lightning.js:4597 at Set.forEach (<anonymous>) at TextTexture._replaceTextureSource (lightning.js:4595)

Replacing source by _source allow me to by pass the issue but it is not pretty good.

Regards

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 a pull request may close this issue.

1 participant