Bug 460000 - Crash when starting a new private message
Summary: Crash when starting a new private message
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-10-05 09:01 UTC by Justin Zobel
Modified: 2022-11-17 13:52 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2022-10-05 09:01:18 UTC
Application: neochat (22.09)
 (Compiled from sources)
Qt Version: 5.15.6
Frameworks Version: 5.99.0
Operating System: Linux 5.19.12-300.fc37.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora release 37 (Thirty Seven)"
DrKonqi: 5.26.80 [KCrashBackend]

-- Information about the crash:
I've been able to replicate this a few times when opoening a chat to @ngraham:kde.org for example

The crash can be reproduced sometimes.

-- Backtrace:
Application: NeoChat (neochat), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#5  0x00007fb5884c0ee2 in Quotient::Room::id() const (this=0x0) at /home/justin/kde/src/libquotient/lib/room.cpp:516
#6  0x00000000004e8638 in RoomManager::enterRoom(NeoChatRoom*) (this=0x615f80 <RoomManager::instance()::_instance>, room=0x0) at /home/justin/kde/src/neochat/src/roommanager.cpp:138
#7  0x000000000046ce19 in Controller::openOrCreateDirectChat(NeoChatUser*) (this=0x615820 <Controller::instance()::_instance>, user=0x2f23930) at /home/justin/kde/src/neochat/src/controller.cpp:645
#8  0x0000000000456d76 in Controller::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x615820 <Controller::instance()::_instance>, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0x7ffdd1cf49b0) at /home/justin/kde/build/neochat/src/neochat_autogen/EWIEGA46WW/moc_controller.cpp:345
#9  0x0000000000457de3 in Controller::qt_metacall(QMetaObject::Call, int, void**) (this=0x615820 <Controller::instance()::_instance>, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0x7ffdd1cf49b0) at /home/justin/kde/build/neochat/src/neochat_autogen/EWIEGA46WW/moc_controller.cpp:640
#10 0x00007fb588ae9913 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const () at /lib64/libQt5Qml.so.5
#11 0x00007fb5889c1a09 in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () at /lib64/libQt5Qml.so.5
#12 0x00007fb5889c3910 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () at /lib64/libQt5Qml.so.5
#13 0x00007fb5889e090d in QV4::Moth::VME::interpret(QV4::CppStackFrame*, QV4::ExecutionEngine*, char const*) () at /lib64/libQt5Qml.so.5
#14 0x00007fb5889e4077 in QV4::Moth::VME::exec(QV4::CppStackFrame*, QV4::ExecutionEngine*) () at /lib64/libQt5Qml.so.5
#15 0x00007fb588975586 in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) () at /lib64/libQt5Qml.so.5
#16 0x00007fb588b04391 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () at /lib64/libQt5Qml.so.5
#17 0x00007fb588ab4d1f in QQmlBoundSignalExpression::evaluate(void**) () at /lib64/libQt5Qml.so.5
#18 0x00007fb588ab64a8 in QQmlBoundSignal_callback(QQmlNotifierEndpoint*, void**) () at /lib64/libQt5Qml.so.5
#19 0x00007fb588ae93df in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () at /lib64/libQt5Qml.so.5
#20 0x00007fb5860db680 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#21 0x00007fb585cef6d6 in QQuickAction::triggered(QObject*) () at /lib64/libQt5QuickTemplates2.so.5
#22 0x00007fb585cf1ebe in QQuickActionPrivate::trigger(QObject*, bool) () at /lib64/libQt5QuickTemplates2.so.5
#23 0x00007fb585cf82eb in QQuickAction::qt_metacall(QMetaObject::Call, int, void**) () at /lib64/libQt5QuickTemplates2.so.5
#24 0x00007fb588ae9913 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const () at /lib64/libQt5Qml.so.5
#25 0x00007fb5889c057d in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () at /lib64/libQt5Qml.so.5
#26 0x00007fb5889c3910 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () at /lib64/libQt5Qml.so.5
#27 0x00007fb5889f3a7e in QV4::Runtime::CallPropertyLookup::call(QV4::ExecutionEngine*, QV4::Value const&, unsigned int, QV4::Value*, int) () at /lib64/libQt5Qml.so.5
#28 0x00007fb550140e05 in  ()
#29 0x0000000000000000 in  ()
[Inferior 1 (process 203430) detached]

Reported using DrKonqi
Comment 1 Marc Deop 2022-10-11 07:09:42 UTC
I encounter the same problem.

Running neochat and libquotient compiled from master
Comment 2 Alex 2022-10-11 11:43:58 UTC
I couldn't reproduce so far.

I think you're building libquotient from git, but I am not, I don't have the ~/kde/src/libquotient/ directory listed in your backtrace.

Maybe you might like to try testing with the latest release of libquotient, and if that doesn't crash, bisect libquotient? I could be wrong though...
Comment 3 Tobias Fella 2022-11-17 02:36:56 UTC
I fixed a similar crash recently bit i'm not sure if that fixed this one as well, can you check if this is still happening?
Comment 4 Marc Deop 2022-11-17 13:24:43 UTC
(In reply to Tobias Fella from comment #3)
> I fixed a similar crash recently bit i'm not sure if that fixed this one as
> well, can you check if this is still happening?

I cannot reproduce now :-)