Łukasz Dywicki created PLC4X-323:
------------------------------------
Summary: SocketCAN transport fails with out of memory error
Key: PLC4X-323
URL: https://issues.apache.org/jira/browse/PLC4X-323
Project: Apache PLC4X
Issue Type: Bug
Components: Driver-CANopen
Affects Versions: 0.9.0, 0.8.0
Reporter: Łukasz Dywicki
Assignee: Łukasz Dywicki
After a month of continous work CANopen driver starts to fail with following
error:
{code}
Exception in thread "javacan-reader" java.lang.OutOfMemoryError: Java heap space
at
io.netty.util.internal.PlatformDependent.allocateUninitializedArray(PlatformDependent.java:285)
at
io.netty.buffer.UnpooledUnsafeHeapByteBuf.allocateArray(UnpooledUnsafeHeapByteBuf.java:39)
at
io.netty.buffer.UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf.allocateArray(UnpooledByteBufAllocator.java:144)
at
io.netty.buffer.UnpooledHeapByteBuf.capacity(UnpooledHeapByteBuf.java:133)
at
io.netty.buffer.AbstractByteBuf.ensureWritable0(AbstractByteBuf.java:307)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1114)
at
org.apache.plc4x.java.transport.socketcan.netty.SocketCANChannel.lambda$doConnect$0(SocketCANChannel.java:119)
at
org.apache.plc4x.java.transport.socketcan.netty.SocketCANChannel$$Lambda$1043/0x0000000100d5a440.run(Unknown
Source)
at java.base/java.lang.Thread.run(Thread.java:834)
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)