CC: Tweaked

CC: Tweaked

57M Downloads

Memory Leak

Justinc2105 opened this issue ยท 0 comments

commented

Minecraft Version

1.15.x

Version

1.12.2 - 1.89.2

Details

This got put into console, been happening a few times

Jul 09, 2021 12:43:40 PM io.netty.util.ResourceLeakDetector reportTracedLeak
SEVERE: LEAK: ByteBuf.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information.
Recent access records: 2
#2:
io.netty.buffer.AdvancedLeakAwareByteBuf.writeBytes(AdvancedLeakAwareByteBuf.java:612)
io.netty.buffer.ByteBufOutputStream.write(ByteBufOutputStream.java:66)
java.util.zip.GZIPOutputStream.finish(Unknown Source)
java.util.zip.DeflaterOutputStream.close(Unknown Source)
dan200.computercraft.shared.util.IoUtil.closeQuietly(IoUtil.java:20)
dan200.computercraft.shared.network.client.TerminalState.getCompressed(TerminalState.java:143)
dan200.computercraft.shared.network.client.TerminalState.write(TerminalState.java:102)
dan200.computercraft.shared.network.client.MonitorClientMessage.toBytes(MonitorClientMessage.java:39)
dan200.computercraft.shared.network.NetworkMessage.toBytes(NetworkMessage.java:57)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26)
net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:81)
io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67)
io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:88)
io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116)
io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)
io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801)
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814)
io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794)
io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831)
io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1032)
io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:296)
net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendToAllTracking(SimpleNetworkWrapper.java:279)
dan200.computercraft.shared.network.NetworkHandler.sendToAllTracking(NetworkHandler.java:73)
dan200.computercraft.shared.peripheral.monitor.MonitorWatcher.onTick(MonitorWatcher.java:92)
net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_MonitorWatcher_onTick_ServerTickEvent.invoke(.dynamic)
net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:266)
net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:712)
net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
java.lang.Thread.run(Unknown Source)
#1:
io.netty.buffer.AdvancedLeakAwareByteBuf.writeBytes(AdvancedLeakAwareByteBuf.java:606)
io.netty.buffer.ByteBufOutputStream.write(ByteBufOutputStream.java:71)
java.util.zip.GZIPOutputStream.writeHeader(Unknown Source)
java.util.zip.GZIPOutputStream.(Unknown Source)
java.util.zip.GZIPOutputStream.(Unknown Source)
dan200.computercraft.shared.network.client.TerminalState.getCompressed(TerminalState.java:134)
dan200.computercraft.shared.network.client.TerminalState.write(TerminalState.java:102)
dan200.computercraft.shared.network.client.MonitorClientMessage.toBytes(MonitorClientMessage.java:39)
dan200.computercraft.shared.network.NetworkMessage.toBytes(NetworkMessage.java:57)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26)
net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:81)
io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67)
io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:88)
io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116)
io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)
io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801)
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814)
io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794)
io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831)
io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1032)
io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:296)
net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendToAllTracking(SimpleNetworkWrapper.java:279)
dan200.computercraft.shared.network.NetworkHandler.sendToAllTracking(NetworkHandler.java:73)
dan200.computercraft.shared.peripheral.monitor.MonitorWatcher.onTick(MonitorWatcher.java:92)
net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_MonitorWatcher_onTick_ServerTickEvent.invoke(.dynamic)
net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:266)
net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:712)
net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
java.lang.Thread.run(Unknown Source)
Created at:
io.netty.util.ResourceLeakDetector.track(ResourceLeakDetector.java:237)
io.netty.buffer.UnpooledByteBufAllocator.newDirectBuffer(UnpooledByteBufAllocator.java:79)
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:181)
io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:167)
io.netty.buffer.Unpooled.directBuffer(Unpooled.java:107)
dan200.computercraft.shared.network.client.TerminalState.getCompressed(TerminalState.java:130)
dan200.computercraft.shared.network.client.TerminalState.write(TerminalState.java:102)
dan200.computercraft.shared.network.client.MonitorClientMessage.toBytes(MonitorClientMessage.java:39)
dan200.computercraft.shared.network.NetworkMessage.toBytes(NetworkMessage.java:57)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30)
net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26)
net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:81)
io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67)
io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:88)
io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116)
io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)
io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801)
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814)
io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794)
io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831)
io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1032)
io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:296)
net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendToAllTracking(SimpleNetworkWrapper.java:279)
dan200.computercraft.shared.network.NetworkHandler.sendToAllTracking(NetworkHandler.java:73)
dan200.computercraft.shared.peripheral.monitor.MonitorWatcher.onTick(MonitorWatcher.java:92)
net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_MonitorWatcher_onTick_ServerTickEvent.invoke(.dynamic)
net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:266)
net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:712)
net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
java.lang.Thread.run(Unknown Source)