io.netty.handler.codec.DecoderException: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 2 byte(s) of direct memory (used: 4660396032, max: 4660396032)

GitHub | SliderKP | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Bungee crash

    GitHub | 2 months ago | SliderKP
    io.netty.handler.codec.DecoderException: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 2 byte(s) of direct memory (used: 4660396032, max: 4660396032)
  2. 0

    Bungee error, i'm test with a lot of version of bungee and protocolbungee

    GitHub | 2 months ago | SliderKP
    io.netty.handler.codec.DecoderException: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 2 byte(s) of direct memory (used: 4660396032, max: 4660396032)
  3. 0

    java.lang.UnsupportedOperationException: direct buffer

    GitHub | 8 months ago | oloflarsson
    io.netty.handler.codec.DecoderException: java.lang.UnsupportedOperationException: direct buffer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    You have mismatched versions of elasticSearch among your nodes or you have a DB running a version of elasticSearch incompatible with the client's version. Try updating or downgrading so the versions match.
  6. 0

    GitHub comment 27#250026214

    GitHub | 6 months ago | MrPowerGamerBR
    io.netty.handler.codec.DecoderException: java.lang.UnsupportedOperationException: not a replayable operation

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. io.netty.util.internal.OutOfDirectMemoryError

      failed to allocate 2 byte(s) of direct memory (used: 4660396032, max: 4660396032)

      at io.netty.util.internal.PlatformDependent.incrementMemoryCounter()
    2. Netty
      AbstractByteBuf.readBytes
      1. io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:624)
      2. io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:578)
      3. io.netty.buffer.UnpooledUnsafeNoCleanerDirectByteBuf.allocateDirect(UnpooledUnsafeNoCleanerDirectByteBuf.java:30)
      4. io.netty.buffer.UnpooledUnsafeDirectByteBuf.<init>(UnpooledUnsafeDirectByteBuf.java:68)
      5. io.netty.buffer.UnpooledUnsafeNoCleanerDirectByteBuf.<init>(UnpooledUnsafeNoCleanerDirectByteBuf.java:25)
      6. io.netty.buffer.UnsafeByteBufUtil.newUnsafeDirectByteBuf(UnsafeByteBufUtil.java:624)
      7. io.netty.buffer.UnpooledByteBufAllocator.newDirectBuffer(UnpooledByteBufAllocator.java:65)
      8. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)
      9. io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:115)
      10. io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:828)
      10 frames
    3. protocolsupport.protocol.transformer
      FakeSplitter.decode
      1. protocolsupport.protocol.transformer.v_1_4_1_5_1_6_core.FakeSplitter.decode(FakeSplitter.java:16)
      1 frame
    4. Netty
      AbstractChannelHandlerContext.fireChannelRead
      1. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
      2. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
      3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:373)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
      5. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:351)
      5 frames
    5. protocolsupport.protocol.listeners
      Minecraft152PingResponseTask.run
      1. protocolsupport.protocol.listeners.initial.InitialPacketDecoder.setProtocol(InitialPacketDecoder.java:111)
      2. protocolsupport.protocol.listeners.initial.Minecraft152PingResponseTask.run(Minecraft152PingResponseTask.java:19)
      2 frames
    6. Netty
      SingleThreadEventExecutor$5.run
      1. io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
      2. io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:120)
      3. io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
      4. io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418)
      5. io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:312)
      6. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      6 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame