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.

Tue Nov 26, 2024 8:40 pm

Good morning,

When generating a sequence of word and excel files which include images, the following error occurs:

Code: Select all
Unhandled Exception: System.TypeInitializationException: TypeInitialization_Type_NoTypeAvailable
 ---> System.InvalidOperationException: The version of the native libSkiaSharp library (88.1) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [80.3, 81.0).
   at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Version, Version, Boolean) + 0x271
   at SkiaSharp.SKObject..cctor() + 0x25
   at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xb9
   Exception_EndOfInnerExceptionStack
   at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xaf
   at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnNonGCStaticBase(StaticClassConstructionContext*, IntPtr) + 0x9
   at SkiaSharp.SKObject.DeregisterHandle(IntPtr, SKObject) + 0x14
   at SkiaSharp.SKObject.set_Handle(IntPtr) + 0x24
   at SkiaSharp.SKNativeObject.Finalize() + 0x10
   at System.Runtime.__Finalizer.DrainQueue() + 0x66
   at System.Runtime.__Finalizer.ProcessFinalizers() + 0x3e
[1]    13175 IOT instruction (core dumped)  ./crash_change.py


This occurs when using Spire.Xls 13.9.3, Spire.Doc 12.7.1, Ubuntu 22.04.1 LTS, Python 3.9.16.

I've also created a MWE at https://github.com/EricRobertCampbell/s ... -excel-mwe

As always, any workarounds or fixes would be greatly appreciated.

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

Wed Nov 27, 2024 6:32 am

Hello,

Thank you for your message.
I have found that you previously communicated a similar issue with my colleague via email, and my colleague has already logged your issue into our bug tracking system. I have reproduced the new error situation you mentioned, which may be caused by a different version of Skiasharp used internally. I have added the new error details to SPIREDOC-10899. The development team will investigate it as soon as possible, and we will keep you updated once there are any developments. I apologize for any inconvenience caused.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Thu Jul 10, 2025 3:32 am

Hello,

Thank you for your patience.
Kindly note that our latest Spire.Doc for Python Version:13.6.4 and Spire.XLS for Python Version:15.5.0 have been optimized for this issue. Please use the latest version for testing.

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Return to Spire.XLS