Crash on shutdown

Hi,

we use finalbuilder with our continuous integration server (cruisecontrol.NET). Sometimes we get the following access voilation. This is very annoying because the build itself is successfull. We can not see why this is happening. BTW, This is a Windows Server 2008 running in VMWare ESX Server.

TIA

Unhandled Exception!

Hi,

we also tried it with finalbuilder 6. The error exists also in this version. Please find an other error log appended.

TIA

Hi

I've not been able to reproduce this here and we have not had any other reports of this. Has this recently started happening, have there been any changes to the version of cruisecontrol.net you are using (you don't say which version)?

 

Hi,

thank you for your reply. When executing from the command line on a Vista SP1 we are also not able to reproduce this. The error occours on an Windows Server 2008 32bit. We are using cruisecontrol.net version 1.4.0.3524 but i think that this isnt the cause. The user which executes the fbcmd process is a domain user and the cruisecontrol (IIS worker process) runs under this account.

TIA

Hi,

i have to correct myself. In this moment i also got this error when compiling on an Vista SP1. It turns out that it happens also when using fbcmd in an interactive session. I dont know why this is happening. An idea: We are using the action "include project" excessive.

TIA

Hi

Please send your fb project file to support at finalbuilder dot com so we can try to reproduce the problem here.

 

This should be resolved in this build, please let us know if that is not the case (I am assuming it's related to FMCMD hanging on shutdown) :

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1143.exe

 

The problem with the FBCMD hanging on the command line on the client is solved now. But i still randomly get the access violation on shutdown (on the build server and on the client). My main problem is our build server. The build (the projects) itself is compiling ok but FB is crashing. The build system then marks the complete build as broken. Very annoying.

TIA

Hi

So far I have not been able to reproduce this error here. Are you able to make it happen with a test project that you could send us?

 

 

I send you our build scripts previously. The problem ist still there. Our integration process is really blocked by this bug(?).

I cant reproduce it with simple projects. So i really dont know how i can provide more to help fixing this issue.

Hi

We have not been able to reproduce the issue here, and while seeing your project files is useful, it’s not practical to run them here.

All I can suggest is that you try a more recent build, there have been some minor changes to shutdown in fbcmd, however those changes were intended to deal with shutting down when running under fbserver so I’m not sure they would come into play.

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1216.exe

Hi

fbcmd is also crashing with this build. The occurences are lesser in my feeling but they are there. We werent be able to build a simple test case for this. I have sent you an complete log output for further investigations.

Hi

Thanks for log file, I have made some more changes which I hope might resolve this, but it’s difficult to be sure as I have not been able to reproduce the problem. Here’s todays test build with the changes included :

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1231.exe

Hi,

with this build we get sometimes an other error during the build, which is somewhat worse then the exception at the end which were present in the previous builds.

Please let us know what we can do to come to an solution.

Thanks

Umm… it’s difficult to tell you how to solve the problem if you don’t tell us exactly what is happening. What is the error you are seeing? Please email the exception report to support at finalbuilder.com

Umm, sorry i’ve forgotten to append the exception report.

This error seems to come from a variable declaration. Probably the error has the same reason as the other error on shutting down off fbcmd. This is only a shot in the dark.


Unhandled Exception!

Hi

I just had a look through the project files you sent us a while back and I don’t see the one that was used according to the exception report. Can you send it by email to support at finalbuilder.com so we see if we can reproduce the problem. Also, please send any exception reports to support rather than posting them here… our forums software seems to have problems with such large posts.

I have been trying to reproduce this exception this morning but so far it is working as expected, so we really need to narrow down a test case for this. Are you able comment parts of the build process out until the error goes away? That might help us work out a scenario where we can reproduce the problem here. I would prefer to work through this by email rather than create a lengthy thread here.

Hi Vincent,

i have tried to find a pattern for this but with no real result so far. We are using only standard actions and two own actions which are implemented in c#. This two actions are derived from VSoft.CustomActionApi.StandardAction and using the following services provided by Finalbuilder:

Context.Properties.get_PropertiesByName
Context.SetVariable
Context.GetVariable
Context.TryExpandExpression

Thats all. Probably some of this calls are responsible for the crash. We have one suggestion for solving this very very annoying problem. We could provide a machine to which you can connect via rdp. There you could try to find out yourself whats going on. My business manager is accepting this solution on the condition that there is only a very short window to access this machine.



Hi

Allowing remote access may help, however I would like to try a few other things first. On your command line for fbcommand, add -LOGEXCEPTIONS

This will created a file in your temp folder (use %temp% in explorer to find it when logged in as the same user fbcmd runs under) called exceptions.txt - if any exceptions are raised (whether they are handled or not). This might provide some insight into where things are going wrong. It’s possible we are handling an exception and that is hiding the real cause, as the stack traces I have see so far make no sense as to the the cause of the error.

Also, while trying to reproduce this error today, I did find another resource contention error which resulted in an exception occurring. This may or may not be related, as to get it to happen I had to use several “include project” actions under and async group, where they were all running the same project file. I will post a link to a build with the fix for this issue later today.


Hi

This build has the bugfix for the issue I mentioned in my previous post, it may solve the issue you are having :

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1256.exe