• 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 to parse a log file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to parse a log file


  • Subject: Re: How to parse a log file
  • From: "Gary L. Wade via Cocoa-dev" <email@hidden>
  • Date: Mon, 26 Oct 2020 15:14:08 -0700

Line 7 appears to show your app allocating an array with one of its objects
being nil.
--
Gary L. Wade
http://www.garywade.com/

> On Oct 26, 2020, at 3:02 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> From a user, I received a log file that contains an error (see below)
> and a stack trace of my macOS app.
>
> Is it possible to determine the exact line in the source code where the error
> occurred?
>
> Best regards, Gabriel
>
>
> Encl:
> excerpt from log.
> "ArtSaverApp"  is my macOS app.
>
>
> 2020-10-23 10:47:30.410560-0400 0x2318d    Error       0x0
> 6750   0    ArtSaverApp: (AppKit) [com.apple.AppKit:General] ***
> -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object
> from objects[0]
> 2020-10-23 10:47:30.433412-0400 0x2318d    Error       0x0
> 6750   0    ArtSaverApp: (AppKit) [com.apple.AppKit:General] (
>    0   CoreFoundation                      0x00007fff2d796b57
> __exceptionPreprocess + 250
>    1   libobjc.A.dylib                     0x00007fff664475bf
> objc_exception_throw + 48
>    2   CoreFoundation                      0x00007fff2d84559e -[__NSCFString
> characterAtIndex:].cold.1 + 0
>    3   CoreFoundation                      0x00007fff2d8438c4
> -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0
>    4   CoreFoundation                      0x00007fff2d69a8ae
> -[__NSPlaceholderArray initWithObjects:count:] + 154
>    5   CoreFoundation                      0x00007fff2d6fff7e __createArray +
> 47
>    6   CoreFoundation                      0x00007fff2d6fff41 +[NSArray
> arrayWithObject:] + 25
>    7   ArtSaverApp                         0x0000000109f12466 ArtSaverApp +
> 46182
>    8   ArtSaverApp                         0x0000000109f1598d ArtSaverApp +
> 59789
>    9   AppKit                              0x00007fff2abcd7a7
> -[NSApplication(NSResponder) sendAction:to:from:] + 299
>    10  AppKit                              0x00007fff2abcd642 -[NSControl
> sendAction:to:] + 86
>    11  AppKit                              0x00007fff2abcd574 __26-[NSCell
> _sendActionFrom:]_block_invoke + 136
>    12  AppKit                              0x00007fff2abcd476 -[NSCell
> _sendActionFrom:] + 171
>    13  AppKit                              0x00007fff2abcd3bd -[NSButtonCell
> _sendActionFrom:] + 96
>    14  AppKit                              0x00007fff2abc969b
> NSControlTrackMouse + 1745
>    15  AppKit                              0x00007fff2abc8fa2 -[NSCell
> trackMouse:inRect:ofView:untilMouseUp:] + 130
>    16  AppKit                              0x00007fff2abc8e61 -[NSButtonCell
> trackMouse:inRect:ofView:untilMouseUp:] + 691
>    17  AppKit                              0x00007fff2abc81dd -[NSControl
> mouseDown:] + 748
>    18  AppKit                              0x00007fff2abc65f0
> -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4914
>    19  AppKit                              0x00007fff2ab30e21
> -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2612
>    20  AppKit                              0x00007fff2ab301c9
> -[NSWindow(NSEventRouting) sendEvent:] + 349
>    21  AppKit                              0x00007fff2ab2e554
> -[NSApplication(NSEvent) sendEvent:] + 352
>    22  AppKit                              0x00007fff2a97b5bf -[NSApplication
> run] + 707
>    23  AppKit                              0x00007fff2a94d396
> NSApplicationMain + 777
>    24  libdyld.dylib                       0x00007fff675efcc9 start + 1
> )
>

_______________________________________________

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: 
 >How to parse a log file (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: How to parse a log file
  • Next by Date: Re: How to parse a log file
  • Previous by thread: How to parse a log file
  • Next by thread: Re: How to parse a log file
  • Index(es):
    • Date
    • Thread