Closed XUANXUQAQ closed 8 months ago
Thanks for reporting this issue, we are investigating.
Hi @XUANXUQAQ
this is most likely a bug in your application. In https://github.com/XUANXUQAQ/native-image-crash-reproducer/blob/1c94b622393df9ce85cbc9e426642ad0f26f938e/Test/dllmain.cpp#L30C5-L30C100 you are querying a method and then call it immediately without checking for an error first. The crash is basically hinting that you call a NULL value here, so you need to check for that before calling.
The reason for the unexpected NULL value might be, that you are missing the configuration metadata required for JNI when building a native image, see https://www.graalvm.org/latest/reference-manual/native-image/metadata/ how to manually configure that.
Describe the issue When the program call the jni native function with supplier object as parameter, it crashes. I've tried using trace agent to generate the jni config file and the reflect config file. native-image --no-fallback -jar JavaTest.jar
Steps to reproduce the issue
Describe GraalVM and your environment:
More details
Crash report: