[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.
rob at firegiant.com
Thu Oct 4 09:47:33 PDT 2018
Looks like the Win32 API ::MsiGetFileVersion() (https://docs.microsoft.com/en-us/windows/desktop/api/msi/nf-msi-msigetfileversionw) is crashing on your file. Something odd about that file?
Short replies here. Complete answers over there: http://www.firegiant.com/
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of José Ángel Martínez Torres via wix-users
Sent: Thursday, October 4, 2018 1:50 AM
To: wix-users at lists.wixtoolset.org
Cc: José Ángel Martínez Torres <joseangel at digi21.net>
Subject: [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.
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 18.104.22.1688 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
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.
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users