• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why is the latest WebKit interacting with my NSThread? [WebKit Threading Violation]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is the latest WebKit interacting with my NSThread? [WebKit Threading Violation]


  • Subject: Why is the latest WebKit interacting with my NSThread? [WebKit Threading Violation]
  • From: "Michael Dupuis" <email@hidden>
  • Date: Thu, 6 Dec 2007 18:56:03 -0500

Greetings,
Since upgrading to 10.4.11 and Safari 3, I notice now that a thread in my
application throws the following errors when an NSThread thread runs:

WebKit Threading Violation - +[DOMDocument(WebCoreInternal) _wrapDocument:]
called from secondary thread

WebKit Threading Violation - +[DOMCSSStyleDeclaration(WebCoreInternal)
_wrapCSSStyleDeclaration:] called from secondary thread

WebKit Threading Violation - -[DOMCSSValue dealloc] called from secondary
thread

WebKit Threading Violation - -[DOMNode dealloc] called from secondary thread

Yes, my application does use WebKit, but this thread is a background thread,
shouldn't be interacting with the main event thread, and certainly has
nothing to do with WebKit, it has no knowledge of it at all (though it is
using [[NSXMLDocument alloc] initWithContentsOfURL:url
options:NSXMLDocumentTidyXML error:&error] within it), yet for some reason
there seems to be an interaction while running. Is it because of the
NSXMLDocument? I can't imagine calling it in a thread should be a problem
now. I'm essentially fetching and processing an XMLDoc in this thread.

Is there something that changed from Safari 2 to 3 that I need to be aware
of? Maybe this is more appropriate for another list, but I'm not really
doing anything special with WebKit, and I'm just using everything straight
from Cocoa, I'm not downloading and doing my own builds, etc, so I think
this question is appropriate here. Any clue of pointers to info on how to
change things would be appreciated (I looked but couldn't really find
anything).

Thanks,

Michael
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Core data app & data loss
  • Next by Date: Re: -[NSImage TIFFRepresentation] failing on the multiple files icon?
  • Previous by thread: MEETING: Chicago CocoaHeads / CAWUG - Dev Tools & ObjC2 - Tuesday December 11th 7:00 PM
  • Next by thread: Empty Class Browser with 10.4 SDK target
  • Index(es):
    • Date
    • Thread