diffusionbee-stable-diffusion-ui icon indicating copy to clipboard operation
diffusionbee-stable-diffusion-ui copied to clipboard

unrecognized/extended character crash

Open deekayw0n opened this issue 2 years ago β€’ 4 comments

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

deekayw0n avatar Nov 18 '22 06:11 deekayw0n

Emoji characters should actually work, and should not trigger crashes. I remember using some emoji a while back ago, it was working.

enzyme69 avatar Nov 18 '22 06:11 enzyme69

Maybe a result of a recent change.

Without looking at the code, could be something like a change in behavior around escaping strings?

deekayw0n avatar Nov 18 '22 18:11 deekayw0n

This has been around for a while. SD is trained on other languages, so η”· (man) works. However, DiffusionBee will crash.

Leland avatar Nov 18 '22 23:11 Leland

In older version, I could just type this in the prompt: πŸ¦†πŸπŸ¦–πŸ„πŸ„πŸ„πŸŒͺοΈπŸ‘€πŸ‘οΈπŸ‘€πŸ‘οΈπŸ’‹πŸ‘„πŸ«¦πŸ‘»πŸ’©

enzyme69 avatar Nov 23 '22 23:11 enzyme69