Uncontrolled heap space exception from background thread
This rare issue has been reported just once, it happens while signing a document with lots of signatures (over 30) with a 32-bit Java VM. This is unlikely to happen with 64-bit JVM, so tests would require a 32-bit installer or by adding more conditions making Java out of memory with low heap size. While waiting for feedback from affected user, this could be considered as wontfix yet, but in case it's possible to make thread exception catchable somehow, it would be worth. Because java.lang.OutOfMemoryError
is not an Exception
but an Error
, this could have been missed so far.
Because for another case when loading a large PDF file at some point and displayed it on a message dialog, they are definitely catchable, so in this context is likely catched as Exception|Error
or as Throwable
, but not for the multiple signatures case, or just fails to display dialogs from threaded process maybe, and gets catched somewhere but not printed on logs. This could be checked with https://visualvm.github.io/ or https://eclipse.dev/mat/ if needed.