• 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: Unit tests hanging Xcode on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unit tests hanging Xcode on Snow Leopard


  • Subject: Re: Unit tests hanging Xcode on Snow Leopard
  • From: Kai Brüning <email@hidden>
  • Date: Thu, 3 Sep 2009 11:26:31 +0200

Hi,

first: my colleagues and I do not see this kind of problems with unit testing under Xcode 3.2 / Snow Leopard. And we do use a lot of unit tests. Especially I am doing nothing but running unit tests since weeks. We do use garbage collection required, though, which may be an important difference, see below.

Looking at your logs, a selector send to a completely unrelated object is often caused by an over release. The selector is send to a pointer, but the object this pointer used to point to has already been released and the same block of memory has been reused by another object, which really doesn’t know what to do with this selector. This (almost) can’t happen under garbage collection.

Are you using the managed memory model? And are 'testName' and 'setTestsPassedString:' selectors in your classes being tested? If so, using zombies or instruments to look for memory problems might help.

Best luck
Kai



On 3.9.2009, at 03:12, Matt Ronge wrote:

Hello,

I'm having a problem with Xcode on Snow Leopard where running unit tests completely hangs Xcode. I had an older project which I wanted to test, so I selected my Tests target and ran it, which caused Xcode to hang and I had to force quit it. Checking the console revealed:

9/2/09 7:53:11 PM Xcode[3932] -[XCBuildLogCommandInvocationSection testName]: unrecognized selector sent to instance 0x200ec19c0
9/2/09 7:53:11 PM Xcode[3932] -runOperationInBackground raised an exception: -[XCBuildLogCommandInvocationSection testName]: unrecognized selector sent to instance 0x200ec19c0


I tried cleaning the project, removing some of the tests, recreating the tests target, none of it worked. I gave the xcodebuild CLI a try, it also hung and outputted the same error message.

I also tried creating a brand new project, and I've been able to reproduce it:
1. Create a new Cocoa app
2. Add a new test target
3. Create a new unit test file, put some kind of dumb test in there,
4. Try running a the test bundle
5. Xcode will hang with and this error will be dumped into the console:


9/2/09 8:10:34 PM Xcode[4132] -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x200c6ba60
9/2/09 8:10:34 PM Xcode[4132] -runOperationInBackground raised an exception: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x200c6ba60


which is a slightly different error than my other project. Either way I can't get unit tests to run on Snow Leopard which is a very big problem for me.

Is this happening for others? Any work arounds? I installed Snow Leopard on a clean disk, if that makes a difference.
--
Matt Ronge
email@hidden
http://www.mronge.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users 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. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Unit tests hanging Xcode on Snow Leopard (From: Matt Ronge <email@hidden>)

  • Prev by Date: Re: xcodebuild issues Warning "compiler '...' is based on missing compiler '...' "
  • Next by Date: Re: Any hope to get an updated Xcode IDE for Leopard?
  • Previous by thread: Re: Unit tests hanging Xcode on Snow Leopard
  • Next by thread: Re: Unit tests hanging Xcode on Snow Leopard
  • Index(es):
    • Date
    • Thread