[ 
https://issues.apache.org/jira/browse/PLC4X-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Łukasz Dywicki reopened PLC4X-323:
----------------------------------

Issue still remains, so previous patch didn't work as expected.

> 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.8.0, 0.9.0
>            Reporter: Łukasz Dywicki
>            Assignee: Łukasz Dywicki
>            Priority: Major
>             Fix For: 0.10.0
>
>
> 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)

Reply via email to