Bug 466207

Summary: Crash right after start/login
Product: [Applications] NeoChat Reporter: Steve Cossette <farchord>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED WORKSFORME    
Severity: crash CC: boba_fit, carl
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Steve Cossette 2023-02-21 20:11:50 UTC
Application: neochat (23.01)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.11-200.fc37.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora release 37 (Thirty Seven)"
DrKonqi: 5.27.0 [KCrashBackend]

-- Information about the crash:
Right after logging in/starting Neochat, maybe at most two minutes later, the app crashes.

The reporter is unsure if this crash is reproducible.

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

[KCrash Handler]
#4  0x00007f54f12dce24 in Quotient::Connection::userId() const () from /lib64/libQuotient.so.0.7
#5  0x000055a58bacdd1d in QtPrivate::QFunctorSlotObject<Login::init()::{lambda()#3}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#6  0x00007f54ef8d0e96 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#7  0x00007f54f12d5db1 in Quotient::Connection::Private::completeSetup(QString const&) () from /lib64/libQuotient.so.0.7
#8  0x00007f54f12fa89b in QtPrivate::QFunctorSlotObject<Quotient::Connection::Private::loginToServer<QString const&, std::nullopt_t const&, char const (&) [1], QByteArray const&, QString const&, QString const&>(QString const&, std::nullopt_t const&, char const (&) [1], QByteArray const&, QString const&, QString const&)::{lambda()#1}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /lib64/libQuotient.so.0.7
#9  0x00007f54ef8d0e96 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#10 0x00007f54f12bf7d6 in Quotient::BaseJob::success(Quotient::BaseJob*) () from /lib64/libQuotient.so.0.7
#11 0x00007f54f13546a1 in Quotient::BaseJob::finishJob() () from /lib64/libQuotient.so.0.7
#12 0x00007f54ef8d0e96 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#13 0x00007f54f0e0a2d8 in QNetworkReplyHttpImplPrivate::finished() () from /lib64/libQt5Network.so.5
#14 0x00007f54ef8c8134 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#15 0x00007f54f05aed62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f54ef89d4e8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007f54ef8a0854 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#18 0x00007f54ef8eeb07 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#19 0x00007f54ee916cbf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#20 0x00007f54ee96c598 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#21 0x00007f54ee913f40 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#22 0x00007f54ef8ee5fa in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#23 0x00007f54ef89bf3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#24 0x00007f54ef8a4002 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#25 0x000055a58b9897a5 in main ()
[Inferior 1 (process 102828) detached]

The reporter indicates this bug may be a duplicate of or related to bug 465143.

Reported using DrKonqi
Comment 1 Steve Cossette 2023-02-21 20:12:29 UTC
Clarification: This happens everytime the app is started.
Comment 2 Boba Fit 2023-04-25 08:23:14 UTC
I got similar effect, when using neochat on arch linux:

neochat 23.04.0-1
libquotient-encryption 0.7.1-1 (AUR)

