Jami unusable after selecting a RTL language
Steps to reproduce (STR):
- Start Jami and select a language that uses a right-to-left (RTL) script (e.g. Arabic)
- Close Jami
- Try to start Jami again
This results in a QML warning being shown and the program crashing with a segfault in libqt-jami:
client [1724439042078][INF][7fffe2577f40]: file:///home/fsimon/jami-client-qt/src/app/mainapplication.cpp:179 Using Qt runtime version: 6.6.1
client [1724439042083][INF][7fffe2577f40]: file:///home/fsimon/jami-client-qt/src/app/systemtray.cpp:110 "notify server name: gnome-shell, vendor: GNOME, version: 42.9, spec: 1.2"
client [1724439042124][INF][7fffe2577f40]: file:///home/fsimon/jami-client-qt/src/app/appsettingsmanager.cpp:106 "Using locale: ar"
14:50:42.250 os_core_unix.c !pjlib 2.13.1 for POSIX initialized
Daemon is running
client [1724439042368][INF][7fffe2577f40]: file:///home/fsimon/jami-client-qt/src/app/screensaver.cpp:54 Screen saver dbus interface: "org.freedesktop.ScreenSaver"
qml [1724439042377][INF][7fffe2577f40]: qrc:/MainApplicationWindow.qml:147 Initializing main view
default [1724439042415][WRN][7fffe2577f40]: unknown:0 QQmlComponent: Cannot create new component instance before completing the previous
Thread 1 "jami" received signal SIGSEGV, Segmentation fault.
0x00007ffff6510abc in QQuickItem::setVisible(bool) () from /usr/lib/libqt-jami/lib/libQt6Quick.so.6
A similar crash also occurs if the user tries to interact with some UI elements (e.g. if they click on the "Start swarm" button) after step 1.
A git bisect shows that this issue was introduced by the following commit: https://review.jami.net/c/jami-client-qt/+/27993