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

Nineslice object bug #6804

Closed
IvanDem opened this issue Apr 26, 2024 · 1 comment · May be fixed by jonesrussell/nishman#6
Closed

Nineslice object bug #6804

IvanDem opened this issue Apr 26, 2024 · 1 comment · May be fixed by jonesrussell/nishman#6

Comments

@IvanDem
Copy link

IvanDem commented Apr 26, 2024

Version

  • Phaser Version:
    Phaser Version: 3.80.1 and earlier
  • Operating system:
    Windows 11
  • Browser:
    Chrome

Description

Occasionally, my game encounters a loading issue, after adding a nineslice object to my language menu, which creates on game load. This problem surfaced recently and has been noticed by two different testers. The bug occurs randomly, but once triggered, a page refresh isn't effective in resolving it. The issue persists as long as the nineslice object is being created. To resolve it, users need to restart Chrome.
Screenshot 2024-04-26 at 10 11 59

Additional Information

Might be need to add extra condition here:
https://github.com/phaserjs/phaser/blob/master/src/gameobjects/nineslice/NineSlice.js
if (frame.scale9 && !skipScale9) => if (frame && frame.scale9 && !skipScale9)
if (textureFrame.scale9) = > if (textureFrame && textureFrame.scale9)

A second testers told be, he stopped to got any loading freeze after he updated GPU driver and chrome, the first one still have this sometimes.
I've asked to test it out phaser's 3 labs nineslice examples. Will update once got more information

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants