• 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: How do decipher an exception in the log file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do decipher an exception in the log file


  • Subject: Re: How do decipher an exception in the log file
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Wed, 19 Jul 2023 01:01:23 +0200

> That number is 0x7FFFFFFFFFFFFFFF, which is particularly recognizable and
> happens to be the value of NSNotFound.
>
> I imagine that in the preceding line of code you called -indexOfObject: on an
> array that didn't contain the object, but then failed to test the value
> against NSNotFound before trying to fetch from that index.
>

Thanks a million!
Very interesting observation.
The fact that
  9223372036854775807 = 0x7FFFFFFFFFFFFFFF
escaped me.
And, indeed, I do have a few indexOfObject's in my code, and luckily not that
many.


>> More precisely, is there a way I can determine the location in the code
>> where the exception occurred?
>
> Do you have symbols for the particular build of the app that crashed? If so,
> there ought to be some way to symbolicate the list of addresses in the "Stack
> trace:" line of the log messages... although maybe not, without knowing the
> base load address of the executable.

Problem is that its a screensaver (i.e., a .saver file).
I guess the base adress is always different, at least I have no idea what the
base address might be.

> A full-on crash report, rather than log messages, would be a lot more useful.

Where would i find that crash report, given its a screensaver?
Just in case something like that happens again ...


Best regards, Gabriel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: How do decipher an exception in the log file
      • From: Saagar Jha via Cocoa-dev <email@hidden>
References: 
 >How do decipher an exception in the log file (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: How do decipher an exception in the log file (From: Ben Kennedy via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: How do decipher an exception in the log file
  • Next by Date: Re: How do decipher an exception in the log file
  • Previous by thread: Re: How do decipher an exception in the log file
  • Next by thread: Re: How do decipher an exception in the log file
  • Index(es):
    • Date
    • Thread