Bug Report T313900
Visible to All Users

An application hangs and crashes with OutOfMemoryException on loading a specific document into XtraSpreadsheetControl

created 9 years ago

The issue is reproduced only when there is no enough available space to display document content entirely.
Error: "Array dimensions exceeded supported range."
Call stack:
DevExpress.Spreadsheet.v15.1.Core.dll!DevExpress.XtraSpreadsheet.Layout.Engine.PageBordersCalculator.CalculateBordersCore(int secondaryGridIndex, System.Collections.Generic.IEnumerable<DevExpress.XtraSpreadsheet.Layout.BorderLineBox> boxes) Line 253 C#
DevExpress.Spreadsheet.v15.1.Core.dll!DevExpress.XtraSpreadsheet.Layout.Engine.PageBordersCalculator.CalculateBorders() Line 136 + 0x40 bytes C#
DevExpress.Spreadsheet.v15.1.Core.dll!DevExpress.XtraSpreadsheet.Layout.Engine.FinalDocumentLayoutCalculator.GeneratePages(System.Collections.Generic.List<DevExpress.XtraSpreadsheet.Layout.Engine.PreliminaryPage> preliminaryPages, bool verticalPages, System.Drawing.Size headerOffset) Line 662 + 0x64 bytes C#
DevExpress.Spreadsheet.v15.1.Core.dll!DevExpress.XtraSpreadsheet.Layout.Engine.DocumentLayoutCalculator.CalculateLayoutByAnchor(DevExpress.XtraSpreadsheet.Layout.Engine.DocumentLayoutAnchor anchor, DevExpress.XtraSpreadsheet.Model.CellRange printRange) Line 420 + 0x5d bytes C#
DevExpress.Spreadsheet.v15.1.Core.dll!DevExpress.XtraSpreadsheet.Internal.InnerSpreadsheetControl.CalculateDocumentLayout(DevExpress.XtraSpreadsheet.Layout.Engine.DocumentLayoutAnchor anchor) Line 322 C#
DevExpress.Spreadsheet.v15.1.Core.dll!DevExpress.XtraSpreadsheet.Internal.InnerSpreadsheetControl.DesignDocumentLayout.get() Line 310 C#
DevExpress.XtraSpreadsheet.v15.1.dll!DevExpress.XtraSpreadsheet.Drawing.SpreadsheetControlPainter.RenderDocument(DevExpress.Utils.Drawing.GraphicsCache cache) Line 154 + 0x36 bytes C#
DevExpress.XtraSpreadsheet.v15.1.dll!DevExpress.XtraSpreadsheet.Drawing.SpreadsheetControlPainter.PerformRenderingInUnits(DevExpress.Utils.Drawing.GraphicsCache cache, DevExpress.XtraSpreadsheet.Drawing.DrawDelegate draw) Line 149 + 0xa bytes C#
DevExpress.XtraSpreadsheet.v15.1.dll!DevExpress.XtraSpreadsheet.Drawing.SpreadsheetControlPainter.Draw(System.Drawing.Graphics gr) Line 72 C#
DevExpress.XtraSpreadsheet.v15.1.dll!DevExpress.XtraSpreadsheet.SpreadsheetControl.OnPaint(System.Windows.Forms.PaintEventArgs e) Line 58 C#

Answers approved by DevExpress Support

created 9 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.