TC + Metrowerks codewarrior = Consistent failure

   My very first post and a question!  :)

   I am running TC Enterprise 5.1.5 to kick off a build on windows XP using ant/build.xml.  The build always fails because Metrowerks Codewarrior posts a 'Unhandled exception' message. This happens only when I initiate the build from TC.  if I launch it from a cmd.exe window, it always passes the very first time.  After I click 'OK' on the error message and relaunch another build from TC, without making any changes to code or build configuration, the build passes.  This happens 9/10 times.  I have tried rebooting the machine before launching the build but to no avail.  Any thoughts/comments why this might happen?  


Comment actions Permalink


Could you please post a build log with exception text.


Comment actions Permalink

As soon as I can get the unhandled exception to pop up, i will post the log.  I've been trying to get it to fail, but since i posted, it seems to be passing.

Comment actions Permalink

  This is the popup that shows up.  

Picture 9.png

There is nothing really in the teamcity build log.  Since its a ant/build.xml that's running, I have this in the build-log when it hangs -

[family] ant
[10:27:59]: [ant]
[10:27:59]: [] echo
[10:27:59]: [echo] Trying to compile EPG lib target = epg_lib

and it hangs forever until I click 'ok'.  

The build-log that the developers put in shows the args that the codewarrior gets invoked with

[echo] Trying to compile EPG lib target = epg_lib
     [exec] Current OS is Windows XP
     [exec] Executing 'c:\Program Files\Metrowerks\CodeWarrior\Bin\IDE.exe' with arguments:

The ' characters around the executable and arguments are
not part of the command.

and there's nothing else after this because its hanging.  When I click ok, I'll get a message saying IDE has to crashed and gives me an option to report the issue to microsoft.  

Any help would be greatly appreciated.  Thanks!  

Comment actions Permalink


That's a bug in CodeWarrior, so it makes sense to consult with Freescale support.

Maybe it's caused by Windows service environment - IDE is not designed to work without desktop.
Try to run TeamCity agent within user session by agent.bat


Please sign in to leave a comment.