# FBCMD hangs after build is completed

**URL:** https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237
**Category:** Discussion
**Created:** [January 9, 2014, 8:21am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237 "2014-01-09T08:21:12Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 9, 2014, 8:21am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/1 "2014-01-09T08:21:12Z")

</div>

Hi everyone,

&nbsp;when using Continua to build our FInalBuilder projects the builds will occasionally run forever even though the actual build script has finished long ago. The cause seems to be that the FBCMD.exe does not terminate after the script is finished so that Continua does not know that the build is finished.

Is there a way to fix these hang ups?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 9, 2014, 8:50am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/2 "2014-01-09T08:50:41Z")

</div>

We have been chasing a shutdown bug but have yet to get confirmation from the person who reported the bug that it’s fixed or not. This build has the fix we gave the other customer :   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700\_2639.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_2639.exe)   
  
 Also, can you check in your %TMP% folder on the agent machine when logged in as the same user the agent runs under, if there is a bugreport.txt file there, please email it to support @ [finalbuilder.com](http://finalbuilder.com) so we can check if it’s the same issue or not.

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 9, 2014, 11:40am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/3 "2014-01-09T11:40:13Z")

</div>

I could not find a bugreport.txt. I was able to extract a stack trace with madExcept in the hopes that it might help. I have sent that.   
 We will try the new build and see if that improves the situation.

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 9, 2014, 1:27am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/4 "2014-01-09T01:27:49Z")

</div>

Unfortunately build 2639 does not seem to be working for us at all. We set a FB variable to “[C:\CI\_WS\Ws\1774\Temp]” at the start.   
 This path is used as a unit output directory in a “Build Delphi” action later on. When running this action however we receive an error like   
 “F2039 Could not create output file ‘UC:\CI\_WS\Ws\1774\Temp\sdDebug.dcu’”   
 I have no idea where that extra U in the path would come from.   
  
 After downgrading back to 2610 it works just fine.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 9, 2014, 2:06am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/5 "2014-01-09T02:06:03Z")

</div>

What version of Delphi are you using?

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 9, 2014, 2:28am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/6 "2014-01-09T02:28:09Z")

</div>

We are using Delphi XE.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 10, 2014, 9:13am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/7 "2014-01-10T09:13:07Z")

</div>

The update posted today should fix the extra character in the path. It also has previous fix applied for a shutdown issue.

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 10, 2014, 9:55am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/8 "2014-01-10T09:55:12Z")

</div>

Thanks. I have now updated FinalBuilder and will see if it helps with the shutdown problems.

---

<div class="post-metadata">

### Author: ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)
#### Post date: [January 10, 2014, 10:50am UTC](https://www.finalbuilder.com/forums/t/fbcmd-hangs-after-build-is-completed/2237/9 "2014-01-10T10:50:09Z")

</div>

Sadly we still see problems with FBCMD not terminating properly after a build even with build 2641. The stack trace seems to be identical.
