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

前端 未结 9 1988
心在旅途
心在旅途 2020-11-29 03:50

Hi and thanks for reading,

I have the following error while running my program and can\'t figure out what the solution would be. I also looked at all the topics with

9条回答
  •  半阙折子戏
    2020-11-29 04:44

    It can happen because of native method calling in your application. For example, in Qtjambi if you use QApplication.quit() instead of QApplication.closeAllWindows() for closing a Java application it generates an error log.

    In this case, you can get a stack trace right to your method that called the native code and caused the crash. Just look in the log file it tells you about:

    # An error report file with more information is saved as hs_err_pid24139.log.
    

    The stack trace looks quite unusual, since it has native code mixed with VM code and your code, but each line is prefixed so you can tell which lines are your own code. There's a key at the top of the stack trace to explain the prefixes:

    Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)

提交回复
热议问题