Closed claudio-rosati closed 5 years ago
I've seen the message, but don't think it's a problem.
Because of the asynchronous nature of PV updates, a PV update enters the pipeline of being handled, this one happens to trigger a script or rule, but by the time we actually submit the script for execution, the display has closed, so the script is no longer accepting executions.
ScriptSupport.submit
could catch the RejectedExecutionException
and log a FINE
level message to change what you see in the log. Wouldn't make any functional difference.
Is it possible before calling ScriptSupport.submit
to check by if the widget is disposed, in which case the call is not done?
Sure, but that doesn't help because the very nature of asynchronous threads is that when you check, the display may still be active, but when you then submit, it's been closed. I'll catch and suppress the exception so you no longer see it.
Thank you.
The problem appears when the window containing the running OPI is closed: