You could try moving to a more recent build.  There were some minor fixes but nothing that I think will actually fix this.  I’m a bit at a loss on how to even go about debugging this.  What version of the CLR are you running?  I wonder if maybe there is a double Dispose() in the code somehow. 

 

Does this happen often?  Is there a way to get a debugger on it?  We could pull the exception handler off of light.exe to see if we can’t get it to fault into the default debugger on the machine if it repros often.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ilya Kleyman
Sent: Thursday, October 05, 2006 9:34 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Access violation in light.exe (v2.0.4005.0)

 

Wix-Users,

 

We are seeing the following access violation in light.exe (filever 2.0.4409.0) that seems to have something to do with concurrent invocation of two instances of light.exe. Has anyone seen something similar?

 

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

  at Microsoft.Tools.WindowsInstallerXml.Msi.Interop.MsiInterop.MsiCloseHandle(IntPtr database)

  at Microsoft.Tools.WindowsInstallerXml.Msi.MsiHandle.Close()

  at Microsoft.Tools.WindowsInstallerXml.Msi.MsiHandle.Dispose(Boolean disposing)

  at Microsoft.Tools.WindowsInstallerXml.Msi.MsiHandle.Finalize()

 

Two build threads simultaneously laying out two different MSIs were working at the time of failure (prefix at the beginning of each line is build-thread index)

Excerpts from the build-log showing the immediate pre-history of the problem is below.

“Stop.” message indicates that the build thread has finished its work. I am omitting non-essential information for clarity.

 

101>        tools\light.exe -nologo -wx -v0 -out XXXX.msi Xa.wixobj Xb.wixobj Xc.wixobj Z1.wixobj Z2.wixobj sca.wixlib wixca.wixlib

102>        tools\light.exe -nologo -wx -v0 -out YYYY.msi Ya.wixobj Yb.wixobj Yc.wixobj Z1.wixobj Z2.wixobj sca.wixlib wixca.wixlib 102>Updating file information.

101>Updating file information.

102>Generating database.

102>Merging modules.

101>Generating database.

101>Merging modules.

102>Processing media information.

102>Cabbing file X0001.aaa

. . . . <68 files>

101>Processing media information.

101>Cabbing file Y0001.bbb

. . . . <149 files>

102>Importing streams.

102>Importing binary stream from X0001.ccc

. . . . <12 streams, icons, cabs>

101>Importing streams.

101>Importing binary stream from Y0001.ddd

. . . . <15 streams, icons, cabs>

102>Laying out media.

102>Moving file  ‘. . . .\txxd3s8j\XXXX.msi' to  ‘ . . . XXXXX.msi'.

. . .

102>Stop.

. . . .

101>Laying out media.

101>Moving file ‘. . . \b4fepmve\YYYY.msi' to   ‘. . . YYYY.msi’.

101>Copying file ‘. . . \DIR1\ABCDEF.sys' to ‘. . .\DIR2\ABCDEF.sys'.

. . .

101>

101>Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

101>   at Microsoft.Tools.WindowsInstallerXml.Msi.Interop.MsiInterop.MsiCloseHandle(IntPtr database)

101>   at Microsoft.Tools.WindowsInstallerXml.Msi.MsiHandle.Close()

101>   at Microsoft.Tools.WindowsInstallerXml.Msi.MsiHandle.Dispose(Boolean disposing)

101>   at Microsoft.Tools.WindowsInstallerXml.Msi.MsiHandle.Finalize()

. . .

101>NMAKE : fatal error U1077: ‘. . \tools\light.exe' : return code '0xc0000005'

101>Stop.

 

Thanks,

 

Ilya

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to