[Qtwebengine] Websockets not working -> debug Javascript?
Fabian Bernhard
fbernhard at gmail.com
Thu Jan 23 11:49:26 CET 2014
Hoi Jocelyn,
Thanks for your report, I am glad that it works generally speaking.
WebSockets seem to work for me (on Linux) with this test page:
> http://www.websocket.org/echo.html
It doesn't work for me though. I am using the "examples/widgets/browser"
project for testing. The website just hangs and does not finish loading.
> For debugging in general, make sure that you start your application with
> --single-process.
> It will run the render and plugin processes as thread in the main process
> instead and should allow you to debug more easily.
>
With this flag the browser crashes consistently when I load above
websocket.org website, see crash log below. Google.com works fine though.
May be its just an OSX issue?
Thanks for your assistance!
Fabian
Thread 18 Crashed:: Chrome_InProcRendererThread
0 libQt5WebEngineCore.dylib 0x00000001032f7b38
WebCore::V8HTMLElement::createWrapper(WTF::PassRefPtr<WebCore::HTMLElement>,
v8::Handle<v8::Object>, v8::Isolate*) + 232
1 libQt5WebEngineCore.dylib 0x000000010343fa8c
WebCore::createHTMLVideoElementWrapper(WebCore::HTMLElement*,
v8::Handle<v8::Object>, v8::Isolate*) + 140
2 libQt5WebEngineCore.dylib 0x000000010343e27f
WebCore::createV8HTMLWrapper(WebCore::HTMLElement*, v8::Handle<v8::Object>,
v8::Isolate*) + 12863
3 libQt5WebEngineCore.dylib 0x0000000103413d92
WebCore::wrap(WebCore::Element*, v8::Handle<v8::Object>, v8::Isolate*) + 18
4 libQt5WebEngineCore.dylib 0x0000000103337087
WebCore::DocumentV8Internal::createElementMethodCallbackForMainWorld(v8::FunctionCallbackInfo<v8::Value>
const&) + 951
5 libQt5WebEngineCore.dylib 0x000000010239d5de
v8::internal::FunctionCallbackArguments::Call(void
(*)(v8::FunctionCallbackInfo<v8::Value> const&)) + 158
6 libQt5WebEngineCore.dylib 0x00000001023b6d69
v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**,
v8::internal::Isolate*) + 393
7 ??? 0x00003906113069ce 0 + 62698220972494
8 ??? 0x0000390611357598 0 + 62698221303192
9 ??? 0x0000390611344d18 0 + 62698221227288
10 ??? 0x0000390611311394 0 + 62698221015956
11 ??? 0x0000390611342aa9 0 + 62698221218473
12 ??? 0x0000390611336a24 0 + 62698221169188
13 ??? 0x000039061131a477 0 + 62698221053047
14 libQt5WebEngineCore.dylib 0x00000001023edfb6
v8::internal::Invoke(bool, v8::internal::Handle<v8::internal::JSFunction>,
v8::internal::Handle<v8::internal::Object>, int,
v8::internal::Handle<v8::internal::Object>*, bool*) + 342
15 libQt5WebEngineCore.dylib 0x00000001023849a6 v8::Script::Run() + 486
16 libQt5WebEngineCore.dylib 0x0000000103405c9f
WebCore::V8ScriptRunner::runCompiledScript(v8::Handle<v8::Script>,
WebCore::ScriptExecutionContext*, v8::Isolate*) + 271
17 libQt5WebEngineCore.dylib 0x00000001033df276
WebCore::ScriptController::compileAndRunScript(WebCore::ScriptSourceCode
const&, WebCore::AccessControlStatus) + 518
18 libQt5WebEngineCore.dylib 0x00000001033e08b2
WebCore::ScriptController::executeScriptInMainWorld(WebCore::ScriptSourceCode
const&, WebCore::AccessControlStatus) + 418
19 libQt5WebEngineCore.dylib 0x00000001027ec8dc
WebCore::ScriptLoader::executeScript(WebCore::ScriptSourceCode const&) + 716
20 libQt5WebEngineCore.dylib 0x00000001029f1a9a
WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent(WebCore::PendingScript&)
+ 234
21 libQt5WebEngineCore.dylib 0x00000001029f2202
WebCore::HTMLScriptRunner::executeParsingBlockingScripts() + 386
22 libQt5WebEngineCore.dylib 0x00000001029e64e0
WebCore::HTMLDocumentParser::notifyFinished(WebCore::Resource*) + 80
23 libQt5WebEngineCore.dylib 0x0000000102cd5d48
WebCore::Resource::checkNotify() + 344
24 libQt5WebEngineCore.dylib 0x0000000102cd605a
WebCore::Resource::finish(double) + 26
25 libQt5WebEngineCore.dylib 0x0000000102ce207b
WebCore::ResourceLoader::didFinishLoading(WebKit::WebURLLoader*, double) +
123
26 libQt5WebEngineCore.dylib 0x00000001037460cf
webkit_glue::WebURLLoaderImpl::Context::OnCompletedRequest(int, bool,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, base::TimeTicks const&) + 479
27 libQt5WebEngineCore.dylib 0x000000010372c071
content::ResourceDispatcher::OnRequestComplete(int, int, bool,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&, base::TimeTicks const&) + 449
28 libQt5WebEngineCore.dylib 0x000000010372aaf1
content::ResourceDispatcher::DispatchMessage(IPC::Message const&) + 561
29 libQt5WebEngineCore.dylib 0x000000010372a2db
content::ResourceDispatcher::OnMessageReceived(IPC::Message const&) + 811
30 libQt5WebEngineCore.dylib 0x00000001036ee9d6
content::ChildThread::OnMessageReceived(IPC::Message const&) + 38
31 libQt5WebEngineCore.dylib 0x00000001018b545f
IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&) + 575
32 libQt5WebEngineCore.dylib 0x000000010187ceda
base::MessageLoop::RunTask(base::PendingTask const&) + 1082
33 libQt5WebEngineCore.dylib 0x000000010187d407
base::MessageLoop::DoWork() + 727
34 libQt5WebEngineCore.dylib 0x000000010187fcea
base::MessagePumpDefault::Run(base::MessagePump::Delegate*) + 346
35 libQt5WebEngineCore.dylib 0x000000010187c7c2
base::MessageLoop::RunInternal() + 226
36 libQt5WebEngineCore.dylib 0x000000010189173a base::RunLoop::Run() +
26
37 libQt5WebEngineCore.dylib 0x000000010187bf9d
base::MessageLoop::Run() + 29
38 libQt5WebEngineCore.dylib 0x00000001018a7b4b
base::Thread::ThreadMain() + 203
39 libQt5WebEngineCore.dylib 0x00000001018a249b base::(anonymous
namespace)::ThreadFunc(void*) + 171
40 libsystem_pthread.dylib 0x00007fff92937899 _pthread_body + 138
41 libsystem_pthread.dylib 0x00007fff9293772a _pthread_start + 137
42 libsystem_pthread.dylib 0x00007fff9293bfc9 thread_start + 13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20140123/be7a5dd8/attachment.html>
More information about the QtWebEngine
mailing list