Nheko-Reborn / nheko

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

Crash on v0.10.0 Debian Bullseye #1181

Closed Sadoon-AlBader closed 2 years ago

Sadoon-AlBader commented 2 years ago

I compiled v0.10.0 from source on Debian Bullseye and it seems to work fine on ppc64le (funnily) and crash on x86_64, tested multiple machines with the same issue.

[2022-09-06 13:09:34.229] [ui] [info] Restoring window size 1534x851
[2022-09-06 13:09:34.306] [ui] [info] jdenticon plugin not found.
[2022-09-06 13:09:34.502] [ui] [info] starting nheko 0.10.0-7df260f5
[2022-09-06 13:09:34.503] [ui] [info] User already signed in, showing chat page
[2022-09-06 13:09:34.503] [ui] [info] Switching to chat page
[2022-09-06 13:09:34.567] [ui] [info] Unity service available: false
[2022-09-06 13:09:34.572] [qml] [warning] qrc:/qml/ChatPage.qml:104:17: QML RoomList: Binding loop detected for property "implicitWidth" (qrc:/qml/ChatPage.qml:104, )
[2022-09-06 13:09:34.572] [qml] [warning] qrc:/qml/ChatPage.qml:104:17: QML RoomList: Binding loop detected for property "implicitWidth" (qrc:/qml/ChatPage.qml:104, )

1132 might be related

deepbluev7 commented 2 years ago

Is that fixed in 0.10.1?

squid-f commented 2 years ago

Hi. On Mageia 8, I had crashes while signing in to the Matrix account, during the first start. After recompiling all the modules required to build (coeurl, mtxclient,…) and adding nheko-zsh-completion as recommended package (like openSUSE), there is no more crash. The package is now released (community package) and used by some people.

Sadoon-AlBader commented 2 years ago

Is that fixed in 0.10.1?

Doesn't seem to be for me.

Hi. On Mageia 8, I had crashes while signing in to the Matrix account, during the first start. After recompiling all the modules required to build (coeurl, mtxclient,…) and adding nheko-zsh-completion as recommended package (like openSUSE), there is no more crash. The package is now released (community package) and used by some people.

Thanks I'll try that.

Sadoon-AlBader commented 2 years ago

It still doesn't work, I think this info might be helpful to the devs:

[2022-09-08 13:28:23.406] [ui] [info] Restoring window size 1214x998
[2022-09-08 13:28:23.435] [ui] [info] jdenticon plugin not found.
[2022-09-08 13:28:23.629] [ui] [debug] CompletionProxyModel: build trie: 19.291349 ms
[2022-09-08 13:28:23.670] [ui] [info] starting nheko 0.10.1-143d7c9b
[2022-09-08 13:28:23.671] [ui] [info] User already signed in, showing chat page
[2022-09-08 13:28:23.671] [db] [debug] setting up cache
[2022-09-08 13:28:23.671] [db] [debug] Reading 'm.cross_signing.master'
[2022-09-08 13:28:23.671] [ui] [info] Switching to chat page
[2022-09-08 13:28:23.697] [ui] [debug] Profile requested
[2022-09-08 13:28:23.719] [ui] [critical] Returning 0 spaces
[2022-09-08 13:28:23.735] [ui] [info] Unity service available: false
[2022-09-08 13:28:23.739] [qml] [warning] qrc:/qml/ChatPage.qml:104:17: QML RoomList: Binding loop detected for property "implicitWidth" (qrc:/qml/ChatPage.qml:104, )
[2022-09-08 13:28:23.739] [qml] [warning] qrc:/qml/ChatPage.qml:104:17: QML RoomList: Binding loop detected for property "implicitWidth" (qrc:/qml/ChatPage.qml:104, )
[2022-09-08 13:28:23.782] [qml] [debug] static bool LibSecretKeyring::findPassword(const QString&, const QString&, QKeychain::JobPrivate*) (:0, )
terminate called after throwing an instance of 'mtx::crypto::olm_exception'
  what():  identity_keys: account == nullptr

This happens if I press the settings button (nothing shows up in chats anyways)

I compiled with these options:

cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DUSE_BUNDLED_OLM=Y -DUSE_BUNDLED_MTXCLIENT=Y -DUSE_BUNDLED_COEURL=Y -DVOIP=N -DUSE_BUNDLED_LMDBXX=Y

I also cannot find the hunter files anywhere in the home directory or the build directory, I'm not sure where they would be so I could delete them. They're not in ~/.hunter which is where I assume they would be.

deepbluev7 commented 2 years ago

That sounds like your database/secure storage is corrupt. Maybe delete the database and settings file and login from scratch? (Or try a different profile)

squid-f commented 2 years ago

Might not be as important in this context, but just to say I don’t use any bundle for my build.

Sadoon-AlBader commented 2 years ago

That sounds like your database/secure storage is corrupt. Maybe delete the database and settings file and login from scratch? (Or try a different profile)

I assume that means "\~/.cache/nheko" and "\~/.config/nheko"?

I already tried deleting those multiple times before posting :(

deepbluev7 commented 2 years ago

I think it is mostly the database, which is in ~/.local/share/nheko

Sadoon-AlBader commented 2 years ago

I think it is mostly the database, which is in ~/.local/share/nheko

Unfortunately deleting that did not work either.

deepbluev7 commented 2 years ago

I'm assuming 0.10.2 didn't help either?

Sadoon-AlBader commented 2 years ago

I'm assuming 0.10.2 didn't help either?

Just tested 0.10.2-fixes and it works fine.