[
https://issues.apache.org/jira/browse/PLC4X-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukas Ott closed PLC4X-175.
---------------------------
Resolution: Invalid
> ERROR ResourceLeakDetector: LEAK: ByteBuf.release() was not called before
> it's garbage-collected
> ------------------------------------------------------------------------------------------------
>
> Key: PLC4X-175
> URL: https://issues.apache.org/jira/browse/PLC4X-175
> Project: Apache PLC4X
> Issue Type: Bug
> Components: Driver-Modbus
> Affects Versions: 0.5.0, 0.6.0
> Reporter: Alvaro del Castillo
> Assignee: Julian Feinauer
> Priority: Major
> Labels: leak, memory, netty
>
> After some time collecting data from a modbus TCP device we get the error:
>
>
> {noformat}
> 16:29:50.228 ERROR ResourceLeakDetector: 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:
> Created at:
>
> io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:331)
>
> io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:185)
>
> io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:176)
>
> io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:137)
>
> io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:114)
>
> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:147)
>
> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
>
> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
>
> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
> io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
>
> io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
>
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> java.lang.Thread.run(Thread.java:748)
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)