Project 'savoirfairelinux/ring-lrc' was moved to 'savoirfairelinux/jami-libclient'. Please update any links and bookmarks that may still have the old path.
[SIGABRT] QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase
Local build shows exactly the same error. Jami crashes when I'm trying to do anything with a contact that is not yet on my list: send text, initiate call or add itto my list. I have currently one contact in my list. I also copied my account from linux (fedore31/gnome) laptop to mobile phone (android/installed from f-droid).
Video call (outgoing and incoming) with contacts added from paired device (android) are causing a crash after the connection is established and audio call stays active even after crash - I can hear the other side and process /usr/lib64/ring/dring doesn't stop. Restarting jami gets me back into the active call.
Edit: I never mentioned I use gnome (xorg). I switched temporarly to wayland, but jami is completely unusable under wayland (window is not refreshing properly, ghosting, etc), so I couldn't properly test the QFontDatabase issue.
Please close the bug if you can't replicate it. It's most likely my local setup problem as clean jami install in virtual machine works as expected, including default wayland.
My guess after a very quic k &rough debugging: the error is triggered in lrc when it tries to create/retrive avatar image. It uses Qt, Qt tries to show some error, but there is no GUI, so no QGuiApplication has been created.
That's the line that triggers the error:
const bool ret = qimage.loadFromData(QByteArray::fromBase64(image.toUtf8()), 0);
It's in storagehelper.cpp in function compressedAvatar
This doesn't make sense. Nothing should be related to QFontDatabase there. Nothing in the Qt doc show this.
The only part in the codebase where QFontDatabase is called is "QFontDatabase::addApplicationFont(":/images/FontAwesome.otf");" but it's the windows client, not the gnome one.
(jami-gnome:4459): Gtk-WARNING **: 14:46:55.457: Failed to measure available space: The specified location is not supported
(jami-gnome:4459): Gtk-WARNING **: 14:46:55.461: Failed to measure available space: The specified location is not supported
(jami-gnome:4459): Gtk-WARNING **: 14:46:55.461: Failed to measure available space: The specified location is not supported
(jami-gnome:4459): Gtk-WARNING **: 14:46:55.461: Failed to measure available space: The specified location is not supported
(jami-gnome:4459): Gtk-WARNING **: 14:46:55.462: Failed to measure available space: The specified location is not supported
(jami-gnome:4459): Gdk-CRITICAL *: 14:46:55.829: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
could not open shm area "" , shm_open failed: Invalid argument
QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase
/usr/bin/jami: line 46: 4459 Aborted (core dumped) jami-gnome $
`
Ok, so I think it's a bug from libpbf. This behavior doesn't make sense.
However, to avoid to use that lib, I made a patch. I can't reproduce with Fedora 31, but if somebody is able to test:
Please change the content of your file for Jami in /etc/yum.repos.d/ (generally ring-nightly.repo)
In that file. Replace "nightly", by "internal"
I built a patched version just for you. So, you need to update (dnf update) and then, after opening Jami check the about page to see if the version is built on April 14. (or if it crashes, look at the "Jami GNOME client version:")
Ping me if it's working (or not)
Change the .repo file again to use nightly channel :)
It now works well and I had a good video call with it. I can't get echo cancelling to work I expect that is the pulse sound system. Many thanks again.
If you can't reproduce then it may be because it is fedora 31 cinnamon https://spins.fedoraproject.org/cinnamon/