[wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

Rob Mensching rob at firegiant.com
Tue Sep 1 00:27:50 PDT 2015


Leave out the PayloadGroupRef. The binder will find the loose files of the MSI.

If it persists, would be a bug.


Note: the perf on the caching of this package will be very bad due to an unrelated burn design limitation (that IIRC is fixed in v3.10).
_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Andreas Janzen
Sent: Monday, August 31, 2015 11:47 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] LGHT0001 : Exception of type 'System.OutOfMemoryException' was thrown

I'm trying to create a bundle for my installer. The bundle contains among other thing an msi package of a third-party product. In addition to msi file, this package includes a directory structure with about 11000 files. The directory structure must be stored in the same directory as the msi file at the moment of installation.

MsiPackage element looks like:
    <MsiPackage Id="3rd.Client" DisplayName="3rd-party product" SourceFile=".\3rd\Client_32.msi" Compressed="yes" >
      <PayloadGroupRef Id="3rd.Client.Payload" />
    </MsiPackage>

PayloadGroup element looks like (I've generated it with PowerShell):
        <PayloadGroup Id="3rd.Client.Payload ">
          <Payload SourceFile="<Payload-Directory>\<File-1>" Name="<Target-Directory>\<File-1>" />
          <Payload SourceFile="<Payload-Directory>\<File-2>" Name="<Target-Directory>\<File-2>" />
    .....
If I'm trying to build the project in Visual Studio, light.exe is running for >20 minutes and then crashes with LGHT0001: Exception of type 'System.OutOfMemoryException' was thrown

Exception Type: System.OutOfMemoryException

Stack Trace:
   at System.Collections.Generic.Dictionary`2.Resize(Int32 newSize, Boolean forceNewHashCodes)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)
   at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)
   at System.Collections.ObjectModel.Collection`1.Add(T item)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.Item.AddAfter(Item after, IMessageHandler messageHandler)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.Item.AddAfter(ItemCollection items, IMessageHandler messageHandler)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.Item.FlattenAfters(IMessageHandler messageHandler)
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.FlattenOrdering()
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.LoadFlattenOrderGroups()
   at Microsoft.Tools.WindowsInstallerXml.WixGroupingOrdering.FlattenAndRewriteGroups(String parentType, Boolean removeUsedRows)
   at Microsoft.Tools.WindowsInstallerXml.Linker.FlattenBundleTables(Output output)
   at Microsoft.Tools.WindowsInstallerXml.Linker.Link(SectionCollection sections, ArrayList transforms, OutputType expectedOutputType)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)


Is my approach correct from conceptual point of view? What else could I do?

Thanks in advance.
Andreas
________________________________

Infoman AG
Meitnerstraße 10 | 70563 Stuttgart | Tel.: +49711679710 | http://www.infoman.de Vorstand / Executive Board: Dr.-Ing. Rainer Bamberger (CEO), Dipl.-Ing. Michael Freudenberg (CTO), Stephan Göbel (CSO) Aufsichtsratsvorsitzender / Chairman Of The Supervisory Board: Andrew White Sitz der Gesellschaft / Place Of Business: Stuttgart HRB / Entry In The Commercial Register: Amtsgericht Stuttgart, HRB 21228
Bankverbindung: BW-Bank, BLZ 600 501 01, Kto. 2 933 591, BIC: SOLADEST, IBAN: DE02 6005 0101 0002 9335 91

Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-Mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-Mail aus Ihrem System.

This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list