Nheko-Reborn / nheko

Desktop client for Matrix using Qt and C++20.
https://nheko-reborn.github.io/
GNU General Public License v3.0
1.93k stars 201 forks source link

Picking "System Emoji Font" as the emoji font crashes nheko instantly reproduceable #1805

Open Asqiir opened 1 month ago

Asqiir commented 1 month ago

Describe the bug

Picking "System Emoji Font" as the emoji font crashes nheko instantly reproduceable

System:

system: "x86_64-linux", 
multi-user?: yes, 
version: nix-env (Lix, like Nix) 2.91.0
System type: x86_64-linux
Additional system types: aarch64-linux, i686-linux
Features: gc, signed-caches

nheko installed via nixos

To Reproduce

Open nheko. Got to the settings. At "Emoji font family" pick "System emoji font" (it's the first option).

nheko instantly crashes.

What happened?

nehko crashes

Expected behavior

nheko not crashing, maybe a dialog saying sth like "there is no system emoji font"; or the option to pick that not existing when there is no such font.

Screenshots

No response

Version

0.12.0

Operating system

Linux

Installation method

Some repository (AUR, homebrew, distribution repository, PPA, etc)

Qt version

No response

C++ compiler

No response

Desktop Environment

KDE6 on wayland

Did you use profiles?

Relevant log output

No response

Backtrace

No response

amano-kenji commented 5 days ago
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Error: signal 6:
/usr/bin/nheko(_Z17stacktraceHandleri+0x3b)[0x55f686d109bb]
/usr/lib64/libc.so.6(+0x3c2a0)[0x7ff92cce72a0]
/usr/lib64/libc.so.6(+0x8c35c)[0x7ff92cd3735c]
/usr/lib64/libc.so.6(gsignal+0x16)[0x7ff92cce71f6]
/usr/lib64/libc.so.6(abort+0xd7)[0x7ff92cccf8f7]
/usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6(+0x9ff50)[0x7ff92d03af50]
/usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6(+0xb1ecc)[0x7ff92d04cecc]
/usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6(+0xb1f37)[0x7ff92d04cf37]
/usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6(+0xb2197)[0x7ff92d04d197]
/usr/lib64/libQt6Core.so.6(_Z10qTerminatev+0x0)[0x7ff92d66a13f]
/usr/lib64/libQt6Core.so.6(+0xa5ea1)[0x7ff92d658ea1]
/usr/lib64/libQt6Core.so.6(+0x11c8e0)[0x7ff92d6cf8e0]
/usr/lib64/libQt6Core.so.6(+0x13ea3b)[0x7ff92d6f1a3b]
/usr/lib64/libQt6Core.so.6(+0x17ae90)[0x7ff92d72de90]
/usr/lib64/libQt6Core.so.6(+0x17b18a)[0x7ff92d72e18a]
/usr/lib64/libQt6Core.so.6(_ZN9QSettings4syncEv+0x12)[0x7ff92d6be152]
/usr/bin/nheko(_ZN12UserSettings4saveEv+0x14b8)[0x55f686cdc948]
/usr/bin/nheko(_ZN17UserSettingsModel7setDataERK11QModelIndexRK8QVarianti+0xe04)[0x55f686ce35e4]
/usr/lib64/libQt6QmlModels.so.6(+0x2fe53)[0x7ff92c2aae53]
/usr/lib64/libQt6QmlModels.so.6(+0x43a9f)[0x7ff92c2bea9f]
/usr/lib64/libQt6Qml.so.6(+0x1b5752)[0x7ff92e560752]
/usr/lib64/libQt6Qml.so.6(_ZN19QQmlPropertyPrivate5writeEP7QObjectRK16QQmlPropertyDataRK8QVariantRK14QQmlRefPointerI15QQmlContextDataE6QFlagsINS2_9WriteFlagEE+0x454)[0x7ff92e540414]
/usr/lib64/libQt6Qml.so.6(_ZN3QV414QObjectWrapper11setPropertyEPNS_15ExecutionEngineEP7QObjectPK16QQmlPropertyDataRKNS_5ValueE+0x105d)[0x7ff92e645c8d]
/usr/lib64/libQt6Qml.so.6(_ZN3QV414QObjectWrapper14setQmlPropertyEPNS_15ExecutionEngineERK14QQmlRefPointerI15QQmlContextDataEP7QObjectPNS_6StringE6QFlagsINS0_4FlagEERKNS_5ValueE+0x10e)[0x7ff92e64667e]
/usr/lib64/libQt6Qml.so.6(_ZN3QV414QObjectWrapper10virtualPutEPNS_7ManagedENS_11PropertyKeyERKNS_5ValueEPS4_+0x18a)[0x7ff92e64683a]
/usr/lib64/libQt6Qml.so.6(_ZN3QV46Lookup14setterFallbackEPS0_PNS_15ExecutionEngineERNS_5ValueERKS4_+0xbc)[0x7ff92e62b9ac]
[0x7ff8e046bf75]
Aborted