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
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
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