[webkit-dev] Multithread issue

Matt Bockt bocktmatt at gmail.com
Wed May 27 05:17:44 PDT 2009

Hi everybody,

I'm new to WebKit and I'm developing a C++ application that uses the WebKit

It runs on Fedora10, kernel
The WebKit version I'm using is the r44111.

Here is my problem : I'm creating a new web view in the main thread, say,
thread A.
The webview is then attached to a gtk_window as it's made in the GtkLauncher

Then webkit_web_view_load_uri() is called, always in thread A.

Finally, the gtk_main() function is called in another thread, say thread B.

And it crashes  with the following trace  :

ASSERTION FAILED: m_thread == currentThread()
(WebCore/platform/Timer.cpp:206 bool WebCore::TimerBase::isActive() const)

I experience this problem with the webkit r44111 and r43808, but not with

I noticed that there must have been a modification in the thread management
between the builds r38297 and r43808 since g_threads must be initialized.
But I can't figure out why it doesn't work.

Any suggestions or specific rules to follow about multi-threading, gtk and
webkit ?

Thank you for your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090527/a7e07a4d/attachment.html>

More information about the webkit-dev mailing list