• 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: crashing in NSUIHeartBeat thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crashing in NSUIHeartBeat thread?


  • Subject: Re: crashing in NSUIHeartBeat thread?
  • From: Severin Kurpiers <email@hidden>
  • Date: Fri, 3 Dec 2004 06:24:57 +0100

QuickTime itself can call some low-level components that may be not thread-safe. Are you sure there is no non-thread-safe component involved? Maybe you could make a test and try to do the same thing from the main thread? Just to be sure...

Severin Kurpiers
Verek Ltd.

On 2. Dez 2004, at 17:38, Jesse Hammons wrote:


But I get this crash when I am not calling a progress function, and when
only using QuickTime in one thread. According to the threadsafe
documentation, that should work.


Thanks,

Hi Nigel,

please read the tech-note about the thread-safety of QuickTime:

http://developer.apple.com/technotes/tn/tn2125.html

I guess it will answer your questions.

Bye,

Severin Kurpiers
Verek Ltd.

On Wed, 1 Dec 2004, at 21:36:15 -0800 (PST), Nigel Mannings wrote:

Message: 13
Date: Wed, 1 Dec 2004 21:36:15 -0800 (PST)
From: "Nigel Mannings" <email@hidden>
Subject: crashing in NSUIHeartBeat thread?
To: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain;charset=iso-8859-1

I am tracking down a difficult bug.  My application detaches a
QuickTime
conversion thread (which calls MovieExportFromProceduresToDataRef) ,
and
this single thread is the only thread that makes QuickTime API calls.

About 4 minutes into the conversion, the application crashes in the
following AppKit thread:

Program received signal EXC_BAD_ACCESS, Could not access memory.
[Switching to process 629 thread 0x4e1b]
0x908311f4 in objc_msgSend ()
(gdb) bt
#0  0x908311f4 in objc_msgSend ()
#1  0x909f15d4 in NSPopAutoreleasePool ()
#2  0x92dca454 in -[NSUIHeartBeat _heartBeatThread:] ()
#3  0x90a39b74 in forkThreadForFunction ()
#4  0x900246e8 in _pthread_body ()
(gdb)

Does anybody know what might be causing this? I do create an
NSAutoreleasePool for the QuickTime thread (need to alloc some strings,
etc at the beginning of the thread) but how can this autorelease pool
affect the pool over in the NSUIHeartBeat thread?


Thanks for any suggestions....


_______________________________________________ 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





_______________________________________________ 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
References: 
 >Re: crashing in NSUIHeartBeat thread? (From: Severin Kurpiers <email@hidden>)

  • Prev by Date: Need help with initializing Menu check boxes
  • Next by Date: Re: Need help with initializing Menu check boxes
  • Previous by thread: Re: crashing in NSUIHeartBeat thread?
  • Next by thread: Request: Set reply-to to ML
  • Index(es):
    • Date
    • Thread