-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Description
We are getting a fatal error with .Net 7:
[exec] Fatal error. Internal CLR error. (0x80131506)
[exec] at System.Runtime.CompilerServices.CastHelpers.StelemRef_Helper_NoCacheLookup(System.Object ByRef, Void*, System.Object)
[exec] at System.Runtime.CompilerServices.CastHelpers.StelemRef_Helper(System.Object ByRef, Void*, System.Object)
[exec] at System.Collections.Generic.Stack`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Push(System.__Canon)
[exec] at DocumentFormat.OpenXml.OpenXmlElement+d__97.MoveNext()
[exec] at DocumentFormat.OpenXml.OpenXmlPartRootElement.WriteNamespaceAtributes(System.Xml.XmlWriter)
[exec] at DocumentFormat.OpenXml.OpenXmlPartRootElement.WriteTo(System.Xml.XmlWriter)
[exec] at DocumentFormat.OpenXml.OpenXmlPartRootElement.Save(System.IO.Stream)
[exec] at DocumentFormat.OpenXml.OpenXmlPartRootElement.SaveToPart(DocumentFormat.OpenXml.Packaging.OpenXmlPart)
[exec] at DocumentFormat.OpenXml.OpenXmlPartRootElement.Save()
[exec] at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.SavePartContent(DocumentFormat.OpenXml.Packaging.OpenXmlPart)
[exec] at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.TrySavePartContent(DocumentFormat.OpenXml.Packaging.OpenXmlPart)
[exec] at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.SavePartContents(Boolean)
[exec] at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Dispose(Boolean)
[exec] at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Dispose()
...
Reproduction Steps
Unfortunatelly I cannot provide easy reproduction steps.
The error is reproduceable with a specific build of our software in combination with a specific data input (lots of GB of data).
It does not happen with other builds (although we only have very few builds with .Net 7 yet) nor with other input data.
Expected behavior
No error
Actual behavior
Fatal error. Internal CLR error. (0x80131506)
Regression?
Extremely likely an regression in .Net 7.
Never happend in .Net 6 or before.
Known Workarounds
None
Configuration
.Net 7.0.0.0 in Windows X64
Other information
No response