io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1

  1. 0

    Newbie: Tripped a warning: WARN io.netty.util.ReferenceCountUtil - Failed to release a message

    Stack Overflow | 2 months ago | Andrew Lentvorski
    io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
  2. 0

    Query service: Error in query handling io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1

    GitHub | 10 months ago | deathcap
    io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
  3. 0

    GitHub comment 1277#178501853

    GitHub | 10 months ago | unlikely-leo
    io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Errors with concurrent server push

    GitHub | 6 months ago | trask
    io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1

    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.IllegalReferenceCountException

      refCnt: 0, decrement: 1

      at io.netty.buffer.AbstractReferenceCountedByteBuf.release0()
    2. Netty
      AbstractChannelHandlerContext.flush
      1. io.netty.buffer.AbstractReferenceCountedByteBuf.release0(AbstractReferenceCountedByteBuf.java:110)
      2. io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:98)
      3. io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:84)
      4. io.netty.channel.DefaultAddressedEnvelope.release(DefaultAddressedEnvelope.java:101)
      5. io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:84)
      6. io.netty.util.ReferenceCountUtil.safeRelease(ReferenceCountUtil.java:109)
      7. io.netty.channel.ChannelOutboundBuffer.remove0(ChannelOutboundBuffer.java:296)
      8. io.netty.channel.ChannelOutboundBuffer.failFlushed(ChannelOutboundBuffer.java:621)
      9. io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:869)
      10. io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.flush0(AbstractNioChannel.java:362)
      11. io.netty.channel.AbstractChannel$AbstractUnsafe.flush(AbstractChannel.java:823)
      12. io.netty.channel.DefaultChannelPipeline$HeadContext.flush(DefaultChannelPipeline.java:1296)
      13. io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:787)
      14. io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:779)
      15. io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:760)
      15 frames
    3. com.foobar.uservices
      InitialReceiverHandler.channelReadComplete
      1. com.foobar.uservices.initial_receiver.InitialReceiverHandler.channelReadComplete(InitialReceiverHandler.java:24)
      1 frame
    4. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:409)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:391)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelReadComplete(AbstractChannelHandlerContext.java:384)
      4. io.netty.channel.DefaultChannelPipeline$HeadContext.channelReadComplete(DefaultChannelPipeline.java:1339)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:409)
      6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:391)
      7. io.netty.channel.DefaultChannelPipeline.fireChannelReadComplete(DefaultChannelPipeline.java:932)
      8. io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:97)
      9. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:651)
      10. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:574)
      11. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:488)
      12. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:450)
      13. io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      14. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      14 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame