SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Error during parallel build

Hi AI-Team,
our installation executables are created on a single server using command line advanced installer. Because we have different branches the executables are created parallel from time to time. In those situations a build fails from time to time...the log shows the following message:

"Compressing MSI database... done.

Creating EXE file...

Error opening file: "C:\Program Files (x86)\Caphyon\Advanced Installer\stubs\x86u\decoder.dll""

I think this error happens because of the parallel execution of the builds. We still would like to build our branches parallel, any ideas how to prevent this error without switching to single builds at a time?

An automatic retry option for example could be helpful in those cases :).
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error during parallel build

Hello,

I'm not sure why this happens. The only restriction when launching multiple Advanced Installer builds is to not build the same .aip (project file) using the same output build location for each instance of your build. If this is the case, then the Advanced Installer builds operations will fail.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mhyllander
Posts: 11
Joined: Mon Oct 01, 2012 3:14 pm

Re: Error during parallel build

Hi,

I have this problem too. I'm also running two instances of AI in parallel, in two completely separate folders. Therefore I think the only common resources used by both builds are the ones provided by AI itself.

Now and then I get the following error message:

Creating EXE file... Error opening file: "C:\Program Files (x86)\Caphyon\Advanced Installer 11.7.1\stubs\x86\decoder.dll

I assume AI reads decoder.dll ("LZMA decoder module") and includes it in the exe. I'm guessing that the error occurs when both AI instances happen to open the file at the same time. Can it be that AI is opening the file with exclusive access (https://msdn.microsoft.com/en-us/librar ... 85%29.aspx, dwShareMode==0)?

Thanks,
Magnus
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error during parallel build

Hello Magnus,

In order to further investigate this it would be really useful if you could isolate the behavior in a pattern (detailed step by step test case or a buildable sample) and send it us so we can test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mhyllander
Posts: 11
Joined: Mon Oct 01, 2012 3:14 pm

Re: Error during parallel build

Hi Daniel,

That was easy. I just created a simple installer that builds an exe with LZMA compression. I copied that to four identical folders. I added batch files to start four AI instances in parallel (one in each folder). I started the experiment (run_ai.bat) and I got the error on the first try. The first instance (inst1) succeeded, while the other three (inst2, inst3 and inst4) failed. See the file build.log in each inst* folder.

Try it a few times and see if you also get the error! (Note that I was using AI 11.8 in this example and that the path is hardcoded in the run_build.bat files.)

Best regards,
Magnus
Attachments
AI-parallel-error.zip
Example to reproduce error
(785.93 KiB) Downloaded 543 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error during parallel build

Hello Magnus,

Thank you for the sent sample. I've tested the scenario and I was able to replicate the behavior. This seems to be an Advanced Installer issue. I've opened a ticket in our bug tracking system so we can investigate and try to add a fix for this in a future version of Advanced Installer. Thank you for bringing this to our attention. We'll notify you as soon as a fix will be out.

Until then, I'm afraid I'm not aware of any workaround you can use.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Error during parallel build

Hello,

This was fixed in version 12.0 of Advanced Installer released on April 2nd, 2015 .

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”