[openjfx11][RFR] 8196968: One time crash on exit in JNIEnv_::CallObjectMethod

Arunprasad Rajkumar arunprasad.rajkumar at oracle.com
Tue Jul 24 11:20:59 UTC 2018


Please review the following fix,

JBS: https://bugs.openjdk.java.net/browse/JDK-8196968

webrev: http://cr.openjdk.java.net/~arajkumar/8196968/webrev

Root cause:
From the crash log, I could see that WebCore image decoder is trying to call the Java method(through JNI) after detaching from main thread. This leads to null JNIEnv pointer, which causes the crash.

Proposed Solution:
Add a null check before accessing the JNIEnv pointer.

(Note: I couldn’t reproduce the crash in my dev machine)


More information about the openjfx-dev mailing list