Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.8
-
-
b7fc0d54b8 (qt/qtwebsockets/dev) b7fc0d54b8 (qt/tqtc-qtwebsockets/dev) b7fc0d54b8 (qt/qtwebsockets/6.4) b7fc0d54b8 (qt/tqtc-qtwebsockets/6.4) b7fc0d54b8 (qt/qtwebsockets/6.4.0) b7fc0d54b8 (qt/qtwebsockets/6.4.1)
Description
When sending data with QWebSocket::sendBinaryMessage(), following error is thwon immediately:
qwidget-login-test.worker.js:165 worker.js onmessage() captured an uncaught exception: TypeError: caller is not a function onmessage @ qwidget-login-test.worker.js:165 qwidget-login-test.worker.js:166 TypeError: caller is not a function at __emval_call_void_method (blob:http://localhost:30000/50e9e32f-cbb2-4c6f-b9ff-4b7f756d8de3:7646:7) at QWebSocketPrivate::sendBinaryMessage(QByteArray const&) (qwidget-login-test.wasm) at QWebSocket::sendBinaryMessage(QByteArray const&) (qwidget-login-test.wasm) at CtiLib::sendRequest(QString const&, bool) (qwidget-login-test.wasm) at CtiLib::sendAuth() (qwidget-login-test.wasm) at CtiLib::handleConnection() (qwidget-login-test.wasm) at QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (CtiLib::*)()>::call(void (CtiLib::*)(), CtiLib*, void**) (qwidget-login-test.wasm) at void QtPrivate::FunctionPointer<void (CtiLib::*)()>::call<QtPrivate::List<>, void>(void (CtiLib::*)(), CtiLib*, void**) (qwidget-login-test.wasm) at QtPrivate::QSlotObject<void (CtiLib::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (qwidget-login-test.wasm) at QMetaCallEvent::placeMetaCall(QObject*) (qwidget-login-test.wasm) onmessage @ qwidget-login-test.worker.js:166 qtloader.js:382 pthread sent an error! http://localhost:30000/qwidget-login-test.worker.js:167: Uncaught [object MessageEvent] qwidget-login-test.worker.js:167 Uncaught MessageEvent
This problem reproduces with a qtwebassembly build that has threads enabled. Does not reproduce with the prebuild qt kit.
Attachments
For Gerrit Dashboard: QTBUG-101682 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
273376,23 | wasm: Refactor to use websocket.h API | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
402590,1 | wasm: Refactor to use websocket.h API | tqtc/lts-5.15 | qt/tqtc-qtwebsockets | Status: ABANDONED | 0 | 0 |