GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Editor crash - text color badly handled by Pixi

Open ghost opened this issue 2 years ago • 2 comments

Describe what you were doing when the crash happened

No response

GDevelop version

5.3.181-4d8cf5692241dda74b855041be3f6a53c590a832

Platform info

System Version: Unknown system version (web-app), Arch: Unknown architecture (web-app), User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36, Platform: Win32

Additional error context

uniqueErrorId: 6943de88-d55f-44f7-b9f2-34638d7634d3

Error: Unable to convert color NaN at e.value (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.js:2:62020) at e.set (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.js:2:58149) at e.value (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.js:2:57829) at n (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.js:2:531174) at u (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.js:2:531266) at e.set (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.js:2:527212) at c (https://editor.gdevelop.io/static/js/1859.3947551d.chunk.j...

Additional component context

in n
in t
in Unknown
in div
in div
in Unknown
in Measure
in zk
in ow
in div
in div
in t
in div
in t
in n
in ForwardRef
in div
in l
in n
in n
in t
in Unknown
in pM
in div
in n
in Ga
in div
in CO
in Unknown
in Ke
in f
in u
in v
in m
in j
in h
in h
in Z
in d
in X
in n
in t
in ge
in n
in We
in et
in t
in Unknown
in Unknown
in v
in pt
in t
in r
in n
in u
in l
in n
in Dr...

ghost avatar Nov 30 '23 21:11 ghost

The error seems to be coming from PixiJS, when trying to get the color to display for a Text. https://github.com/pixijs/pixijs/blob/c04c09c50874fef9296555af23e25fe58cc808a9/packages/text/src/TextStyle.ts#L472

Maybe a color set that was wrong and not caught properly?

As the creator of the issue has deleted their Github account, I'm not sure we'll be able to get more info...

ClementPasteau avatar Dec 01 '23 09:12 ClementPasteau

Hi @ghost, Are you still having this issue?

AlexandreSi avatar Dec 04 '23 09:12 AlexandreSi