System.AggregateException when cloning a slide

Last post 08-14-2011, 2:46 AM by Mudassir. 4 replies.
Sort Posts: Previous Next
  •  07-14-2011, 1:51 PM 316492

    System.AggregateException when cloning a slide .NET

    When cloning a slide, I encounter this error.  This is in Slides for .NET v4.4.10.1, and has happened in every one of the v4 branch I've seen.  Any ideas as to what it could be?

    System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

       at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()

       at Aspose.Slides.Pptx.GradientFormatEx.(GradientFormatEx )

       at Aspose.Slides.Pptx.FillFormatEx.(FillFormatEx )

       at Aspose.Slides.Pptx.TextCharacterPropertiesEx.(TextCharacterPropertiesEx )

       at Aspose.Slides.Pptx.ParagraphPropertiesEx.(ParagraphPropertiesEx )

       at Aspose.Slides.Pptx.ParagraphPropertiesEx..ctor(ParagraphPropertiesEx )

       at Aspose.Slides.Pptx.ParagraphPropertiesEx.(ParagraphPropertiesEx )

       at Aspose.Slides.Pptx.TextFrameEx.()

       at Aspose.Slides.Pptx.TextFrameEx.get_()

       at Aspose.Slides.Pptx.TextFrameEx.(Single , Single , ShapeStyleEx , TextFrameEx[] )

       at Aspose.Slides.Pptx.AutoShapeEx.ProcessFitShapeToText()

       at Aspose.Slides.Pptx.ShapeEx.PptxPrepareForSaving( saveContext)

       at Aspose.Slides.Pptx.AutoShapeEx.PptxPrepareForSaving( saveContext)

       at Aspose.Slides.Pptx.ShapesEx.( )

       at Aspose.Slides.Pptx.GroupShapeEx.PptxPrepareForSaving( saveContext)

       at Aspose.Slides.Pptx.BaseSlideEx.PptxPrepareForSaving( saveContext)

       at Aspose.Slides.Pptx.SlideEx.PptxPrepareForSaving( saveContext)

       at Aspose.Slides.Pptx.PresentationEx.(BaseSlideEx )

       at Aspose.Slides.Pptx.SlidesEx.(SlideEx )

       at Aspose.Slides.Pptx.SlidesEx.AddClone(SlideEx slide)

     
  •  07-14-2011, 11:43 PM 316563 in reply to 316492

    Re: System.AggregateException when cloning a slide

    Hello Dear,

    I have observed the stack trace but I am sorry that without source presentation and the code snippet that you are using, it is difficult to reproduce the issue for resolution. Moreover, I have observed that you are using Aspose.Slides for .NET 4.4.10.1 version which is fairly old. I would recommend to please try using latest available Aspose.Slides for .NET 5.3.0 and if the problem still persists then please share the requested data for necessary investigation on our end.

    Thanks and Regards,


    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  08-02-2011, 9:32 AM 320023 in reply to 316563

    Re: System.AggregateException when cloning a slide

    Attachment: Present (inaccessible)
    Mudassir --

    Thank you, I have tried in 5.3 as well... attached is a sample project and presentation created with standard PowerPoint 2007.

    The problem presents anytime there is more than one thread accessing the PresentationEx.Save method and usually presents at the GradientFormatEx or GradientEx as in the stack trace above.

    The example provided always throws one of 3 errors (at least on my machine) usually in GradientFormatEx or GradientEx, all of them fatal .  They all seem to be issues with concurrency -- more information is contained in the comments in the code sample provided.

    The only requirement is that this be run on a multi-core computer, otherwise the Parallel class will revert to single threading and you will not see the issue.

    Thank you
    Chadwick
     
  •  08-02-2011, 2:05 PM 320087 in reply to 320023

    Re: System.AggregateException when cloning a slide

    Hi Chadwick,

    Thanks for sharing the desired information. An issue with ID 29586 has been created in our issue tracking system to further investigate and resolve the issue on our. I will share the further information with you after the issue is scheduled and verified by our developmen team.

    We are sorry for your inconvenience,


    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  08-14-2011, 2:46 AM 322183 in reply to 320023

    Re: System.AggregateException when cloning a slide

    Hi Chadwick,

    Our development team has investigated the issue on CoreI7 mobile using Aspose.Slides for .NET 5.3.0. Can you please share the hardware and software environment details with us for further investigation.

    Thanks and Regards,


    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML