Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

QMetaObject::invokeMethod: No such method WebCore::SocketStreamHandlePrivate::socketSentData() #18

Closed
fwoeck opened this issue Apr 15, 2011 · 11 comments

Comments

@fwoeck
Copy link

fwoeck commented Apr 15, 2011

Hi, I think this error

QMetaObject::invokeMethod: No such method WebCore::SocketStreamHandlePrivate::socketSentData()

stems from using a websocket connection within my JS. It it generally not supported by this webkit version, not available or can I do anything to enable it?

Thank you in advance,
--Frank

@fwoeck
Copy link
Author

fwoeck commented Apr 15, 2011

hmm, could it be this here?
http://bugreports.qt.nokia.com/browse/QTWEBKIT-302

@fwoeck
Copy link
Author

fwoeck commented Apr 16, 2011

Actually, on OSX this error happens but I can see from the node server log that a websocket connection is opened and functional anyway. Maybe this is just a cosmetic thing..

@tristandunn
Copy link
Contributor

It's a typo as shown in the issue you linked to. I downloaded the QT source, corrected and compiled it myself to avoid the issue.

@fwoeck
Copy link
Author

fwoeck commented Apr 16, 2011

Thank you - this works with the linux version. I'll ask the homebrew qt maintainer to include a patch too.
--Frank

@fwoeck fwoeck closed this as completed Apr 16, 2011
@dom1nga
Copy link

dom1nga commented Nov 18, 2011

I got QMetaObject::invokeMethod: No such method WebCore::SocketStreamHandlePrivate::socketSentData() when run cucumber with:
config.middleware.use Faye::RackAdapter, :mount => '/faye', :timeout => 45
in application.rb
ruby 1.8.7
rails 3.1.1
capybara-webkit 1.0.0.beta4
OS X 10.6.8.
Capybara really works on Linux, but what if i need run tests on OS X computers?

@dmitriy-kiriyenko
Copy link
Contributor

@dom1nga, I guess the "correct" way to handle this is to make your Homebrew install a patched qt.
Add a patch to the qt formula to fix the issue: you need to upcase "D" in this method definition, and this header file, put the patch to a gist and add a path to it to the patches section of Homebrew formula.

This link and a Contributing section of this article can help in creating formulas.

@tristandunn
Copy link
Contributor

I'm not sure if this will still apply cleanly, but I have a patch. I also still had issues with WebSocket even with the patch, but it was a while ago now.

@dmitriy-kiriyenko
Copy link
Contributor

Eyes-and-brain compilation tell it should apply cleanly =) but of course it's better to redo changes and see the diff of diffs.

@dom1nga
Copy link

dom1nga commented Nov 22, 2011

Some time ago i try to install qt from sources but got error during make. I'll try apply brew patch, but you recommend for "<10.7" take qt from this link:
http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-х
Binaries and sources still without patch. Can someone contact the guys from Nokia and say to apply patches to public access products.

Or fix plz in "Installing qt" this section: "# # # OS X <10.7"

@tristandunn
Copy link
Contributor

Great news! Just noticed WebSocket now works with QT 4.7.4, which I installed via Homebrew.

I used cucumber-websocket-example to test. Just add the library to the Gemfile and enable it as the JavaScript driver.

@dom1nga
Copy link

dom1nga commented Dec 12, 2011

After updating qt I haven't seen the error messages. But tests crash anyway.
Here is simple demo app where I've got cucumber errors. When I using sqlite3 as database adapter - all was fine. When I use mysql\mysql2 I got error.

simeonwillbanks pushed a commit to simeonwillbanks/homebrew that referenced this issue Oct 30, 2013
Fix for thoughtbot/capybara-webkit#18

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants