Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Visual Studio builder gets stuck after successful build


I am using Bamboo version 7.2.2 and I have a builder task that uses the Visual Studio (devenv.exe) executable to build a C++ API. My solution consists of 2 projects, and I build with the option "/rebuild Release" and platform x86.

The job's log shows that Visual Studio has succeeded in building the 2 projects, but Bamboo never ends the task; it gets stuck for hours, and therefore the following tasks in the stage are never executed.

This is the last message in the job's log, which is, in fact, the output from Visual Studio:

15-Mar-2021 11:58:33 ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

On the other hand, the Bamboo log file shows the following lines regarding the build process and the hung state:

2021-03-15 11:57:36,595 INFO [19-BAM::Default Agent::Agent:pool-44-thread-1] [ProcessServiceImpl] Beginning to execute external process for build 'Tests - Test_Src - Default Job #53 (TESTS-TESTSRC-JOB1-53)'\n ... running command line: \nC:\Atlassian\ApplicationData\bamboo-home\DotNetSupport\devenvrunner.bat C:\Atlassian\ApplicationData\bamboo-home\xml-data\build-dir\TESTS-TESTSRC-JOB1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community x86 test.sln /rebuild Release\n ... in: C:\Atlassian\ApplicationData\bamboo-home\xml-data\build-dir\TESTS-TESTSRC-JOB1\n
2021-03-15 12:18:35,619 WARN [scheduler_Worker-7] [BuildHangingMonitor] Bamboo has detected that TESTS-TESTSRC-JOB1-53 may have hung.
2021-03-15 12:18:35,620 WARN [scheduler_Worker-7] [BuildHangingMonitor] Time Since Last Log: 1202577, Max log time: 1200000
2021-03-15 12:18:35,641 WARN [scheduler_Worker-7] [BuildHangingMonitor] Expected Build Time: 5055.0, Current Build Time: 1259029

Looking at both logs, the build process took around a minute to be executed (which is normal), and around 20 minutes later Bamboo noticed that it was hung. Unfortunately, there's no more feedback that could give me a hint of what could be wrong.

I have tested this behavior with a very simple Hello World solution, consisting of a single C++ console app project. I get the same results; the executable is compiled correctly and the log shows that it was successfully built, but the builder task hangs forever.

I would appreciate any clues to solve this issue. Thanks in advance!

0 answers

Suggest an answer

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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

215 views 0 4
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