## 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.#
The file D:\[REDACTED]\hs_err_pid3776.log contains the stack trace.
Quote from: Kai on August 31, 2017, 07:28:07The file D:\[REDACTED]\hs_err_pid3776.log contains the stack trace.Oh, did not know that! Thanks a bundle for that pointer!Now I know where it is that is causing the exception!Now to figure out why glGetString is acting up, time to fire up the debugger.
glfwDefaultWindowHints();glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);long newWindow = glfwCreateWindow(1, 1, "SHAREDCONTEXT", NULL, oldWindow);
Windows: The context to share resources with must not be current on any other thread.
Do you fully create the primary window, including glfwMakeContextCurrent() and GL.createCapabilities(), before creating this second window? Also, I'm not sure how closely windows need to match configuration, so try to glfwWindowHint() both of them the same way.As a reference, this is how the libGDX backend creates windows with shared context.
Please read the documentation of glfwCreateWindow, especially the "Remarks" section:QuoteWindows: The context to share resources with must not be current on any other thread.Also, it'd be nice if you could shed some more light on what error you were getting with LWJGLX/debug.For this, please follow these steps:1. start with -javaagent:lwjglx-debug-1.0.0.jar=d;o=debug.log (note the =d;o=debug.log after the jar file name)2. pipe stderr output to some "transform.log" file (or copy/paste from your IDE console)3. attach the produced "debug.log" and "transform.log" files to a post here
[debug] Modified [net/gudenau/lwjgl3/compatibility/opengl/Display] (8 calls into LWJGL)