Aspose charts do not render any image

Hello,


I am evaluating Aspose.Slides features could not convert slides with Charts to images using this code:

var documentOptions = new Aspose.Slides.LoadOptions
{
LoadFormat = Aspose.Slides.LoadFormat.Pptx
};

var document = new Aspose.Slides.Presentation(fileName, documentOptions);

for (int slideIndex = 0; slideIndex < document.Slides.Count; slideIndex++)
{
var image = document.Slides[slideIndex].GetThumbnail(new Size(960, 720));
var outputFileName = string.Format("{0}" + Path.DirectorySeparatorChar + "aspose-{1}-{2}.{3}", OUTPUT_FILES_PATH, Path.GetFileName(fileName), SlideIndex, "png");
image.Save(outputFileName, ImageFormat.Png);

outputFileName = ConverterUtil.GetOutputImageFileName(fileName, slideIndex, "svg");
using (var fileStream = new FileStream(outputFileName, FileMode.OpenOrCreate, FileAccess.Write))
{
document.Slides[slideIndex].WriteAsSvg(fileStream);
}
}

Hi Alexandre,


Thank you for posting.

I have observed your comments and would like to request you to please share with us if this issue has been resolved, as per the information shared by you in this thread, or not resolved? Please share your feedback with us.

Best Regards,

Unfortunately the latest update did resolve that issue, but not this. I can post the log I have, versions, etc.


I’m running on a Mac OS X 10.11.3, Mono 4.4.2 and Aspose.Slides for .NET NuGet package 16.1.0

Mono JIT compiler version 4.2.2 (explicit/996df3c Wed Jan 20 00:19:48 EST 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: yes(3.6.0svn-mono-(detached/a173357)
GC: sgen

P.S.: Sometimes I do get this stacktrace:

A null reference or invalid value was found [GDI+ status: InvalidParameter]:

at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009b] in /private/tmp/source-mono-mac-4.2.0-branch-c6sr1/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:212

at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x00017] in /private/tmp/source-mono-mac-4.2.0-branch-c6sr1/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:95

at System.Drawing.Bitmap..ctor (Int32 width, Int32 height) [0x00000] in /private/tmp/source-mono-mac-4.2.0-branch-c6sr1/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:76

at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int)

at . (​ ) [0x0013d] in :0

at . (​ ) [0x00028] in :0

at . ​ (​ ) [0x00084] in :0

at ​ . ( ​ ) [0x00000] in :0

at . ( ​ ) [0x00011] in :0

at . ( ​ ) [0x00007] in :0

at . ( ​ ) [0x00011] in :0

at​ . ( ​ ) [0x00007] in :0

at . ( ) [0x00000] in :0

at . (Aspose.Slides.Presentation , System.IO.Stream , System.Int32[] , Aspose.Slides.Export.PdfOptions) [0x0014d] in :0

at . (Aspose.Slides.Presentation , System.IO.Stream , Aspose.Slides.Export.PdfOptions ) [0x00029] in :0

at Aspose.Slides.Presentation.Save (System.IO.Stream stream, SaveFormat format, ISaveOptions options) [0x000fd] in :0

at Aspose.Slides.Presentation.Save (System.String fname, SaveFormat format, ISaveOptions options) [0x00009] in :0

Hi Alexandre,


I have observed your comments and like to share with you that a ticket with ID SLIDESNET-37213 has been logged into our issue management system for further investigation and resolution of the issue. This thread has been linked with the issue so that you may be notified automatically as soon as the issue will be fixed.

Best Regards,

Hi Alexander,


Our product team has investigated the issue on their end. The shared sample code snippet generates thumbnails and Svg but the stacktrace that has been shared by you starts from Presentation.Save. Can you please share code snippet that has generated shared stacktrace.

Best Regards,

Hi Alexander,


As requested earlier, can you please share code snippet that has generated shared stacktrace shared by you.

Best Regards,

The issues you have found earlier (filed as SLIDESNET-37213) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.