Unable to load shared library 'libSkiaSharp' or one of its dependencies exception

Hey,
I have encountered an exception when reading to GetDocumentInfo().PageCount.
Im using the GroupDocs.Parser version 21.5.0 from nuget
and running on a linux machine.

the relevant stack trace:

|System.TypeInitializationException: The type initializer for ' ’ threw an exception.
—> System.TypeInitializationException: The type initializer for ‘SkiaSharp.SKImageInfo’ threw an exception.
—> System.DllNotFoundException: Unable to load shared library ‘libSkiaSharp’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
at SkiaSharp.SKImageInfo…cctor()
— End of inner exception stack trace —
at SkiaSharp.SKBitmap…ctor(Int32 width, Int32 height, Boolean isOpaque)
at …cctor()
— End of inner exception stack trace —
at …ctor(PointF , SizeF , Byte[] , ​ )
at . (Shape , , )
at . (Shape , , , )
at . (​ , , , Boolean )
at . (​ , , Boolean )
at . (​ , , Boolean )
at . (​ , Boolean )
at .(​ )
at .( )
at . ​ ()
at . (Boolean )
at . (Boolean )
at . (IList`1 , )
at . ( , )
at . ()
at . ( , Int32 , Boolean , Boolean )
at . ()
at . ( , Int32 )
at . ( , Int32 )
at . ( )
at . ()
at . ( )
at . ( )
at . ( )
at . ()
at .()
at Aspose.Words.Document.UpdatePageLayout()
at . ​()
at GroupDocs.Parser.Options.DocumentInfo.get_PageCount()

@Island.io

Could you please share complete environment details (e.g. OS version)? Do you face this issue for a specific file? Could you please also share the problematic file with us?

Im running on Debian GNU/Linux 10 (buster)
trying to see if i can get the specific file

ok, i can recreate this error with this file:
https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.doc

@Island.io

We are investigating this issue with ticket ID PARSERNET-1876. You’ll be notified in case of any update.

Thanks.
and i am using the .net sdk

1 Like

@Island.io

Got it. We’ll notify you as there’s any update.

1 Like

Hey again, just want to update that adding the nuget package: SkiaSharp.NativeAssets.Linux.NoDependencies will solve this issue

@Island.io

Good to know that the issue is fixed.