Crash Question
Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0845 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: objc_msgSend() selector name: release Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x94df2edb objc_msgSend + 27 Is this telling me I crashed releasing some object? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Crash Question
On Fri, May 14, 2010 at 12:01 PM, k...@highrolls.net wrote: Is this telling me I crashed releasing some object? See So you crashed in objc_msgSend(): http://www.sealiesoftware.com/blog/archive/2008/09/22/objc_explain_So_you_crashed_in_objc_msgSend.html --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Crash Question
On May 14, 2010, at 12:01 PM, k...@highrolls.net wrote: Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0845 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: objc_msgSend() selector name: release Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x94df2edb objc_msgSend + 27 Is this telling me I crashed releasing some object? Most likely over-releasing some object. -- Dave Carrigan d...@rudedog.org Seattle, WA, USA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
Place a breakpoint on objc_exception_throw and eliminate the guesswork. Cheers, Joshua On Sep 5, 2009, at 9:55 AM, Rick C. jo_p...@yahoo.com wrote: hello, i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
crash question NSString
hello, i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. thank you, rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
crash question NSString
thanks joshua. yes i will try that. i'm having trouble to recreate the crash and that's why i asked. :-) thanks, rick From: Joshua Pennington li...@retaincount.com To: Rick C. jo_p...@yahoo.com Cc: cocoa-dev@lists.apple.com cocoa-dev@lists.apple.com Sent: Saturday, September 5, 2009 11:17:28 PM Subject: Re: crash question NSString Place a breakpoint on objc_exception_throw and eliminate the guesswork. Cheers, Joshua On Sep 5, 2009, at 9:55 AM, Rick C. jo_p...@yahoo.com wrote: hello, i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
This error is not indicating that the receiver is invalid, but rather than your argument is nil. Thus, perform some kind of check to verify it's not nil, before passing it as an argument to the method, lest you get this error. -- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.org/ On Sat, Sep 5, 2009 at 9:55 AM, Rick C. jo_p...@yahoo.com wrote: hello, i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. thank you, rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com This email sent to steven.degu...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
On Sep 5, 2009, at 10:55 AM, Rick C. wrote: i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. thank you, If you're wondering whether that exact message is specific to one of the two cases, why not try both and find out? [[NSMutableString string] appendString:nil]; // What message do you get? [@ stringByAppendingString:nil]; // What message do you get now? --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, rick From: Andy Lee ag...@mac.com To: Rick C. jo_p...@yahoo.com Cc: cocoa dev cocoa-dev@lists.apple.com Sent: Saturday, September 5, 2009 11:38:31 PM Subject: Re: crash question NSString On Sep 5, 2009, at 10:55 AM, Rick C. wrote: i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' is it definitely crashing on my NSMutableString appendString: method or is it possible it's also crashing on NSString stringByAppendingString:? as far as i know either one will throw an exception that's why i'm asking. thank you, If you're wondering whether that exact message is specific to one of the two cases, why not try both and find out? [[NSMutableString string] appendString:nil]; // What message do you get? [@ stringByAppendingString:nil]; // What message do you get now? --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
On Sep 5, 2009, at 11:07 AM, Rick C. jo_p...@yahoo.com wrote: thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, If you want to know why you crashed, look at the backtrace. That's the one and only definitive source of this information. Poking and prodding will give you some information, but cannot answer the question Why did my app just crash? If you are unfamiliar with using the debugger, I suggest you read the Xcode debugging documentation. It will save you infinite wasted time spent blindly guessing. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
On Sep 5, 2009, at 2:50 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Sep 5, 2009, at 11:07 AM, Rick C. jo_p...@yahoo.com wrote: thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, If you want to know why you crashed, look at the backtrace. That's the one and only definitive source of this information. Very true. The question I answered is not actually very useful. You need to reproduce the bug and pinpoint the line of code that causes it. --Andy Poking and prodding will give you some information, but cannot answer the question Why did my app just crash? If you are unfamiliar with using the debugger, I suggest you read the Xcode debugging documentation. It will save you infinite wasted time spent blindly guessing. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com This email sent to ag...@mac.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash question NSString
thanks again everyone i will do that. rick From: Kyle Sluder kyle.slu...@gmail.com To: Rick C. jo_p...@yahoo.com Cc: cocoa dev cocoa-dev@lists.apple.com Sent: Sunday, September 6, 2009 2:50:14 AM Subject: Re: crash question NSString On Sep 5, 2009, at 11:07 AM, Rick C. jo_p...@yahoo.com wrote: thank you all for the help. yes i will do that to confirm exactly what method it's coming from. i appreciate it, If you want to know why you crashed, look at the backtrace. That's the one and only definitive source of this information. Poking and prodding will give you some information, but cannot answer the question Why did my app just crash? If you are unfamiliar with using the debugger, I suggest you read the Xcode debugging documentation. It will save you infinite wasted time spent blindly guessing. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com