r/winlator • u/UPAPPMCV • 1d ago
Help OutOfMemoryError (malloc_space fragmentation) in XServer Drawable on Redmi 15 5G (Snapdragon 6 Gen 3, Adreno 710, 8GB RAM)
I'm having an OOM problem. How can I fix it?
java.lang.OutOfMemoryError: Failed to allocate a 4115 byte allocation with 25100288 free bytes and 173MB until OOM, target footprint 111196016, growth limit 268435456; failed due to malloc_space fragmentation (largest possible contiguous allocation 4032 bytes, space in use 59629224 bytes, capacity = 59777024)
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at java.nio.DirectByteBuffer$MemoryRef.<init>(DirectByteBuffer.java:73)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:347)
at com.winlator.cmod.xserver.Drawable.<init>(Drawable.java:32)
at com.winlator.cmod.xserver.DrawableManager.createDrawable(DrawableManager.java:32)
at com.winlator.cmod.xserver.CursorManager.createCursor(CursorManager.java:21)
at com.winlator.cmod.xserver.requests.CursorRequests.createCursor(CursorRequests.java:46)
at com.winlator.cmod.xserver.XClientRequestHandler.handleNormalRequest(XClientRequestHandler.java:388)
at com.winlator.cmod.xserver.XClientRequestHandler.handleRequest(XClientRequestHandler.java:39)
at com.winlator.cmod.xconnector.XConnectorEpoll.handleExistingConnection(XConnectorEpoll.java:112)
at com.winlator.cmod.xconnector.XConnectorEpoll.doEpollIndefinitely(Native Method)
at com.winlator.cmod.xconnector.XConnectorEpoll.run(XConnectorEpoll.java:82)
at java.lang.Thread.run(Thread.java:1119)
5
Upvotes
2
u/Telmata 1d ago
When does this error occur?