Multiple calls to updatePageLayout() will cause updatePageLayout() to take at least 15 minutes

I have attached a “small” document that we have noticed a strange bug/feature with.

We noticed that if we (by error) run updatePageLayout()/updateFields() twice on the document, the second updatePageLayout()/updateFields() will run forever (no correct timing given, we are talking about 15 minutes+)

The document in question is generated by Aspose.Words and totals 1950ish pages, it is usually generated within 60 seconds when we only call updatePageLayout() once.

We have reproduced the issue on Ubuntu and Red Hat with java7.

Hi Tor Henning,

Thanks for your inquiry. I have tested the scenario and noticed that multiple calls of UpdateFields method take times. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11381. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

I have tested the scenario for UpdatePageLayout method and have not found the shared issue at Windows while using latest version of Aspose.Words for Java 14.12.0. I am checking this issue at Ubuntu and will update you asap.

Hi Tor Henning,

Regarding calling updatePageLayout method twice, I have faced the OutOfMemoryError exception at Ubuntu. For the sake of correction, I have
logged this problem in our issue tracking system as WORDSJAVA-1001. You will be notified
via this forum thread once this issue is resolved. We apologize for
your inconvenience.

Could you please share what is the heap size of JVM at your side?

Hello,


I suspect that the problem is updatePageLayout() and not the updateFields() function, so i doubt you need to look into that one.

The memory settings are as follows:
-Xmx8000m -XX:MaxPermSize=2048M

If i remember correctly, the generation uses just below 4G of RAM.

Hi Tor Henning,

Thanks for sharing the detail. We are working over this scenario and will update you asap.

Hi Tor Henning,

Thanks for your patience. I have tested the scenario at Ubuntu with heap size 2048M using latest version of Aspose.Words for Java 14.12.0 and have not found the shared issue. Please check the attached image for detail.

Regarding WORDSJAVA-1001, I have closed this issue as ‘Not a bug’. This issue appears at my side due to less heap size issue.

Please let us know if you have any more queries.

Thank you for the confirmation. It is in other words only UpdateFields() that have this issue.

Hi Tor Henning,

Thanks for your feedback. The issue related to UpdateFields method was logged as WORDSNET-11381. You will be notified via this forum thread once this issue is resolved.

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

Hi Tor Henning,

Thanks for your patience. It is to inform you that our development team has completed the work on the issue (WORDSJAVA-1001)
and has come to a conclusion that this issue and the undesired behavior
you’re observing is actually not a bug in Aspose.Words. So, we have
closed this issue as ‘Not a Bug’. This issue is related to JVM setting. Please increase the heap size at your side.