We are using Aspose.Words for .NET. Calling Document.UpdateFields on a docx file that contains objects results in a crash in a linux docker environment. The bug does not occur in a windows environment.
Find attached a Visual Studio 2017 solution and docker file that show this problem.
Steps to reproduce:
On windows)
Please note that .NET Standard 2.0 version of Aspose.Words uses SkiaSharp to deal with graphics. To make it work in Linux container it is required to add Linux native Skia library. Please add reference to SkiaSharp.NativeAssets.Linux .
We were able to resolve the issue. Apparently the binaries in the SkiaSharp.NativeAssets.Linux-Nuget-Package are not compatible with the linux distribution used in the image. We build SkiaSharp ourselves and the error no longer occurs.
It’s a bit unfortunate that this is necessary for microsoft’s .net core images.
It is nice to hear from you that you have figured out your issue. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.