Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Oct 25, 2024 7:22 pm

Unfortunately, we've discovered another bug in Spire.Xls 13.9.0 & 14.7.3 / Spire.Doc 12.71. (or some combination thereof). In some circumstances, generating a .doc file followed by an .xlsx file will result in a crash. In our testing, we found that generating a Word file, then converting two or more Excel files to a pdf, then generating another Word document results in an unrecoverable (not caught even with a bare try / except) crash. The trick also seems to be that both file kinds need to have images included in them.

This bug is present when using either of Spire.Xls 13.9.0 or 14.7.3.

Code: Select all
Unhandled Exception: System.InvalidCastException: Arg_InvalidCastException
   at System.Runtime.TypeCast.CheckCastClass(MethodTable*, Object) + 0x2b
   at SkiaSharp.SKAbstractManagedStream.ReadInternal(IntPtr s, Void* context, Void* buffer, IntPtr size) + 0xcc
   at Spire.Doc.Base!<BaseAddress>+0x29119d0


We have created an MWE at https://github.com/EricRobertCampbell/s ... -excel-mwe. Please let us know if there's some additional information we can provide to help expedite this process.

ericcampbell
 
Posts: 8
Joined: Thu Jun 27, 2024 10:39 pm

Mon Oct 28, 2024 9:39 am

Hello,

Thank you for your feedback. Yes, after testing this code, we have reproduced the issue. Our Dev team are assisting in investigating the root cause, this issue is logged on SPIREDOC-10899. Once there is any update, I will let you know as soon as possible.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1271
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.XLS