I am currently porting an existing game engine over to LWJGL3 from LWJGL2 with a compatibility layer. (Don't ask)
Because of this I have a huge code base with lots of OGL calls and I do not know how to find the native call that causes the JVM to encounter an access violation. I tried to use the LWJGLX debug library, but that died when using GL.createCapabilities();
which is odd to me. (Method not found if I recall)
Now, how to I find the native method that causes this so I can work back from it?
Native dump thing:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffdc09eef57, pid=3776, tid=0x0000000000000cf8
#
# JRE version: Java(TM) SE Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [lwjgl_opengl.dll+0xef57]
#
# 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:\[REDACTED]\hs_err_pid3776.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.
#