It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MSBuild locks up just before creating the DLL

Given:

  • Using Bamboo version 6.10.4 build 61009, 21 Nov 19
  • Running on Windows server 2012
  • Starting builds manually using start-bamboo.bat
  • Using MSBuild to compile C
  • License is the $10.00 version, recently paid

 

Issue:

When the compile starts, the obj are Making and made, but when it gets to :myprogram.lib : myprogram.exp changed" it locks up.  I thought it was just slow so I left it there for an hours, and it was still hung.

If myprogram.sln is compiled in the IDE, it compiles ok.  If I call the compiler via the command line, it compiles ok.  If I call MSBuild through Bamboo, it hangs when creating the DLL.  If I use Bamboo and setup my Default Job to use the Command Line task instead of MSBuild built in task to call MSBuild, it hangs.

I have passed MSBuild the .sln and the project file, it does not matter, Bamboo still hangs.

Are there any MSBuild configurations that are know to work?

Any ideas at all why this hangs when generating the dll?

 

Thanks,

Carl

 

1 answer

1 vote
Jimmy_Seddon Community Leader Jan 21, 2020

Hi @Carl Davis,

Welcome to the Community!

We have been using Bamboo for quite some time, most of our builds are C#, those we have recently started using .NET Core and we still have once legacy C++ build that happens.

When you mention that running via MSBuild directly without using Bamboo works is that being done on the same machine that Bamboo is installed on?

The first thing that comes to mind for me when I hear things are hung is if enough system resources are available for the Bamboo server.

I start by clicking on the admin cog in the Bamboo interface and in the left hand menu go to the very bottom and click on the "Troubleshooting and support tools link"  Then in the main page that comes up click on the log analyzer tab and wait for it to load.  This will give you a summary of all the errors that are being reported in your system log file.  I'd start by looking there to see if anything is wrong.

I hope that helps!

-Jimmy

Thanks for the suggestion Jimmy.

"Hercules didn't find any known problems in the following log file:"

Good suggestion and I will monitor that location in the future.

And, yes to your earlier question.  Same box (vm), same code base, same folders listed in the command line options, etc.  Sometimes I wish there were more detailed logging to what is going on.  MsBuild does not report anything in the Bamboo logs, there are no errors from Bamboo, nothing.  MsBuild just hangs and reports about 53% CPU usage in Task Manager.  If I use TaskManager and kill MsBuild, Bamboo knows it stopped and continues with the log stating "Failing task since return code of ...MsBuild ...rsp was 1 while expected 0".

But, if the same folders, same machine, same everything is run at the command line, it succeeds but fails with Bamboo.  I'm basically at a loss.

There wouldn't happen to be a limit to the size of the .dll produced in Bamboo, right?  My resulting dll is just over 20 Mb, but that would be the MsBuild, and not Bamboo.  Right?

 

Thanks,

Carl

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

1,434 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you