Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
WouterDevExperts opened this issue Dec 17, 2024 · 2 comments
Labels

Comments

@WouterDevExperts
Copy link

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
@mattleibow
Copy link
Contributor

Are you able to attach a repro project so we can investigate?

Also, make sure both your skia and native assets are the same version.

@WouterDevExperts
Copy link
Author

Sure, here you go: https://github.com/WouterDevExperts/SkiaSharpBug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

2 participants