```
$ neochat 
quotient.events: "m.key.*" is already mapped to KeyVerificationEvent before KeyVerificationEvent; unless the two have different isValid() conditions, the latter class will never be used
Reading access token from the keychain for "@bobafit:example.com"
quotient.e2ee: The fixed buffer source is shared; assuming that the caller is responsible for securely clearing other copies
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
kf.sonnet.core: No language dictionaries for the language: "en_US"
kf.sonnet.core: No language dictionaries for the language: "en_US"
Connected to room "!aaaaaaaaaaaaaaaaaa:example.com" as "@bobafit:example.com"
qrc:/ChatBox.qml:37:5: QML ChatBar: Binding loop detected for property "implicitWidth"
qrc:/ChatBox.qml:37:5: QML ChatBar: Binding loop detected for property "implicitWidth"
qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property "implicitWidth"
qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property "implicitWidth"
qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property "implicitWidth"
qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property "implicitWidth"
file:///usr/lib/qt/qml/org/kde/kirigami.2/templates/InlineMessage.qml:257:13: QML SelectableLabel: Binding loop detected for property "implicitWidth"
qrc:/EmojiDialog.qml:51: TypeError: Cannot read property 'width' of null
qrc:/EmojiDialog.qml:51: TypeError: Cannot read property 'width' of null
quotient.events.messages: Cannot mark an unknown event in "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
quotient.events.messages: Cannot mark an unknown event in "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
quotient.events.messages: Cannot mark an unknown event in "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
quotient.events.messages: Cannot mark an unknown event in "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
file:///usr/lib/qt/qml/org/kde/kirigami.2/Avatar.qml:281:9: QML Image: Media id '' doesn't follow server/mediaId pattern
quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET https://example.com/_matrix/media/v3/thumbnail/example.com/bbbbbbbbbbbbbbbbbbbbbbbb"
quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network reply
quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET https://example.com/_matrix/media/v3/thumbnail/example.com/bbbbbbbbbbbbbbbbbbbbbbbb"
quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network reply
quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET https://example.com/_matrix/media/v3/thumbnail/example.com/bbbbbbbbbbbbbbbbbbbbbbbb"
quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network reply
quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET https://example.com/_matrix/media/v3/thumbnail/example.com/bbbbbbbbbbbbbbbbbbbbbbbb"
quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network reply
quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET https://example.com/_matrix/media/v3/thumbnail/example.com/cccccccccccccccccccccccc"
quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network reply
quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET https://example.com/_matrix/media/v3/thumbnail/example.com/cccccccccccccccccccccccc"
quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network reply
21 -- exe=/usr/bin/neochat
13 -- platform=xcb
11 -- display=:0
16 -- appname=neochat
17 -- apppath=/usr/bin
10 -- signal=11
10 -- pid=11586
19 -- appversion=23.04.0
20 -- programname=NeoChat
31 -- bugaddress=submit@bugs.kde.org
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = neochat path = /usr/bin pid = 11586
KCrash: Arguments: /usr/bin/neochat 
KCrash: Attempting to start /usr/lib/drkonqi
failed to signal syncobj 12
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Aborted (core dumped)
```
Comment 3 Tobias Fella 2023-04-25 19:58:34 UTC
(In reply to Boba Fit from comment #2)
> I got similar effect, when using neochat on arch linux:
> 
> neochat 23.04.0-1
> libquotient-encryption 0.7.1-1 (AUR)
> 
> ```
> $ neochat 
> quotient.events: "m.key.*" is already mapped to KeyVerificationEvent before
> KeyVerificationEvent; unless the two have different isValid() conditions,
> the latter class will never be used
> Reading access token from the keychain for "@bobafit:example.com"
> quotient.e2ee: The fixed buffer source is shared; assuming that the caller
> is responsible for securely clearing other copies
> Qt Quick Layouts: Detected recursive rearrange. Aborting after two
> iterations.
> Qt Quick Layouts: Detected recursive rearrange. Aborting after two
> iterations.
> kf.sonnet.core: No language dictionaries for the language: "en_US"
> kf.sonnet.core: No language dictionaries for the language: "en_US"
> Connected to room "!aaaaaaaaaaaaaaaaaa:example.com" as "@bobafit:example.com"
> qrc:/ChatBox.qml:37:5: QML ChatBar: Binding loop detected for property
> "implicitWidth"
> qrc:/ChatBox.qml:37:5: QML ChatBar: Binding loop detected for property
> "implicitWidth"
> qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property
> "implicitWidth"
> qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property
> "implicitWidth"
> qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property
> "implicitWidth"
> qrc:/ChatBar.qml:94:18: QML ScrollView: Binding loop detected for property
> "implicitWidth"
> file:///usr/lib/qt/qml/org/kde/kirigami.2/templates/InlineMessage.qml:257:13:
> QML SelectableLabel: Binding loop detected for property "implicitWidth"
> qrc:/EmojiDialog.qml:51: TypeError: Cannot read property 'width' of null
> qrc:/EmojiDialog.qml:51: TypeError: Cannot read property 'width' of null
> quotient.events.messages: Cannot mark an unknown event in
> "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
> quotient.events.messages: Cannot mark an unknown event in
> "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
> quotient.events.messages: Cannot mark an unknown event in
> "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
> quotient.events.messages: Cannot mark an unknown event in
> "!aaaaaaaaaaaaaaaaaa:example.com" as fully read
> file:///usr/lib/qt/qml/org/kde/kirigami.2/Avatar.qml:281:9: QML Image: Media
> id '' doesn't follow server/mediaId pattern
> quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET
> https://example.com/_matrix/media/v3/thumbnail/example.com/
> bbbbbbbbbbbbbbbbbbbbbbbb"
> quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network
> reply
> quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET
> https://example.com/_matrix/media/v3/thumbnail/example.com/
> bbbbbbbbbbbbbbbbbbbbbbbb"
> quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network
> reply
> quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET
> https://example.com/_matrix/media/v3/thumbnail/example.com/
> bbbbbbbbbbbbbbbbbbbbbbbb"
> quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network
> reply
> quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET
> https://example.com/_matrix/media/v3/thumbnail/example.com/
> bbbbbbbbbbbbbbbbbbbbbbbb"
> quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network
> reply
> quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET
> https://example.com/_matrix/media/v3/thumbnail/example.com/
> cccccccccccccccccccccccc"
> quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network
> reply
> quotient.jobs.thumbnail: Won't proceed with the abandoned request: "GET
> https://example.com/_matrix/media/v3/thumbnail/example.com/
> cccccccccccccccccccccccc"
> quotient.jobs.thumbnail: "GetContentThumbnailJob" stopped with empty network
> reply
> 21 -- exe=/usr/bin/neochat
> 13 -- platform=xcb
> 11 -- display=:0
> 16 -- appname=neochat
> 17 -- apppath=/usr/bin
> 10 -- signal=11
> 10 -- pid=11586
> 19 -- appversion=23.04.0
> 20 -- programname=NeoChat
> 31 -- bugaddress=submit@bugs.kde.org
> KCrash: crashing... crashRecursionCounter = 2
> KCrash: Application Name = neochat path = /usr/bin pid = 11586
> KCrash: Arguments: /usr/bin/neochat 
> KCrash: Attempting to start /usr/lib/drkonqi
> failed to signal syncobj 12
> Unable to start Dr. Konqi
> Re-raising signal for core dump handling.
> Aborted (core dumped)
> ```

That looks unrelated; using the AUR version of libquotient with the normal arch neochat is probably a bad idea
Comment 4 Tobias Fella 2023-04-28 12:20:02 UTC
Can you check if this still happens with 23.04?
Comment 5 Bug Janitor Service 2023-05-13 03:46:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-05-28 03:45:27 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!