Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-323

SocketCAN transport fails with out of memory error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0, 0.9.0
    • 0.10.0
    • Driver-CANopen
    • None

    Description

      After a month of continous work CANopen driver starts to fail with following error:

      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)
      

      Attachments

        Activity

          People

            ldywicki Łukasz Dywicki
            ldywicki Łukasz Dywicki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: