Crash Linux Mint (Unicode?)

Hello,

A user running Linux Mint 21.2 is experiencing a crash (Segmentation fault (core dumped)) that I am unable to reproduce on other operating systems: macOS, Windows, Ubuntu. In Debug mode, the application does not crash but generates assertions. Could this be related to font management?

JUCE Assertion failure in juce_UnicodeGenerated.cpp:103
JUCE Assertion failure in juce_UnicodeGenerated.cpp:103
JUCE Assertion failure in juce_UnicodeGenerated.cpp:103
JUCE Assertion failure in juce_UnicodeGenerated.cpp:103
JUCE Assertion failure in juce_UnicodeGenerated.cpp:103
JUCE Assertion failure in juce_UnicodeGenerated.cpp:103
JUCE Assertion failure in juce_SimpleShapedText.cpp:310
JUCE Assertion failure in juce_SimpleShapedText.cpp:310
JUCE Assertion failure in juce_SimpleShapedText.cpp:310
JUCE Assertion failure in juce_SimpleShapedText.cpp:310

It looks like something is going wrong when attempting to display a particular string. However, I think that the program should be able to continue without crashing even after hitting those assertions, so those could be a distraction from the real bug.

If you’re able to trigger the assertions locally, please could you let us know what string you’re trying to display when the assertions are fired? It would be interesting to know whether this is a valid unicode string - if it’s malformed, this is more likely to cause crashes.

Additionally, I’d suggest asking your user what they’re doing to trigger the crash, and in particular whether they’ve entered a specific string containing new emoji or other characters from a very recent Unicode version.

It’s hard to say because the application crashes on startup (and there’s a lot of text in the application) and I can’t reproduce the problem (but I probably don’t have the same system as the user) :weary_face:.

However, I can send the user some versions to test, which will give me a little more information.

I wonder if it’s the introduction of “é” that has been converted to \xc3\xa9 that is causing the problem. The previous version does not display this character and the user does not encounter any crashes with it. Furthermore, JUCE assertions do not appear on other operating systems (macOS, Windows & Ubuntu).