Deadlock when converting HTML to PDF

Hi All,

We have noticed issue when converting HTML to PDF using Aspose.PDF version 24.7.0.0. This problem have been identified on our machines as well as in our clients’ production environments.

While processing multiple HTML files, both in single-threaded and multi-threaded scenarios, we encounter a deadlock when creating the document object using Aspose.Pdf.Document(stream, htmlOptions). This causes components of our system to stop working.

I am attaching a sample code and a screenshot from the memory dump.

Could you help us resolve this issue?
Thanks in advance,
Artur

Deadlock when converting HTML to PDF.zip (59.0 KB)

@ARTJ

Have you tried using 25.1 version of the API? Can you please using the latest version and see if it resolves issue. Please let us know in case you still face any issues.

@asad.ali

Hi,
I have tried using 25.1 version and unfortunately the problem still occurs.

@asad.ali

I just ran the script using Aspose.PDF 23.6.0 (our previous version) and the problem is gone. Over 10,000 conversions were successful.

@ARTJ

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-59175

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi @asad.ali,

this is critical issue for us, our clients rely on it in their business critical areas.
Can we prioritize it as it affects thousands of our users (and it is not minor issue, but something introduced in recent version of your product)?

Best regards,
Bartłomiej Chojnowski

@asad.ali

To add to what BCH mentioned - we have a purchased license, and the relevant information has been provided in this ticket: Document.TaggedContent throws "An item with the same key has already been added." exception

Could you please confirm if this information is sufficient to increase the priority of this case? If any additional details are required, please let us know how we can securely provide them.

Best regards,
Artur

@ARTJ @bch

We do understand your concerns and realize the severity of the issue for you. However, the issues in free support model are resolved on first come first serve basis. The resolution time depends upon the issue complexity as well as the number of the issues logged prior to the ticket. We advise using our paid support channel to report such showstopper issues because issues are resolved on urgent basis in there.

Nevertheless, your concerns have been recorded and we will surely consider them during ticket investigation. As soon as we are able to provide some updates, we will inform you in this forum thread. Please be patient and spare us some time.

We are sorry for the inconvenience.

@asad.ali

Is there any workaround we could implement for version 24.7.0?

@ARTJ

Regretfully, we cannot offer any workaround as well without investigating the cause of this issue. Nevertheless, we will inform you once we have some updates about ticket resolution. We highly appreciate your patience in this regard.

Summary

Hi Asad,
We have license purchased for this email: itservices@netcompany.com.
I hope this help this case to gain a bit more priority.

@bch

Are you subscribed to paid support as well with this email address? Because paid support will be helpful in this case. It will escalate the ticket to the highest priority.