Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
524ba1e4d (dev), 3ac2a9f22 (6.8)
-
Foundation PM Staging
Description
Vehicle client example asserts on exit:
#0 0x00007ffff36a53f4 in ?? () from /usr/lib/libc.so.6 #1 0x00007ffff364c120 in raise () from /usr/lib/libc.so.6 #2 0x00007ffff36334c3 in abort () from /usr/lib/libc.so.6 #3 0x00007ffff3cd6c60 in qAbort () at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/global/qassert.cpp:46 #4 0x00007ffff3d10e31 in qt_message_fatal<QString&> (context=..., message=...) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/global/qlogging.cpp:2116 #5 0x00007ffff3d09c98 in qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, context=..., msg=0x7ffff43018c0 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fffffffcc68) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/global/qlogging.cpp:382 #6 0x00007ffff3d0bdca in QMessageLogger::fatal (this=0x7fffffffcec0, msg=0x7ffff43018c0 "ASSERT failure in %s: \"%s\", file %s, line %d") at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/global/qlogging.cpp:884 #7 0x00007ffff3cd6d33 in qt_assert_x (where=0x7ffff432b6cd "QCoreApplication::sendEvent", what=0x5555558b7700 "Cannot send events to objects owned by a different thread. Current thread QThread(0x5555555cf390, name = \"Qt mainThread\"). Receiver 'QNativeSocketEngine(0x7fffc8006640)' was created in thread VehicleT"..., file=0x7ffff432b308 "/home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp", line=547) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/global/qassert.cpp:114 #8 0x00007ffff3dede4c in QCoreApplicationPrivate::checkReceiverThread (receiver=0x7fffc8006640) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:547 #9 0x00007ffff3def4c6 in doNotify (receiver=0x7fffc8006640, event=0x7fffffffd1d0) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1268 #10 0x00007ffff3def424 in QCoreApplication::notify (this=0x7fffffffdc00, receiver=0x7fffc8006640, event=0x7fffffffd1d0) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1254 #11 0x00007ffff5225781 in QGuiApplication::notify (this=0x7fffffffdc00, object=0x7fffc8006640, event=0x7fffffffd1d0) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:2043 #12 0x00007ffff3def2f0 in QCoreApplication::notifyInternal2 (receiver=0x7fffc8006640, event=0x7fffffffd1d0) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1170 #13 0x00007ffff3df00b9 in QCoreApplication::sendEvent (receiver=0x7fffc8006640, event=0x7fffffffd1d0) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1614 #14 0x00007ffff3e89da1 in QObjectPrivate::setParent_helper (this=0x7fffc8006d10, o=0x0) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qobject.cpp:2256 #15 0x00007ffff3e8746c in QObject::~QObject (this=0x7fffbc002960, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qobject.cpp:1146 #16 0x00007ffff3ebf5d3 in QSocketNotifier::~QSocketNotifier (this=0x7fffbc002960, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qsocketnotifier.cpp:172 #17 0x00007ffff494d30c in QReadNotifier::~QReadNotifier (this=0x7fffbc002960, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qnativesocketengine.cpp:1222 #18 0x00007ffff494d32c in QReadNotifier::~QReadNotifier (this=0x7fffbc002960, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qnativesocketengine.cpp:1222 #19 0x00007ffff494bffd in QNativeSocketEngine::close (this=0x7fffc8006640) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qnativesocketengine.cpp:951 #20 0x00007ffff493b1e6 in QAbstractSocketPrivate::resetSocketLayer (this=0x7fffc8001840) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qabstractsocket.cpp:521 #21 0x00007ffff4940739 in QAbstractSocket::disconnectFromHost (this=0x7fffc8001820) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qabstractsocket.cpp:2677 #22 0x00007ffff494052d in QAbstractSocket::close (this=0x7fffc8001820) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qabstractsocket.cpp:2601 #23 0x00007ffff493fd09 in QAbstractSocket::abort (this=0x7fffc8001820) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qabstractsocket.cpp:2353 #24 0x00007ffff493d7b0 in QAbstractSocket::~QAbstractSocket (this=0x7fffc8001820, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qabstractsocket.cpp:1423 #25 0x00007ffff4951962 in QTcpSocket::~QTcpSocket (this=0x7fffc8001820, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qtcpsocket.cpp:65 #26 0x00007ffff4951982 in QTcpSocket::~QTcpSocket (this=0x7fffc8001820, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/network/socket/qtcpsocket.cpp:65 #27 0x00007ffff6023d60 in std::default_delete<QIODevice>::operator() (this=0x7fffc80016b0, __ptr=0x7fffc8001820) at /usr/include/c++/14.2.1/bits/unique_ptr.h:93 #28 0x00007ffff6020de6 in std::unique_ptr<QIODevice, std::default_delete<QIODevice> >::~unique_ptr (this=0x7fffc80016b0, __in_chrg=<optimized out>) at /usr/include/c++/14.2.1/bits/unique_ptr.h:398 #29 0x00007ffff601a546 in QGrpcHttp2ChannelPrivate::~QGrpcHttp2ChannelPrivate (this=0x7fffc8001680, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtgrpc/src/grpc/qgrpchttp2channel.cpp:714 #30 0x00007ffff601a592 in QGrpcHttp2ChannelPrivate::~QGrpcHttp2ChannelPrivate (this=0x7fffc8001680, __in_chrg=<optimized out>) at /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtgrpc/src/grpc/qgrpchttp2channel.cpp:714
ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread QThread(0x5555555cf390, name = "Qt mainThread"). Receiver 'QNativeSocketEngine(0x7fffc8006640)' was created in thread VehicleThread(0x555555c153d0)", file /home/semlanik/Projects/Qt/qt6_grpc/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp, line 547
Attachments
Issue Links
- is required for
-
QTBUG-129161 Various enhancements in Qt gRPC and Protobuf
- Open