LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 629 forks source link

Intermittent JVM crashing #898

Closed railgunSR closed 11 months ago

railgunSR commented 12 months ago

Version

3.3.2

Platform

Windows x64

JDK

Temurin 17.0.7 and Temurin 20.0.1

Module

LWJGL core

Bug description

Hi! The short of it is this repo when run with Temurin 17.0.7 on Windows 10 is having intermittent crashing issues. It should reproduce within 10 runs. The crash occurs within a second or two on a bad run. I've narrowed it down to the remesh method in electrosphere.render.Mesh.java . I have tried Temurin 17.0.7 and 20.0.1. Let me know if there's anything else I can provide!

Stacktrace or crash log output

No response

railgunSR commented 11 months ago

I've found that because the initial mallocs using BufferUtils aren't freed, OpenJDK is failing to free class memory sometimes and it subsequently crashes.