Free Support Forum - aspose.com

A generic error occurred in GDI+ for thumbnail of slide with flipped dashed line

I found that Presentation.GetThumbails reproducible fails for certain files in .NET Core application. This only occurs when running the application on Linux (Aspose.Slides 21.5.0, Ubuntu 21.04, libgdiplus 6.0.4+dfsg-2). On Windows the command works fine.

I created a sample file showing the issue with the following steps

  • Create presentation with empty slide
  • Insert a line
  • Change line style to dashed
  • Use Arrange > Rotate > Flip Horizontal
  • Save file

Here’s a file created with the steps above: test.zip (23.8 KB)

Sample code

using (var p = new Aspose.Slides.Presentation("test.pptx"))
{
    p.GetThumbnails(new Aspose.Slides.Export.RenderingOptions());
}

Exception that occurs

System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
   at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status)
   at System.Drawing.Graphics.FillPath(Brush brush, GraphicsPath path)
   at    .(GraphicsPath , Brush , Color , Single , Graphics )
   at    .(GraphicsPath , PointF , Brush , Pen ,   ​ ,  ​  , Graphics )
   at    .(String , RectangleF ,  ​  ,   ​ )
   at    .​      (String , RectangleF ,  ​  )
   at Aspose.Slides.BaseSlide.(​   )
   at Aspose.Slides.Slide.(​   , IShapeFrame ,    `2 , ​   , InterruptionToken )
   at Aspose.Slides.Slide.(Size )
   at ​  .(Size )
   at ​  .(Single , Single )
   at ​  .(Presentation , INotesCommentsLayoutingOptions , Int32[] , Single , Single )
   at Aspose.Slides.Presentation.GetThumbnails(IRenderingOptions options)
   at LinuxApp.Program.Main(String[] args) in D:\Development\LinuxApp\Program.cs:line 19

@co213,
Thank you for the issue description. I reproduced the error and logged the issue in our tracking system with ID SLIDESNET-42631. Our development team will investigate this case. You will be notified when it is fixed.

1 Like

@Andrey_Potapov, Just wanted to check in briefly if you had an idea when a fix might be available?

@co213,
The issue investigation will begin in 2021/27 week.