JAVA调用dll文件调用时报,Problematic frame: # C [KERNELBASE.dll+0x3a799]

java使用jna.Native的方式调用dll文件,报错:

Problematic frame:

C [KERNELBASE.dll+0x3a799]****

错误日志头:
#

A fatal error has been detected by the Java Runtime Environment:

#

EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x00007ffaa255a799, pid=16184, tid=0x00000000000045bc

#

JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)

Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode windows-amd64 compressed oops)

Problematic frame:

C [KERNELBASE.dll+0x3a799]

#

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

#

An error report file with more information is saved as:

D:\projects\LegendBoxBackstageServer\hs_err_pid16184.log

#

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

我是使用native函数去调用C++ opencv里的函数。程序就报错了。麻烦各位可以看看

可以试试如下方法
1、JRE版本升级jdk为java 9版本
2、Java 8 前版本,HotSpot VM 配置加上

-XX:+CreateMinidumpOnCrash

详情可参考:https://www.it1352.com/993277.html