h19910518
站在村口的牛书记
采纳率25%
2020-04-27 16:03

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条回答

  • hjs218 Json-Huang 1年前

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

    -XX:+CreateMinidumpOnCrash
    

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

    点赞 评论 复制链接分享

为你推荐