Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building bundles intermittently fails with IOException: Failed to save resource. Error 5 #6882

Closed
rseanhall opened this issue Aug 25, 2022 · 4 comments · Fixed by wixtoolset/wix#258
Assignees
Labels
Milestone

Comments

@rseanhall
Copy link
Contributor

rseanhall commented Aug 25, 2022

Bugs

If this issue is a bug:

  • Which version of WiX are you building with?

latest v4 (wixtoolset/wix@52ca00a), though it has happened intermittently in v4 for probably over a year

  • Which version of Visual Studio are you building with (if any)?

VS 2022 17.3.1

  • Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?

N/A - command line

  • Which version of .NET are you building with?

.NET 6.0.8

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

N/A

  • Describe the problem and the steps to reproduce it.

Build the v4 repo. A random bundle from src\test\burn fails to build. I only have the default antivirus from Win11 (previously Win10 also), with an exclusion for the repo's directory.

  • Describe the behavior you expected and how it differed from the actual behavior.

Expected: build passes
Actual:

"C:\wix4\src\test\burn\TestData\TestData.proj" (Build target) (1:2) ->
       "C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj" (default target) (197:7) ->
       (CoreCompile target) ->
         C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error : IOException: Failed to save resource. Error 5 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Dtf.Resources.ResourceCollection.Save(String file) in C:\wix4\src\dtf\WixToolset.Dtf.Resources\ResourceCollection.cs:line 213 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.Burn.Bundles.CreateBundleExeCommand.UpdateBurnResources(String bundleTempPath, String outputPath, WixBundleSymbol bundleInfo, Version fourPartVersion, Byte[] applicationManifestData) in C:\wix4\src\wix\WixToolset.Core.Burn\Bundles\CreateBundleExeCommand.cs:line 358 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.Burn.Bundles.CreateBundleExeCommand.Execute() in C:\wix4\src\wix\WixToolset.Core.Burn\Bundles\CreateBundleExeCommand.cs:line 80 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.Burn.BindBundleCommand.Execute() in C:\wix4\src\wix\WixToolset.Core.Burn\Bind\BindBundleCommand.cs:line 505 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.Burn.BundleBackend.Bind(IBindContext context) in C:\wix4\src\wix\WixToolset.Core.Burn\BundleBackend.cs:line 23 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.Binder.BackendBind(IBindContext context) in C:\wix4\src\wix\WixToolset.Core\Binder.cs:line 67 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.Binder.Bind(IBindContext context) in C:\wix4\src\wix\WixToolset.Core\Binder.cs:line 40 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.CommandLine.BuildCommand.BindPhase(Intermediate output, IReadOnlyCollection`1 localizations, IReadOnlyCollection`1 filterCultures, String cabCachePath, IReadOnlyCollection`1 bindPaths, InputsAndOutputs inputsOutputs, CancellationToken cancellationToken) in C:\wix4\src\wix\WixToolset.Core\CommandLine\BuildCommand.cs:line 313 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.Core.CommandLine.BuildCommand.ExecuteAsync(CancellationToken cancellationToken) in C:\wix4\src\wix\WixToolset.Core\CommandLine\BuildCommand.cs:line 148 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.BuildTasks.WixExeBaseTask.ExecuteCoreAsync(IWixToolsetCoreServiceProvider coreProvider, String commandLineString, CancellationToken cancellationToken) in C:\wix4\src\wix\WixToolset.BuildTasks\WixExeBaseTask_Inproc.cs:line 24 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :    at WixToolset.BuildTasks.ToolsetTask.ExecuteInProc(String commandLineString) in C:\wix4\src\wix\WixToolset.BuildTasks\ToolsetTask_InProc.cs:line 42 [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj]
       C:\Users\rhall\.nuget\packages\wixtoolset.sdk\4.0.0-preview.1-build.507\tools\wix.targets(613,5): error :  [C:\wix4\src\test\burn\TestData\WixStdBaTests\BundleA_v10\BundleA_v10.wixproj
@barnson
Copy link
Member

barnson commented Aug 25, 2022

Seen it on other bundles?

@rseanhall
Copy link
Contributor Author

Yes, see above. "Build the v4 repo. A random bundle from src\test\burn fails to build."

@barnson
Copy link
Member

barnson commented Aug 25, 2022

Just wanted to make sure it isn't solely in an area I've been in. :)

@barnson barnson self-assigned this Sep 8, 2022
@barnson barnson added binder and removed triage labels Sep 8, 2022
@barnson barnson added this to To do in wix.4.0-preview.1 via automation Sep 8, 2022
@barnson barnson added this to the v4.0 milestone Sep 8, 2022
@barnson
Copy link
Member

barnson commented Sep 9, 2022

See also #4791.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants