diffusionbee-stable-diffusion-ui
diffusionbee-stable-diffusion-ui copied to clipboard
unrecognized/extended character crash
Version: 1.4.3 (0014)
When a prompt has an unrecognized character app crashes with an error message like:
Backend quit unexpectedly. Could not cast value of type 'NSNull' (0x1f28a5380) to 'NSNumber' (0x1f28a15a8).
For example, "Twitterβs Slow and Painful End"
Notice the apostrophe in the prompt is β (Unicode: U+2019, UTF-8: E2 80 99) rather than ' (Unicode: U+0027, UTF-8: 27).
You can also naturally trigger a similar crash with an emoji π (Unicode: U+1F600, UTF-8: F0 9F 98 80)
Expected Result:
DiffusionBee gracefully handling or ignoring unexpected characters
Emoji characters should actually work, and should not trigger crashes. I remember using some emoji a while back ago, it was working.
Maybe a result of a recent change.
Without looking at the code, could be something like a change in behavior around escaping strings?
This has been around for a while. SD is trained on other languages, so η· (man) works. However, DiffusionBee will crash.
In older version, I could just type this in the prompt: π¦ππ¦ππππͺοΈπποΈπποΈπππ«¦π»π©