EnderWiggin / hafen-client

New Haven client
Other
26 stars 35 forks source link

[BUG] out of memory #113

Open Fr-Dae opened 6 months ago

Fr-Dae commented 6 months ago

hello, currently running gnu_linux lunbuntu 22.04 x64 with open jdk 21 up to date, with the latest kernel. I have 16gio ram. and when I launch the game, the card flashes, the game consumes more and more memory until it reaches 100% and then crach

openjdk 21.0.1 2023-10-17
OpenJDK Runtime Environment (build 21.0.1+12-Ubuntu-222.04)
OpenJDK 64-Bit Server VM (build 21.0.1+12-Ubuntu-222.04, mixed mode, sharing)
java.lang.OutOfMemoryError: Java heap space
    at java.base/java.nio.HeapByteBuffer.asShortBuffer(HeapByteBuffer.java:484)
    at haven.render.Lighting$LightGrid$GridLights.lambda$listtex$0(Lighting.java:510)
    at haven.render.Lighting$LightGrid$GridLights$$Lambda/0x00007fce5c51cd58.fill(Unknown Source)
    at haven.render.gl.GLTexture$Tex2D.create(GLTexture.java:346)
    at haven.render.gl.GLEnvironment.prepare(GLEnvironment.java:630)
    at haven.render.gl.GLEnvironment.prepare(GLEnvironment.java:638)
    at haven.render.gl.GLEnvironment.prepuval(GLEnvironment.java:723)
    at haven.render.gl.GLDrawList$UniformSetting.compile(GLDrawList.java:772)
    at haven.render.gl.GLDrawList$Setting.update(GLDrawList.java:486)
    at haven.render.gl.GLDrawList$DepSetting.ckupdate(GLDrawList.java:520)
    at haven.render.gl.GLDrawList.update(GLDrawList.java:1032)
    at haven.render.InstanceList.lambda$clupdate$3(InstanceList.java:590)
    at haven.render.InstanceList$$Lambda/0x00007fce5c412918.accept(Unknown Source)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
    at haven.render.InstanceList.clupdate(InstanceList.java:590)
    at haven.render.InstanceList.update(InstanceList.java:805)
    at haven.render.RenderTree$Client.updated(RenderTree.java:120)
    at haven.render.RenderTree$TreeSlot.lambda$upddstate$2(RenderTree.java:633)
    at haven.render.RenderTree$TreeSlot$$Lambda/0x00007fce5c40fc78.accept(Unknown Source)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
    at haven.render.RenderTree$TreeSlot.upddstate(RenderTree.java:633)
    at haven.render.RenderTree$TreeSlot.chstate(RenderTree.java:683)
    at haven.render.RenderTree$TreeSlot.ostate(RenderTree.java:709)
    at haven.PView.basic(PView.java:149)
    at haven.MapView.lights(MapView.java:1275)
    at haven.PView.draw(PView.java:329)
    at haven.MapView.draw(MapView.java:1819)
    at haven.Widget.draw(Widget.java:776)
    at haven.Widget.draw(Widget.java:781)
    at haven.GameUI.draw(GameUI.java:1268)
    at haven.Widget.draw(Widget.java:776)
    at haven.Widget.draw(Widget.java:781)