io.netty.handler.codec.EncoderException: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 518979584)

GitHub | mike592387 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    BungeeCord Crashes Repeatedly with io.netty.util.internal.OutOfDirectMemoryError

    GitHub | 7 months ago | mike592387
    io.netty.handler.codec.EncoderException: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 518979584)
  2. 0

    GitHub comment 112#226953470

    GitHub | 9 months ago | Xayanix
    io.netty.handler.codec.EncoderException: java.lang.NullPointerException at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:125) at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:643) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:700) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:636) at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:944)
  3. 0

    1.8 Players getting disconnected

    GitHub | 9 months ago | Xayanix
    io.netty.handler.codec.EncoderException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. io.netty.util.internal.OutOfDirectMemoryError

      failed to allocate 16777216 byte(s) of direct memory (used: 503316487, max: 518979584)

      at io.netty.util.internal.PlatformDependent.incrementMemoryCounter()
    2. Netty
      AbstractChannel.write
      1. io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:518)
      2. io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:472)
      3. io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:688)
      4. io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:677)
      5. io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:237)
      6. io.netty.buffer.PoolArena.allocate(PoolArena.java:213)
      7. io.netty.buffer.PoolArena.allocate(PoolArena.java:141)
      8. io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:271)
      9. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:177)
      10. io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:168)
      11. io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:121)
      12. io.netty.handler.codec.MessageToByteEncoder.allocateBuffer(MessageToByteEncoder.java:140)
      13. io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:105)
      14. io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:742)
      15. io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:734)
      16. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:819)
      17. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:727)
      18. io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:113)
      19. io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:742)
      20. io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:734)
      21. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:819)
      22. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:727)
      23. io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:120)
      24. io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:742)
      25. io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:734)
      26. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:819)
      27. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:727)
      28. io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:1007)
      29. io.netty.channel.AbstractChannel.write(AbstractChannel.java:251)
      29 frames
    3. net.md_5.bungee
      HandlerBoss.channelRead
      1. net.md_5.bungee.netty.ChannelWrapper.write(ChannelWrapper.java:46)
      2. net.md_5.bungee.UserConnection.sendPacket(UserConnection.java:190)
      3. net.md_5.bungee.connection.DownstreamBridge.handle(DownstreamBridge.java:102)
      4. net.md_5.bungee.netty.HandlerBoss.channelRead(HandlerBoss.java:85)
      4 frames
    4. Netty
      SingleThreadEventExecutor$2.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      4. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      7. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      8. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
      9. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      10. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      11. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      12. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
      13. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      14. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      15. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      16. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
      17. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280)
      18. io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396)
      19. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
      20. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      21. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      22. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      23. io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
      24. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      25. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      26. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      27. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
      28. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      29. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      30. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
      31. io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:883)
      32. io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:389)
      33. io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:305)
      34. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
      34 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame