Sehremis
Posts: 12
Joined: Mon Nov 20, 2017 3:28 pm

Advanced Installer Team City plugin ~ Build Step fails

Hello everyone,

this is a tricky problem, and I'm at my wit's end here.

As of yesterday, one of our Team City builds using the Advanced Installer fails during the Advanced Installer step. It either runs infinitely long until it times out, or it out right crashes with the following error in the build log:

Code: Select all

[15:10:54]Step 9/12: Build Installer (Advanced Installer) (2s)
[15:10:54][Step 9/12] Starting: "C:\Program Files (x86)\Caphyon\Advanced Installer 14.5.1\bin\x86\AdvancedInstaller.com" /execute "C:\Advanced Installer\Lean Buyer.aip" C:\TeamCity\buildAgent\temp\globalTmp\aic7202179701036934354.tmp
[15:10:54][Step 9/12] in directory: C:\TeamCity\buildAgent\work\7b8b9241c5674a3
[15:10:55][Step 9/12] Build
[15:10:55][Step 9/12]  
[15:10:55][Step 9/12] Checking builds status 
[15:10:55][Step 9/12] All builds are up to date.
[15:10:55][Step 9/12]  
[15:10:55][Step 9/12] Build finished successfully.
[15:10:56][Step 9/12] [EXCEPTION_UNHANDLED] (0xc0000005) at address [0x0236a93e]
[15:10:56][Step 9/12] 
[15:10:56][Step 9/12] Advanced Installer 14.5.1 build 83086
[15:10:56][Step 9/12] *** Stack Trace (x86) ***
[15:10:56][Step 9/12] 
[15:10:56][Step 9/12] [0x0236a93e]  -----
[15:10:56][Step 9/12] [0x00f51fb5]  -----
[15:10:56][Step 9/12] [0x00ff790f]  -----
[15:10:56][Step 9/12] [0x01020106]  -----
[15:10:56][Step 9/12] [0x00f61ae7]  -----
[15:10:56][Step 9/12] [0x00f61a78]  -----
[15:10:56][Step 9/12] [0x00f174c5]  -----
[15:10:56][Step 9/12] [0x00fab19d]  -----
[15:10:56][Step 9/12] [0x00faaf98]  -----
[15:10:56][Step 9/12] [0x023a32e1]  -----
[15:10:56][Step 9/12] [0x023a368f]  -----
[15:10:56][Step 9/12] [0x02354012]  -----
[15:10:56][Step 9/12] [0x75c562c4]  BaseThreadInitThunk()
[15:10:56][Step 9/12] [0x77b80fd9]  RtlSubscribeWnfStateChangeNotification()
[15:10:56][Step 9/12] [0x77b80fa4]  RtlSubscribeWnfStateChangeNotification()
[15:10:56][Step 9/12] [0x00c60000]  MODULE_BASE_ADDRESS
[15:10:56][Step 9/12] 
[15:10:56][Step 9/12] Process exited with code -1073741819
[15:10:56][Step 9/12] Step Build Installer (Advanced Installer) failed
I've already tried updating both the Advanced Installer and the Advanced Installer Team City plugin to the newest versions (and adjusted the paths in the build steps accordingly), but that didn't change the error at all.

Also, manually building the installer using Advanced Installer works just fine.

I've compared the build logs of previous successful builds with this one, and was able to discern quickly that the divergence happens in the first few lines:

Code: Select all

[11:20:18]Step 9/12: Build Installer (Advanced Installer) (2m:01s)
[11:20:18][Step 9/12] Starting: "C:\Program Files (x86)\Caphyon\Advanced Installer 14.5.1\bin\x86\AdvancedInstaller.com" /execute "C:\Advanced Installer\Lean Buyer.aip" C:\TeamCity\buildAgent\temp\globalTmp\aic4671498522416915578.tmp
[11:20:18][Step 9/12] in directory: C:\TeamCity\buildAgent\work\7b8b9241c5674a3
[11:20:19][Step 9/12] Build
[11:20:19][Step 9/12]  
[11:20:19][Step 9/12] Checking builds status 
[11:20:19][Step 9/12] Build required. 
[11:20:19][Step 9/12] 
[11:20:19][Step 9/12] [ DefaultBuild ] 
[11:20:19][Step 9/12] Building package: C:\Advanced Installer\Lean Buyer-SetupFiles\Install Netfira Lean Buyer.exe 
[11:20:20][Step 9/12] Prepare build 
[11:20:29][Step 9/12] Preparing files 
[11:22:11][Step 9/12] Creating CAB file(s) 
[11:22:14][Step 9/12] Creating MSI database 
[11:22:14][Step 9/12] Writing Summary Information 
[11:22:19][Step 9/12] Creating EXE file 
[11:22:19][Step 9/12] Validating MSI 
[11:22:19][Step 9/12]  
[11:22:19][Step 9/12] Total build time: 1 min 59 sec.
[11:22:19][Step 9/12]  
[11:22:19][Step 9/12] Build finished successfully.
[11:22:20][Step 9/12] Process exited with code 0
So, my current assumption is that this happens because the AdvancedInstaller runner wrongly determines that "All builds are up to date" and consequentially does not start a build as it should.

How can I fix this? Could there be some remnant in TeamCity that makes the AdvancedInstaller runnner believe the builds are up to date? I noticed that this error first started occurring after large number of successively cancelled builds, which resulted as a consequence of repository changes and merges.

Alternatively, is there a way I can tell the AdvancedInstaller runner to skip the "Checking builds status" check and start a fresh build in any case, such as "clean rebuild" or something? Regrettably, I wasn't able to find any documentation on the advanced options of the Advanced Installer Team City plugin.

Any help would be greatly appreciated.

Thanks in advance,
Kira Resari
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced Installer Team City plugin ~ Build Step fails

Hello Kira,

I've tested the scenario but I cannot replicate the error. Can you please send us your AIP (project file) to support at advancedinstaller dot com so we can investigate its settings? Also, if you could send us a screenshot with your Advanced Installer build step configuration this will be useful too.

Also, to force a setup rebuild each time you can add the "rebuild" command in the "Commands" section of your Advanced Installer build step.
screenshot.jpg
screenshot.jpg (159.6 KiB) Viewed 3321 times
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sehremis
Posts: 12
Joined: Mon Nov 20, 2017 3:28 pm

Re: Advanced Installer Team City plugin ~ Build Step fails

Hi Daniel,

by now, I managed to work out a solution.

Apparently, there was still some sort of "Zombie File" in the work directory of the TeamCity build agent. What I believe happened is that the AdvancedInstaller build runner found that Zombie File, thought that the build had already completed, and tried using that file instead. However apparently, the file was corrupted for it caused this crash.

I managed to fix this by deleting the build agent work directory, which caused the build agent to start a new work directory from scratch, and then it worked.

But hank you anyway.

Cheers,
Kira
=^,^=
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced Installer Team City plugin ~ Build Step fails

You are always welcome Kira.

Thank you for your follow up on this. I'm sure your findings could be useful for future users too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”