Hello,
I want to report a concurrency bug in the implementation of the Aspose.PDF TextBuilder constructor.
When creating multiple PDFs concurrently, I consistently get the following exception:
System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at #=zbHeZOLM1OQNgzUNlI_q4Ke12e8QteaoFyn3BvKmQD0hB.#=z9OtCFHqJX8ea(String #=zzHsDNvI=, #=zkf94LRBeZGSoXnzPzDUhXbq1ATl2tDuJD9bg7lwHkHvi #=zUw0fpKg=)
at #=zVQJX7Axdvkip71gRUNFzzZiL6dZcbEeLorR0VdiX_6irTncHdEAHJV8=.#=zX_u5AYw=(Operator #=zFKlvV0g=)
at #=zVQJX7Axdvkip71gRUNFzzZiL6dZcbEeLorR0VdiX_6irTncHdEAHJV8=.#=zRvqrxn8=(Page #=zgaTw7fg=)
at #=zzyZl0QJQd9iWYoXDF__cRl6q1MAwNAGtyYrjvBp2HBVT1H8ZmW28doaBBP$m.#=z$w1xkNFPbJ11(BaseOperatorCollection #=zdwaZQWc=, Resources #=zeayQa1c=, Page #=zgaTw7fg=, Rectangle #=ztXDxlObYdng7)
at #=zzyZl0QJQd9iWYoXDF__cRl6q1MAwNAGtyYrjvBp2HBVT1H8ZmW28doaBBP$m.#=z$w1xkNFPbJ11(BaseOperatorCollection #=zdwaZQWc=, Resources #=zeayQa1c=, Rectangle #=ztXDxlObYdng7)
at #=zzyZl0QJQd9iWYoXDF__cRl6q1MAwNAGtyYrjvBp2HBVT1H8ZmW28doaBBP$m.#=z7yH$xHo=()
at #=zzyZl0QJQd9iWYoXDF__cRl6q1MAwNAGtyYrjvBp2HBVT1H8ZmW28doaBBP$m..ctor(Page #=zgaTw7fg=, TextSearchOptions #=ztDfyF35iMc8d, Resources #=zeayQa1c=, BaseOperatorCollection #=znisUKS8=, Boolean #=zw_OciCLxWgPy)
at #=zzyZl0QJQd9iWYoXDF__cRl6q1MAwNAGtyYrjvBp2HBVT1H8ZmW28doaBBP$m..ctor(Page #=zgaTw7fg=, TextSearchOptions #=ztDfyF35iMc8d, Resources #=zeayQa1c=, BaseOperatorCollection #=znisUKS8=)
at Aspose.Pdf.Text.TextBuilder..ctor(Page page)
Running a single PDF generation does not show the problem.
The bug was introduced in Aspose.PDF version 23.9.0. The bug does not manifest itself in version 23.8.0. The bug does manifest itself in the most recent version 24.9.0.
I use a licensed version of Aspose.Total in .NET.
Hope this can be fixed soon.
Kind regards,
Ruben Vandeginste