I've no idea when it crashes and when not. Probably hard to tell, as  
it is clearly a bug. So I reported it to Apple.
Christiaan

Can the parse get partial xml, i.e. without the leading <?xml tag?  
And is there some more (like <mods ) that can be used? Creating an  
NSXMLDocument only for testing an arbitrary string seems pretty  
inefficient to me.

On 19 May 2007, at 6:43 PM, Adam R. Maxwell wrote:

> Maybe we could just see if the string has "<?xml" as a prefix before
> feeding it to NSXMLDocument.  Would that keep it from choking?  I
> can't reproduce the problem here...
>
> Adam
>
> On May 19, 2007, at 09:29, Adam R. Maxwell wrote:
>
>> Never mind...this is being used on the main thread already if it's  
>> New
>> Publications From Clipboard, so it must be a more general bug.  I
>> guess we could use a regex, but MODS seems pretty loosely defined in
>> some respects, so I'm not sure what to use.  If it /is/ valid MODS,
>> hopefully the problem doesn't occur, since the same code will be  
>> used!
>>
>> Adam
>>
>> On May 19, 2007, at 09:26, Adam R. Maxwell wrote:
>>
>>> I thought that looked familiar in the other exception report we just
>>> received; SearchKit has the same problem when reading HTML via
>>> NSAttributedString, since WebKit has to be used on the main thread.
>>> Maybe we can pass an array of strings to the main thread and handle
>>> the parsing there, since NSXMLDocument apparently suffers from the
>>> same egregious limitation?
>>>
>>> Adam
>>>
>>> On May 19, 2007, at 09:14, Christiaan Hofman wrote:
>>>
>>>> It's happening in -[NSString(BDSKMODSParserExtensions)
>>>> isMODSString],
>>>> more precisely in -[NSXMLDocument  
>>>> initWithXMLString:options:error:].
>>>> Seems a bug in NSXMLDocument. Do you have an alternative way of
>>>> recognizing MODS?
>>>>
>>>> Christiaan
>>>>
>>>> On 19 May 2007, at 5:43 PM, Adam R. Maxwell wrote:
>>>>
>>>>> Can you build from source and set a breakpoint on -[NSException
>>>>> raise]?  A proper backtrace would likely nail this immediately.
>>>>> (I'd
>>>>> try myself, but my wife's away and I'm making breakfast for the
>>>>> kids
>>>>> now ;)
>>>>>
>>>>> thanks,
>>>>> adam
>>>>>
>>>>> On May 19, 2007, at 08:26, James Howison wrote:
>>>>>
>>>>>> With the latest nightly this is occurring whenever I choose "New
>>>>>> Publications from Clipboard".  This particular time I had
>>>>>> "something"
>>>>>> on the clipboard (from TextMate) but it is happening with  
>>>>>> anything
>>>>>> on
>>>>>> the clipboard (including my standard 'copy from reference list in
>>>>>> Skim.app').
>>>>>>
>>>>>> Cheers,
>>>>>> James
>>>>>>
>>>>>>
>>>>>> ***** Do not modify below this line *****
>>>>>>   ***** ERROR LOG *****
>>>>>>
>>>>>> BibDesk version: 1.3.5 (v760)
>>>>>> Build details: @(#)PROGRAM:BibDesk  PROJECT:Bibdesk-760
>>>>>> DEVELOPER:hohensee  BUILT:May 18 2007 09:40:08
>>>>>>
>>>>>> Host: Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007;
>>>>>> root:xnu-792.17.14~1/RELEASE_PPC running on Power Macintosh
>>>>>> Exception:
>>>>>> *** -[NSCFString delegate]: selector not recognized [self =
>>>>>> 0x119e5f0]
>>>>>>
>>>>>> Stack Trace:
>>>>>> _NSExceptionHandlerExceptionRaiser (in ExceptionHandling)
>>>>>> -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
>>>>>> (in
>>>>>> AppKit)
>>>>>> __NSHandleCarbonMenuEvent (in AppKit)
>>>>>> __DPSNextEvent (in AppKit)
>>>>>> -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
>>>>>> (in
>>>>>> AppKit)
>>>>>> -[NSApplication run] (in AppKit)
>>>>>> -[OAApplication run] (in OmniAppKit)
>>>>>> _NSApplicationMain (in AppKit)
>>>>>> _main (in BibDesk)
>>>>>> __start (in BibDesk)
>>>>>> start (in BibDesk)
>>>>>>
>>>>>> ----------------------------------------------------------------- 
>>>>>> ----
>>>>>> ----
>>>>>> This SF.net email is sponsored by DB2 Express
>>>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>>>> control of your XML. No limits. Just data. Click to get it now.
>>>>>> http://sourceforge.net/powerbar/db2/
>>>>>> _______________________________________________
>>>>>> Bibdesk-develop mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------ 
>>>>> ----
>>>>> ---
>>>>> This SF.net email is sponsored by DB2 Express
>>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>>> control of your XML. No limits. Just data. Click to get it now.
>>>>> http://sourceforge.net/powerbar/db2/
>>>>> _______________________________________________
>>>>> Bibdesk-develop mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>>>>
>>>>
>>>> ------------------------------------------------------------------- 
>>>> ------
>>>> This SF.net email is sponsored by DB2 Express
>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>> control of your XML. No limits. Just data. Click to get it now.
>>>> http://sourceforge.net/powerbar/db2/
>>>> _______________________________________________
>>>> Bibdesk-develop mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -----
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Bibdesk-develop mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>>
>>
>> --------------------------------------------------------------------- 
>> ----
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Bibdesk-develop mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bibdesk-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to