Bug 470977 - Neochat crashes on startup
Summary: Neochat crashes on startup
Status: RESOLVED UPSTREAM
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 23.04.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-06-13 12:48 UTC by Daniel Ziltener
Modified: 2023-10-16 07:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (3.29 KB, text/plain)
2023-10-16 07:38 UTC, toscalix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ziltener 2023-06-13 12:48:19 UTC
Application: neochat (23.04.2)

Qt Version: 5.15.9
Frameworks Version: 5.107.0
Operating System: Linux 5.14.21-150500.53-default x86_64
Windowing System: Wayland
Distribution: "openSUSE Leap 15.5"
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
It fails reliably on every startup. Here is the console output it gives me:

```
Reading access token from the keychain for "@zilti:matrix.org"
quotient.e2ee: End-to-end encryption (E2EE) support is turned off.
quotient.main: No state cache file "/home/zilti/.cache/KDE/neochat/@zilti_matrix.org/state.json"
quotient.main: Major version of the cache file is 0 but 11 is required; discarding the cache
quotient.jobs.sync: Sent GET https://matrix-client.matrix.org/_matrix/client/r0/sync
quotient.jobs: Sent GET https://matrix-client.matrix.org/_matrix/client/r0/capabilities
quotient.jobs.sync: 200 <- GET https://matrix-client.matrix.org/_matrix/client/r0/sync
KCrash: Application 'neochat' crashing...
KCrash: Attempting to start /usr/lib/drkonqi
kf5idletime_wayland: This plugin does not support polling idle time
```

The crash can be reproduced every time.

-- Backtrace:
Application: NeoChat (neochat), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fe2314fcdd6 in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007fe2314fd76d in QJsonObject::value(QLatin1String) const () from /usr/lib64/libQt5Core.so.5
#6  0x00007fe23302e0a4 in Quotient::RoomEvent::senderId() const () from /usr/lib64/libQuotient.so.0.6
#7  0x000055b8a06ca979 in ?? ()
#8  0x000055b8a06cac8c in ?? ()
#9  0x00007fe23300514c in Quotient::Room::Private::addNewMessageEvents(std::vector<std::unique_ptr<Quotient::RoomEvent, std::default_delete<Quotient::RoomEvent> >, std::allocator<std::unique_ptr<Quotient::RoomEvent, std::default_delete<Quotient::RoomEvent> > > >&&) () from /usr/lib64/libQuotient.so.0.6
#10 0x00007fe2330059f6 in Quotient::Room::updateData(Quotient::SyncRoomData&&, bool) () from /usr/lib64/libQuotient.so.0.6
#11 0x00007fe232fdcef0 in Quotient::Connection::Private::consumeRoomData(std::vector<Quotient::SyncRoomData, std::allocator<Quotient::SyncRoomData> >&&, bool) () from /usr/lib64/libQuotient.so.0.6
#12 0x00007fe232fdd0ba in Quotient::Connection::onSyncSuccess(Quotient::SyncData&&, bool) () from /usr/lib64/libQuotient.so.0.6
#13 0x00007fe232fdd160 in ?? () from /usr/lib64/libQuotient.so.0.6
#14 0x00007fe2314b1b9b in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007fe232fbfa82 in Quotient::BaseJob::success(Quotient::BaseJob*) () from /usr/lib64/libQuotient.so.0.6
#16 0x00007fe233042aa3 in Quotient::BaseJob::finishJob() () from /usr/lib64/libQuotient.so.0.6
#17 0x00007fe2314b1b9b in ?? () from /usr/lib64/libQt5Core.so.5
#18 0x00007fe23286ac17 in ?? () from /usr/lib64/libQt5Network.so.5
#19 0x00007fe232906b99 in ?? () from /usr/lib64/libQt5Network.so.5
#20 0x00007fe2314a863b in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#21 0x00007fe2320e053c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#22 0x00007fe2320e72ff in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007fe2314741a3 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#24 0x00007fe231476bc1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#25 0x00007fe2314d7443 in ?? () from /usr/lib64/libQt5Core.so.5
#26 0x00007fe23024582b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007fe230245bd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007fe230245c5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007fe2314d6aec in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#30 0x00007fe231472a0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#31 0x00007fe23147c247 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#32 0x000055b8a05aac88 in main ()
[Inferior 1 (process 11757) detached]

Reported using DrKonqi
Comment 1 Tobias Fella 2023-06-13 17:42:21 UTC
This is most likely already fixed in a newer version of libQuotient
Comment 2 toscalix 2023-10-16 07:38:34 UTC
Created attachment 162345 [details]
New crash information added by DrKonqi

neochat (23.01) using Qt 5.15.8

This bug is happening to me with the latest released build from Flathub

-- Backtrace (Reduced):
#5  0x00007f4baf01961d in QJsonObject::value(QLatin1String) const () from /usr/lib64/libQt5Core.so.5
#6  0x00007f4bb0b4b0a4 in Quotient::RoomEvent::senderId() const () from /usr/lib64/libQuotient.so.0.6
[...]
#9  0x00007f4bb0b2214c in Quotient::Room::Private::addNewMessageEvents(std::vector<std::unique_ptr<Quotient::RoomEvent, std::default_delete<Quotient::RoomEvent> >, std::allocator<std::unique_ptr<Quotient::RoomEvent, std::default_delete<Quotient::RoomEvent> > > >&&) () from /usr/lib64/libQuotient.so.0.6
#10 0x00007f4bb0b229f6 in Quotient::Room::updateData(Quotient::SyncRoomData&&, bool) () from /usr/lib64/libQuotient.so.0.6
#11 0x00007f4bb0af9ef0 in Quotient::Connection::Private::consumeRoomData(std::vector<Quotient::SyncRoomData, std::allocator<Quotient::SyncRoomData> >&&, bool) () from /usr/lib64/libQuotient.so.0.6