I found out Aspose.Cells v21.9.0 introduced the bug. It’s also reproducible on the latest v23.9.0
There is a pretty complicated formula in the attached workbook. According to my investigation it can be calculated by Aspose.Cells v21.8.0, but since Aspose.Cells v21.9.0 call of CalculateFormula infinite hangs. Please see the code:
var wb = new Workbook("Test2.xlsx");
wb.CalculateFormula();
Important note: real file is way more complicated, I spend a lot of time to find exact place which caused the issue (since library is obfuscated, and it’s basically impossible to debug it)
Another thing I wanted to highlight, this issue caused us trouble because infinite calculation overloaded our servers, and there is no way to stop it, only kill the process.
AbstractCalculationMonitor is not an option, since it can’t catch this hang
Please fix the bug as soon as possible and add any kind of protection from such issues in the future
Test2.zip (8.8 KB)