• 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: Random crash in -[NSView displayIfNeeded]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random crash in -[NSView displayIfNeeded]


  • Subject: Re: Random crash in -[NSView displayIfNeeded]
  • From: Florent Pillet <email@hidden>
  • Date: Tue, 19 Oct 2004 10:29:20 +0200

More information about this. My code hides & shows a progress bar in the main window by adding or removing it to/from a view in the window. Since it can happen that insertion/removal happen several times a second, I suspect that at some point Cocoa gets 'lost' in thinking that an object that has been removed is still there. But that's still strange since my progress bar is retained by my code, so the object ptr is still valid.

Anyway, I'll try using a slower timer to hide/show the progress bar and see how that goes. I'm still taking hints at what could be the actual cause of the crash ;-)

Florent

On 18 oct. 04, at 22:31, Florent Pillet wrote:

I have several threads performing intensive work and sending out notifications. These notifications are catched by code which [self performSelectorOnMainThread] to call a method which will update a progress bar and a NSTextField. Also, I have a sheet other the current window which has another progress bar and another NSTextField which are updated the same way.

Sometimes, more or less randomly, the main thread crashes (as in the report below). It seems that it has something to do with the number of updates triggered each second, but I'm not sure. Any hint at why Cocoa would be crashing there?

I have a hard time retrieving the last valid object, so any help would be appreciated...

Here is the stack trace for the main thread (which is the one crashing):

--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463 http://www.florentpillet.com

_______________________________________________
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: Random crash in -[NSView displayIfNeeded]
      • From: "Louis C. Sacha" <email@hidden>
References: 
 >Random crash in -[NSView displayIfNeeded] (From: Florent Pillet <email@hidden>)

  • Prev by Date: [QUESTION] How to autosize images in buttons ?
  • Next by Date: Copying a file package
  • Previous by thread: Random crash in -[NSView displayIfNeeded]
  • Next by thread: Re: Random crash in -[NSView displayIfNeeded]
  • Index(es):
    • Date
    • Thread