[webkit-dev] segfault when having multiple webkit instances (got backtrace)

Luka Napotnik luka.napotnik at gmail.com
Mon Oct 6 02:32:11 PDT 2008


Ok I understand.

Would it make a difference if I have only one WebKit instance and then
create frames and then operate on frames in the threads?

Greets,
Luka

Dne 06.10.2008 (pon) ob 02:18 -0700 je Oliver Hunt zapisal(a):
> No amount of locking will save you -- webkit uses many threads itself  
> -- many (if not most) of which then post messages directly to the main  
> application thread, on the assumption that all webviews are being  
> controlled by that one thread.
> 
> --Oliver
> 
> On Oct 6, 2008, at 1:24 AM, Luka Napotnik wrote:
> 
> > Hello.
> >
> > Thanks for the quick reply. It seems that locking the GDK subsystem
> > before every call to WebKit is not enough. Can this be a problem with
> > the way how WebKit manages memory? Is there a locking function for  
> > that?
> >
> > Greets,
> > Luka
> >
> > Dne 06.10.2008 (pon) ob 01:10 -0700 je Maciej Stachowiak zapisal(a):
> >> On Oct 6, 2008, at 12:50 AM, Luka Napotnik wrote:
> >>
> >>> Hello.
> >>>
> >>> I have a program that uses the webkit engine (gtk+ port) for
> >>> intense-rendering. I have about 10 threads, each with it's own  
> >>> webkit
> >>> instance. While there's no problem when only two instances are  
> >>> active.
> >>> But when I increase the instances, the program segfaults.
> >>
> >> WebKit is not threadsafe. It is not currently possible to use it
> >> safely from multiple threads. If it ever seems to work, it is only
> >> through luck.
> >>
> >> Regards,
> >> Maciej
> >>
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: To je digitalno podpisan del =?UTF-8?Q?sporo=C4=8Dila?=
Url : http://lists.webkit.org/pipermail/webkit-dev/attachments/20081006/f13282a0/attachment.bin 


More information about the webkit-dev mailing list