• 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: NSView lockFockus assertion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView lockFockus assertion?


  • Subject: Re: NSView lockFockus assertion?
  • From: Clark Cox <email@hidden>
  • Date: Tue, 9 Nov 2004 11:34:49 -0500

The first thing to look for:
- NSView instances that have been released too many times

NSZombie may help you in this search (do a search for "NSZombieEnabled")

On Mon, 08 Nov 2004 18:21:04 -0800, John Mikros <email@hidden> wrote:
> Hello All,
>
> Our QA department has seen an assertion fire in NSView a couple of
> times now, although it seems to happen infrequently.  None of our code
> is in the stack crawl, so this seems like a bug in AppKit to me.
>
> Has anyone seen this before?
>
> Also, I noticed that there is no _debug version of Cocoa, AppKit, and
> Foundation.  Many of the other system libraries do have debug versions
> (Carbon, System, CoreFoundation), but these do not.  Seems to me that
> it would be useful.  Do I need to somehow install them separately?
>
> *** Assertion failure in -[NSView lockFocus],
> AppKit.subproj/NSView.m:2746
>
> 0x908311f4 objc_msgSend + 0x14
> 0x90aa95a8 __NSLockHandlerFunc + 0x5c
> 0x90a5c800 _NSRaiseError + 0x1b8
> 0x90aa91c0 -[NSAssertionHandler
> handleFailureInMethod:object:file:lineNumber:description:] + 0x70
> 0x92de9274 -[NSView lockFocus] + 0xa0
> 0x92dd7a70 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] +
> 0xb0
> 0x92dc337c -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x9c
> 0x92dc3798 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x4b8
> 0x92dc3798 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x4b8
> 0x92dc3798 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x4b8
> 0x92dc3798 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x4b8
> 0x92dc3798 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x4b8
> 0x92dc3798 -[NSView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x4b8
> 0x92e1024c -[NSFrameView
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0x124
> 0x92df73e8 -[NSThemeFrame
> _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:
> rectIsVisibleRectForView:topView:] + 0xc0
> 0x92dd467c -[NSView
> _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] +
> 0x180
> 0x92ded5d0 -[NSView displayIfNeeded] + 0xa8
> 0x92dfe2a8 -[NSWindow displayIfNeeded] + 0xb4
> 0x92dde9b0 _handleWindowNeedsDisplay + 0xe0
> 0x90191ca8 __CFRunLoopDoObservers + 0x194
> 0x90191544 __CFRunLoopRun + 0x18c
> 0x90195e94 CFRunLoopRunSpecific + 0x148
> 0x927d5f88 RunCurrentEventLoopInMode + 0xac
> 0x927dc668 ReceiveNextEventCommon + 0xf4
> 0x927fe6c8 BlockUntilNextEventMatchingListInMode + 0x60
> 0x92dd227c _DPSNextEvent + 0x180
> 0x92de8c24 -[NSApplication
> nextEventMatchingMask:untilDate:inMode:dequeue:] + 0x74
> 0x92dfcf8c -[NSApplication run] + 0x21c
>
> thanks for any insights
> -john
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>


--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSView lockFockus assertion?
      • From: John Mikros <email@hidden>
References: 
 >NSView lockFockus assertion? (From: John Mikros <email@hidden>)

  • Prev by Date: Re: Cannot encode custom NSView [SOLVED]
  • Next by Date: Re: Filtering out all invisible files in a file system browser
  • Previous by thread: NSView lockFockus assertion?
  • Next by thread: Re: NSView lockFockus assertion?
  • Index(es):
    • Date
    • Thread