-
Notifications
You must be signed in to change notification settings - Fork 916
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
Editor crash - BBText crash because of undefined style (reading 'fill') #6180
Comments
Thanks for reporting @VanCastar It could be because the upgrade of Pixi to 7 changed the interface of the TextStyle? Unsure. |
Unfortunately no, as I don’t have that particular project anymore.. |
Had a similar issue recently so posting on this one to track the analysis. It is hard to prevent bad formatting directly in GDevelop, as the parsing of the text is done inside the library, so this error may happen again if the text used is not recognized by the library. In conclusion, if someone has this problem again, check the text used for the BBText and ensure it matches the format suggested on the wiki page: https://wiki.gdevelop.io/gdevelop5/objects/bbtext/ |
Describe what you were doing when the crash happened
I opened up The old and then working Miles Apart project.
Then this happened when trying to start the main scene.
Login etc worked fine but main menu scene was broken.
Last time I ran it via editor was in Feb 2023 as a working project and nothing has changed after that but GDevelop version.
I also tried to update all extensions but no change.
GDevelop version
5.3.186-0a6b0dc78508b65a61cf5bcad98827d8998a80e2
Platform info
System Version: 10.0.19045, Arch: x64, User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) GDevelop5/5.3.186 Chrome/100.0.4896.143 Electron/18.2.2 Safari/537.36, Platform: win32
Additional error context
uniqueErrorId: c9a8da99-e25b-4553-a094-5efae00e8fd9
TypeError: Cannot read properties of undefined (reading 'fill')
at h.getFontString (C:\Users\Ramiel\AppData\Local\Programs\GDevelop\resources\GDJS\Runtime\Extensions\BBText\pixi-multistyle-text\dist\pixi-multistyle-text.umd.js:1:4971)
at h.wordWrap (C:\Users\Ramiel\AppData\Local\Programs\GDevelop\resources\GDJS\Runtime\Extensions\BBText\pixi-multistyle-text\dist\pixi-multistyle-text.umd.js:1:11589)
at h.updateText (C:\Users\Ramiel\AppData\Local\Programs\GDevelop\resources\GDJS\Runtime\Extensions\BBText\pixi-multistyle-text\dist\pixi-multistyle-text.umd.js:1:5629)
at h.get (file...
Additional component context
The text was updated successfully, but these errors were encountered: