On Thu, 8 Oct 2026 05:24:05 GMT, Alexander Zuev <[email protected]> wrote:
> The error message printed out into the log is generated by the GET_MAIN_JENV > macro when it detects that the JVM is detached. But lately macOS became more > and more asynchronous and is caching accessibility objects references so it > is possible that during the application shutdown the system keeps calling > these native a11y methods. We already have a safeguard in place defending us > from this scenario - in all places after we call GET_MAIN_JENV we check that > env is not set to NULL before attempting to call Java methods. So i am > replacing GET_MAIN_JENV macro usage with GET_MAIN_JENV_NOWARN which does > exactly the same but does not generate the error message and stack dump in > the stderr. > > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). LGTM. I tested it with VoiceOver turned on, since that reproduced the failure more often. Without the fix I see the intermittent warnings reported in the bug. With the fix, no problems. ------------- Marked as reviewed by kcr (Lead). PR Review: https://git.openjdk.org/jfx/pull/2339#pullrequestreview-5459392288
