Closed vberet closed 2 years ago
Hi, I am using this component to retrieve data from modbus, after some days the following error occurs:
io.netty.util.ResourceLeakDetector reportTracedLeak. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run.Script, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.663Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. SEVERE: LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information.. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.663Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. Recent access records:. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.663Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. Created at:. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:363). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:178). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:139). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:114). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:147). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.665Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. java.base/java.lang.Thread.run(Thread.java:829). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING}
Someone has the same problem? Thanks in advance
Hi @vberet , thank you for reporting. I made a quick fix of this problem. Could you please try modified JAR file included in the attached ZIP? ModbusTCP.zip
Hi, I am using this component to retrieve data from modbus, after some days the following error occurs:
io.netty.util.ResourceLeakDetector reportTracedLeak. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run.Script, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.663Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. SEVERE: LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information.. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.663Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. Recent access records:. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.663Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. Created at:. {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:363). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:187). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:178). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:139). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator$MaxMessageHandle.allocate(DefaultMaxMessagesRecvByteBufAllocator.java:114). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:147). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.664Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING} 2022-09-05T13:06:01.665Z [WARN] (Copier) aws.greengrass.labs.ModbusTCP: stderr. java.base/java.lang.Thread.run(Thread.java:829). {scriptName=services.aws.greengrass.labs.ModbusTCP.lifecycle.Run, serviceName=aws.greengrass.labs.ModbusTCP, currentState=RUNNING}
Someone has the same problem? Thanks in advance