We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Libpng warning: pHYs: CRC error on exporting MPP to PDF or PNG (C# Linux Mono)

Hello, I get “libpng warning: pHYs: CRC error” when using Aspose.Tasks on Linux with mono framework. This happens when Tasks exports to PDF or PNG. Export to MPX works fine.

1 Like


Can you please share source file along with sample code so that we may further investigate to help you out.

Hello, I am trying different options to get Aspose.Tasks export to PDF working on linux using Net Core and mono. I have no problem with Cells and Words but Tasks issues all about Encoding and export to Pdf. It works with MPP format and save files but Pdf does not properly work.

Now I have the following error using mono on linux:

Unhandled Exception:
Aspose.Tasks.TasksWritingException: Project writing exception. —> System.TypeInitializationException: The type initializer for ‘#=znz4ITFRLVNrHj20J$D77GrXsSuq5zrqITw==’ threw an exception. —> System.NotSupportedException: No data is available for encoding 1361. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x001e3] in <7b90a8780ac4414295b539b19eea7eea>:0
at #=znz4ITFRLVNrHj20J$D77GrXsSuq5zrqITw==.#=z23F3yYI= (System.Int32 #=zkOYQlyk=) [0x00000] in <81f5483511ba443a6333fd17f04cd401>:0
at #=znz4ITFRLVNrHj20J$D77GrXsSuq5zrqITw==…cctor () [0x00030] in <81f5483511ba443a6333fd17f04cd401>:0

After adding Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); to the project I start getting the following:

Unhandled Exception:
Aspose.Tasks.TasksWritingException: Project writing exception. —> System.TypeI nitializationException: The type initializer for ‘#=zQdgw3Q4Zi5t$gL4cSJJ$dyQBI6g fvr0tsTqjqo4=’ threw an exception. —> System.EntryPointNotFoundException: GetC PInfoExW
at (wrapper managed-to-native) Interop+Kernel32.GetCPInfoExW(uint,uint,Interop /Kernel32/CPINFOEXW*)
at Interop+Kernel32.TryGetACPCodePage (System.Int32& codePage) [0x00000] in :0
at System.Text.CodePagesEncodingProvider.get_SystemDefaultCodePage () [0x00000 ] in :0
at System.Text.CodePagesEncodingProvider.GetEncoding (System.Int32 codepage) [ 0x00011] in :0
at System.Text.EncodingProvider.GetEncodingFromProvider (System.Int32 codepage ) [0x00017] in <7b90a8780ac4414295b539b19eea7eea>:0
at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x00000] in <7b90 a8780ac4414295b539b19eea7eea>:0
at #=zwGzpta4fw55eaMi8Qh5OvDd76XsptWqjIA==.#=zGGkgTvZd4QSe (System.Int32 #=z2L ianKA=, System.Int32& #=zkOYQlyk=, System.Text.Encoding& #=zYvzLQeE=) [0x0001b] in <81f5483511ba443a6333fd17f04cd401>:0


Can you please share source file along with sample project to reproduce issue.


We have created a ticket with ID TASKSNET-4138 to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.