Re: SKIndexAddDocument crashing

2013-11-20 Thread Eric Gorr
If anyone else is interested, this has been confirmed as a bug and there is no workaround. Again, the bug number is rdar://15410920 On Nov 14, 2013, at 9:14 AM, mail...@ericgorr.net wrote: If anyone is watching who can expedite this, I have started a DTS incident. This does appear to be a

Re: SKIndexAddDocument crashing

2013-11-14 Thread Aaron Burghardt
On Nov 8, 2013, at 9:27 AM, Mark Wright blue.bucon...@virgin.net wrote: It doesn’t crash if you replace the crashing line with: SKIndexAddDocumentWithText(searchIndexFile, doc, NULL, false); For the record, this doesn't crash but it doesn't index the content, either. it is up to the

Re: SKIndexAddDocument crashing

2013-11-14 Thread mailist
If anyone is watching who can expedite this, I have started a DTS incident. This does appear to be a serious bug in Search Kit. On 2013-11-14 07:41, Aaron Burghardt wrote: On Nov 8, 2013, at 9:27 AM, Mark Wright blue.bucon...@virgin.net wrote: It doesn’t crash if you replace the crashing

Re: SKIndexAddDocument crashing

2013-11-08 Thread Mark Wright
FWIW it crashes on mine too (not too surprising, same Xcode and OS). It doesn’t crash if you replace the crashing line with: SKIndexAddDocumentWithText(searchIndexFile, doc, NULL, false); I don’t know if that’s any use to you (never used the framework). I think it’s failing because it’s

Re: SKIndexAddDocument crashing

2013-11-07 Thread Kyle Sluder
On Nov 6, 2013, at 7:35 PM, Eric Gorr mail...@ericgorr.net wrote: If I hand SKIndexAddDocument a text file, the code works without issue. As best I can figure, there is a problem with OS X's emlx spotlight importer in Mavericks. What happens if you run `mdimport` against the document? Does

Re: SKIndexAddDocument crashing

2013-11-07 Thread Eric Gorr
Good thought. mdimport works just fine. Sent from my iPhone On Nov 7, 2013, at 2:56 AM, Kyle Sluder k...@ksluder.com wrote: On Nov 6, 2013, at 7:35 PM, Eric Gorr mail...@ericgorr.net wrote: If I hand SKIndexAddDocument a text file, the code works without issue. As best I can figure,

Re: SKIndexAddDocument crashing

2013-11-07 Thread Eric Gorr
The values are all valid. There is not much more to the sample test project then the code I posted if you wanted to check this out yourself. The sample project is just the default cocoa app. At least one other person did and saw the same behavior Sent from my iPhone On Nov 7, 2013, at 12:12

Re: SKIndexAddDocument crashing

2013-11-06 Thread Mike Abdullah
On 6 Nov 2013, at 02:18, Eric Gorr mail...@ericgorr.net wrote: I've got a functioning sample project at https://github.com/ericgorr/searchtest.git The relevant code is self contained in the applicationDidFinishLaunching method in ELIZAppDelegate.m... NSBundle* mainBundle =

Re: SKIndexAddDocument crashing

2013-11-06 Thread Eric Gorr
On Nov 6, 2013, at 7:29 AM, Mike Abdullah mabdul...@karelia.com wrote: On 6 Nov 2013, at 02:18, Eric Gorr mail...@ericgorr.net wrote: I've got a functioning sample project at https://github.com/ericgorr/searchtest.git The relevant code is self contained in the

Re: SKIndexAddDocument crashing

2013-11-06 Thread Jerry Krinock
Forgive me if you’ve already done this, Eric, but you didn’t say if you did this… When a function in an SDK crashes, the first thing you should do is check the parameters you’re feeding it. In this case, are your local variables searchIndexFile and doc valid? At least, not NULL?

SKIndexAddDocument crashing

2013-11-05 Thread Eric Gorr
I've got a functioning sample project at https://github.com/ericgorr/searchtest.git The relevant code is self contained in the applicationDidFinishLaunching method in ELIZAppDelegate.m... NSBundle* mainBundle = [NSBundle mainBundle]; NSURL* docURL = [mainBundle