[wix-users] light.exe(0, 0): error LGHT0001: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

José Ángel Martínez Torres joseangel at digi21.net
Thu Oct 4 01:49:38 PDT 2018


I'm getting the error: "light.exe(0,0): error LGHT0001: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I started to get this error after update Windows 10 to the 1809 version.

If I run the light.exe from the console and not from within Visual Studio, the error and stack trace is the next one:

Windows Installer XML Toolset Linker version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.

light.exe : error LGHT0001 : Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Exception Type: System.AccessViolationException

Stack Trace:
   at Microsoft.Tools.WindowsInstallerXml.Msi.Interop.MsiInterop.MsiGetFileVersion(String filePath, StringBuilder versionBuf, Int32& versionBufSize, StringBuilder langBuf, Int32& langBufSize)
   at Microsoft.Tools.WindowsInstallerXml.Msi.Installer.GetFileVersion(String filePath, String& version, String& language)
   at Microsoft.Tools.WindowsInstallerXml.Binder.UpdateFileRow(Output output, IDictionary`2 infoCache, String modularizationGuid, Hashtable fileRowIndex, FileRow fileRow, Boolean overwriteHash)
  at Microsoft.Tools.WindowsInstallerXml.Binder.UpdateFileInformation(Output output, FileRowCollection fileRows, MediaRowCollection mediaRows, IDictionary`2 infoCache, String modularizationGuid)
   at Microsoft.Tools.WindowsInstallerXml.Binder.BindDatabase(Output output, String databaseFile)
   at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output, String file)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)


If I create a tiny project it works correctly but with my production project, I get the error.
I've cloned the Wix3 repository and after build I tried with the light.exe located in Repos\wix3\build\debug\x86\light.exe but it freezes in the "Updating file information" stage.
I attached then the Visual Studio debugger to the light.exe process and it's unable to pause the light.exe process.



More information about the wix-users mailing list