Quote from: spasi on May 10, 2024, 12:15:10The log shows that the JVM itself is trying to allocate some memory and fails. Are you maybe running too many programs and the system as a whole runs OOM?Not really many programs, just a few like intellij and a web browser. But yes, the whole system get frozen. It ate up all mermory.
In any case, this doesn't look like an issue with LWJGL.
Quote from: spasi on May 10, 2024, 09:48:53Btw, do you mean a java.lang.OutOfMemoryError or a process-OOM error followed by a JVM crash?
Quote from: fireinwinterfell on May 08, 2024, 02:41:20usually hits error "OutOfMemory"
Quote from: spasi on May 09, 2024, 11:02:06- Run the code as is, but do not call glBufferData.->
Quote from: spasi on May 09, 2024, 11:02:06- Replace the temporary FloatBuffer with a single, fixed buffer that is being reused between calls.->Memory consumption is a about 20 % lower (fixed FloatBuffer is 1024).
Quote from: spasi on May 09, 2024, 11:02:06How many times do you call storeDataInAttributeList and with how much data?thousands -> a few hundred thousand, a few 2d vertices (lines) to about a few hundred (polylines).