• 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
Search Index Crash While Indexing Webarchive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Search Index Crash While Indexing Webarchive


  • Subject: Search Index Crash While Indexing Webarchive
  • From: Philip Dow <email@hidden>
  • Date: Tue, 27 Feb 2007 18:43:29 +0100

Hi all,

I am encountering a crash when indexing a web archive using search kit. You can see from the attached stack trace that I'm running cocoa calling carbon which itself is starting up some more cocoa goodness when the exception is raised. The console says " -[NSCFString delegate]: selector not recognized ".

What gets me is I've surrounded my call to SKIndexAddDocument() with a @try @catch @finally block, but I'm not catching the exception and the program is going down. I've set a breakpoint on -[NSException raise] and can watch the exception get thrown inside an xml/html parser, but I cannot catch it. The document in question is a web archive that opens fine in Safari.

What follows is first, the code in question, and second the stack trace as the exception is raised. I don't much like dumping this on the list, but I'm at a loss.

-Phil

-------------------------

@try
{
indexed = SKIndexAddDocument (referenceIndex,referenceDocumentRef,NULL,YES);
}
@catch (NSException *localException)
{
NSLog(@"%@ %s - exception encountered while trying to index file based resource, file: %@, exception: %@",
[self className], _cmd, [aResource originalPath], [localException description]);
return NO;
}
@finally
{
...
}



#0 0x92628419 in -[NSException raise]
#1 0x9264f2cb in +[NSException raise:format:]
#2 0x926d754a in -[NSObject doesNotRecognizeSelector:]
#3 0x925fb3d7 in -[NSObject(NSForwardInvocation) forward::]
#4 0x90a57ba1 in _objc_msgForward
#5 0x926d3df8 in _structuredErrorFunc
#6 0x92925def in __xmlRaiseError
#7 0x9295ba44 in htmlParseCharRef
#8 0x92961d19 in htmlParseChunk
#9 0x937eef63 in -[NSHTMLReader _loadUsingLibXML2]
#10 0x934d10d5 in -[NSHTMLReader attributedString]
#11 0x934d0269 in _NSReadAttributedStringFromURLOrData
#12 0x93548867 in -[NSAttributedString (NSAttributedStringKitAdditions) initWithURL:options:documentAttributes:error:]
#13 0x054ea904 in ImportFromFile
#14 0x910cee44 in ImportContentsFromURL
#15 0x910c7d4a in SKIndexAddDocument
#16 0x004d4be5 in -[JournlerSearchManager indexResource:owner:] at JournlerSearchManager.m:319


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Search Index Crash While Indexing Webarchive
      • From: "Adam R. Maxwell" <email@hidden>
  • Prev by Date: Re: CIContext drawing issue.
  • Next by Date: Re: porting core data app to the dark side
  • Previous by thread: Re: Centering CheckBox in Table Column
  • Next by thread: Re: Search Index Crash While Indexing Webarchive
  • Index(es):
    • Date
    • Thread