Skip to content

[BUG] Unable to find an entry point named 'sk_region_op2' in shared library 'libSkiaSharp' #3119

Open
@WouterDevExperts

Description

Description

I use the FreeSpire.XLS library version 14.2.0 in a Docker Linux environment.
When I create a new workbook ( var workbook = new Workbook(); ) I get this error:

System.TypeInitializationException: The type initializer for 'Spire.Xls.Core.Spreadsheet.XlsPageSetupBase' threw an exception.
---> System.TypeInitializationException: The type initializer for 'spr娮' threw an exception.
---> System.EntryPointNotFoundException: Unable to find an entry point named 'sk_region_op2' in shared library 'libSkiaSharp'.
at SkiaSharp.SkiaApi.sk_region_op2(IntPtr r, IntPtr src, SKRegionOperation op)
at SkiaSharp.SKRegion.Op(SKRegion region, SKRegionOperation op)
at spr揼.幥()
at spr揼.庚(spr憀 A_0)
at spr揼.帰(spr눾 A_0)
at spr憀.惡()
at spr憀.幥(spr눾 A_0)
at spr꺹.帰(spr憀 A_0)
at spr憀.態()
at spr娮..cctor()
--- End of inner exception stack trace ---
at Spire.Xls.Core.Spreadsheet.XlsPageSetupBase.PaperSizeEntry..ctor(Double width, Double height, MeasureUnits units)
at Spire.Xls.Core.Spreadsheet.XlsPageSetupBase..cctor()
--- End of inner exception stack trace ---
at Spire.Xls.Core.Spreadsheet.XlsPageSetupBase..ctor(Object A_0)
at Spire.Xls.Core.Spreadsheet.XlsPageSetup..ctor(Object A_0)
at Spire.Xls.PageSetup..ctor(Object A_0)
at Spire.Xls.Core.Spreadsheet.XlsWorksheet.InitializeCollections()
at Spire.Xls.Core.Spreadsheet.XlsWorksheetBase..ctor(Object A_0)
at Spire.Xls.Core.Spreadsheet.XlsWorksheet..ctor(Object A_0)
at Spire.Xls.Worksheet..ctor(Object A_0)
at Spire.Xls.Core.Spreadsheet.Collections.XlsWorksheetsCollection.Add(String sheetName)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.帰(Int32 A_0)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook..ctor(Object A_0)
at Spire.Xls.Workbook..ctor()

It works fine in the previous version: SkiaSharp.NativeAssets.Linux.NoDependencies version 2.88.9

Code

using Spire.Xls;

using var workbook = new Workbook();

Expected Behavior

The Excel work being created without an error like in version 2.88.9

Actual Behavior

Since version 3.116.1 the error occurs.

Version of SkiaSharp

3.116.0 (Current)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Linux

Platform / Operating System Version

Docker image:
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base

Devices

All browsers (project is a Web API)

Relevant Screenshots

No response

Relevant Log Output

System.TypeInitializationException: The type initializer for 'Spire.Xls.Core.Spreadsheet.XlsPageSetupBase' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'spr娮' threw an exception.
 ---> System.EntryPointNotFoundException: Unable to find an entry point named 'sk_region_op2' in shared library 'libSkiaSharp'.
   at SkiaSharp.SkiaApi.sk_region_op2(IntPtr r, IntPtr src, SKRegionOperation op)
   at SkiaSharp.SKRegion.Op(SKRegion region, SKRegionOperation op)
   at spr揼.幥()
   at spr揼.庚(spr憀 A_0)
   at spr揼.帰(spr눾 A_0)
   at spr憀.惡()
   at spr憀.幥(spr눾 A_0)
   at spr꺹.帰(spr憀 A_0)
   at spr憀.態()
   at spr娮..cctor()
   --- End of inner exception stack trace ---
   at Spire.Xls.Core.Spreadsheet.XlsPageSetupBase.PaperSizeEntry..ctor(Double width, Double height, MeasureUnits units)
   at Spire.Xls.Core.Spreadsheet.XlsPageSetupBase..cctor()
   --- End of inner exception stack trace ---
   at Spire.Xls.Core.Spreadsheet.XlsPageSetupBase..ctor(Object A_0)
   at Spire.Xls.Core.Spreadsheet.XlsPageSetup..ctor(Object A_0)
   at Spire.Xls.PageSetup..ctor(Object A_0)
   at Spire.Xls.Core.Spreadsheet.XlsWorksheet.InitializeCollections()
   at Spire.Xls.Core.Spreadsheet.XlsWorksheetBase..ctor(Object A_0)
   at Spire.Xls.Core.Spreadsheet.XlsWorksheet..ctor(Object A_0)
   at Spire.Xls.Worksheet..ctor(Object A_0)
   at Spire.Xls.Core.Spreadsheet.Collections.XlsWorksheetsCollection.Add(String sheetName)
   at Spire.Xls.Core.Spreadsheet.XlsWorkbook.帰(Int32 A_0)
   at Spire.Xls.Core.Spreadsheet.XlsWorkbook..ctor(Object A_0)
   at Spire.Xls.Workbook..ctor()

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions