• 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
Re: Help with strange NSInvalidArgumentException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with strange NSInvalidArgumentException


  • Subject: Re: Help with strange NSInvalidArgumentException
  • From: Sean McBride <email@hidden>
  • Date: Wed, 18 Jul 2012 11:18:09 -0400
  • Organization: Rogue Research Inc.

Mike,

Thanks for answering.

I never directly call that.  Though I call plain-old commitEditing in about 100 different places.

Further searching found one similar report:
<http://www.cocoabuilder.com/archive/cocoa/284791-nsinvocation-error-when-closing-dirty-document.html?q=[NSInvocation+invocationWithMethodSignature:]:+method+signature+argument+cannot+be+nil#284791>

Which gave enough clues to repro the issue.  It seems like an OS bug, since it repros only in 10.6 and not 10.7 or 10.8.  (For us, it happens when there a text field that has focus but is empty, then a long computation is started, then the user presses Cmd-S.)

Cheers,

Sean



On Wed, 18 Jul 2012 00:10:51 +0100, Mike Abdullah said:

>Does anything in your code call -comm
>itEditingWithDelegate:didCommitSelector:contextInfo: ?
>
>On 17 Jul 2012, at 20:46, Sean McBride wrote:
>
>> Hi all,
>>
>> I've had two customer reports of the exception below.  My code is not
>in the backtrace, so I'm not sure how to figure this one out.  Anyone
>recognise anything here?
>>
>>
>> NSInvalidArgumentException
>>
>> +[NSInvocation invocationWithMethodSignature:]: method signature
>argument cannot be nil
>>
>> 	0   CoreFoundation                      0x00007fff86cee7b4
>__exceptionPreprocess + 180
>> 	1   libobjc.A.dylib                     0x00007fff87f36f03
>objc_exception_throw + 45
>> 	2   CoreFoundation                      0x00007fff86cc2b8d +
>[NSInvocation invocationWithMethodSignature:] + 493
>> 	3   CoreData                            0x00007fff81cadb42 -
>[NSManagedObjectContext(NSEditorAndEditorRegistration)
>_sendCommitEditingSelectorToTarget:se
>nder:selector:flag:contextInfo:delayed:] + 82
>> 	4   CoreData                            0x00007fff81cb06e3 -
>[NSManagedObjectContext(NSEditorAndEditorRegistration)
>_managedObjectContextEditor:didCommit:contextInfo:] + 115
>> 	5   AppKit                              0x00007fff802b0411
>_NSSendCommitEditingSelector + 61
>> 	6   AppKit                              0x00007fff802b1d7f -
>[NSController _controllerEditor:didCommit:contextInfo:] + 199
>> 	7   CoreFoundation                      0x00007fff86cc396c
>__invoking___ + 140
>> 	8   CoreFoundation                      0x00007fff86cc383d -
>[NSInvocation invoke] + 141
>> 	9   CoreFoundation                      0x00007fff86cdf711 -
>[NSInvocation invokeWithTarget:] + 49
>> 	10  Foundation                          0x00007fff80fee33c
>__NSFireDelayedPerform + 404
>> 	11  CoreFoundation                      0x00007fff86c8abe8
>__CFRunLoopRun + 6488
>> 	12  CoreFoundation                      0x00007fff86c88dbf
>CFRunLoopRunSpecific + 575
>> 	13  HIToolbox                           0x00007fff826897ee
>RunCurrentEventLoopInMode + 333
>> 	14  HIToolbox                           0x00007fff826895f3
>ReceiveNextEventCommon + 310
>> 	15  HIToolbox                           0x00007fff826894ac
>BlockUntilNextEventMatchingListInMode + 59
>> 	16  AppKit                              0x00007fff800edeb2
>_DPSNextEvent + 708
>> 	17  AppKit                              0x00007fff800ed801 -
>[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
>> 	18  AppKit                              0x00007fff800b368f -
>[NSApplication run] + 395
>> 	19  AppKit                              0x00007fff800ac3b0
>NSApplicationMain + 364



_______________________________________________

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

References: 
 >Help with strange NSInvalidArgumentException (From: Sean McBride <email@hidden>)
 >Re: Help with strange NSInvalidArgumentException (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: do you init your instance variables in init method or outside the class?
  • Next by Date: [ANN]: Beeblex - Free IAP verification service for iOS
  • Previous by thread: Re: Help with strange NSInvalidArgumentException
  • Next by thread: How to get a Service into the "Search" group?
  • Index(es):
    • Date
    • Thread