TC + Metrowerks codewarrior = Consistent failure
Hi
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?
thanks
Sam
Please sign in to leave a comment.
Hi
Could you please post a build log with exception text.
Thanks
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.
Hi

This is the popup that shows up.
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 -
[10:27:59]: [ant] for.family.build
[10:27:59]: [for.family.build] 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
[exec] Current OS is Windows XP
[exec] Executing 'c:\Program Files\Metrowerks\CodeWarrior\Bin\IDE.exe' with arguments:
'/t'
'epg_lib'
'/b'
'/c'
'Build.mcp'
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!
Sam,
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