Skip to content

Instantly share code, notes, and snippets.

@davidnadeau
Created July 7, 2022 12:44
Show Gist options
  • Save davidnadeau/4da26f072482fb58b19f4bd0379f35c7 to your computer and use it in GitHub Desktop.
Save davidnadeau/4da26f072482fb58b19f4bd0379f35c7 to your computer and use it in GitHub Desktop.
SEVERE: LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information.
Recent access records:
#1:
io.grpc.netty.shaded.io.netty.buffer.AdvancedLeakAwareByteBuf.writeBytes(AdvancedLeakAwareByteBuf.java:617)
io.grpc.netty.shaded.io.grpc.netty.NettyWritableBuffer.write(NettyWritableBuffer.java:35)
io.grpc.internal.MessageFramer.writeRaw(MessageFramer.java:288)
io.grpc.internal.MessageFramer.access$400(MessageFramer.java:43)
io.grpc.internal.MessageFramer$OutputStreamAdapter.write(MessageFramer.java:375)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.write(CodedOutputStream.java:3005)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeLazy(CodedOutputStream.java:3013)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeStringNoTag(CodedOutputStream.java:2925)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeString(CodedOutputStream.java:2769)
com.google.protobuf.GeneratedMessageV3.writeString(GeneratedMessageV3.java:3098)
io.grpc.examples.helloworld.HelloRequest.writeTo(HelloRequest.java:147)
com.google.protobuf.AbstractMessageLite.writeTo(AbstractMessageLite.java:83)
io.grpc.protobuf.lite.ProtoInputStream.drainTo(ProtoInputStream.java:52)
io.grpc.internal.MessageFramer.writeToOutputStream(MessageFramer.java:267)
io.grpc.internal.MessageFramer.writeKnownLengthUncompressed(MessageFramer.java:229)
io.grpc.internal.MessageFramer.writeUncompressed(MessageFramer.java:168)
io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:141)
io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:65)
io.grpc.internal.ForwardingClientStream.writeMessage(ForwardingClientStream.java:37)
io.grpc.internal.RetriableStream$1SendMessageEntry.runWith(RetriableStream.java:552)
io.grpc.internal.RetriableStream.delayOrExecute(RetriableStream.java:529)
io.grpc.internal.RetriableStream.sendMessage(RetriableStream.java:556)
io.grpc.internal.ClientCallImpl.sendMessageInternal(ClientCallImpl.java:520)
io.grpc.internal.ClientCallImpl.sendMessage(ClientCallImpl.java:506)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:317)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:303)
io.grpc.stub.ClientCalls.asyncUnaryCall(ClientCalls.java:76)
io.grpc.examples.helloworld.GreeterGrpc$GreeterStub.sayHello(GreeterGrpc.java:150)
io.grpc.examples.helloworld.HelloWorldClient.greet(HelloWorldClient.java:29)
io.grpc.examples.helloworld.HelloWorldClient.main(HelloWorldClient.java:44)
#2:
io.grpc.netty.shaded.io.netty.buffer.AdvancedLeakAwareByteBuf.writeBytes(AdvancedLeakAwareByteBuf.java:617)
io.grpc.netty.shaded.io.grpc.netty.NettyWritableBuffer.write(NettyWritableBuffer.java:35)
io.grpc.internal.MessageFramer.writeRaw(MessageFramer.java:288)
io.grpc.internal.MessageFramer.access$400(MessageFramer.java:43)
io.grpc.internal.MessageFramer$OutputStreamAdapter.write(MessageFramer.java:375)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.doFlush(CodedOutputStream.java:3062)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.write(CodedOutputStream.java:2994)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeLazy(CodedOutputStream.java:3013)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeStringNoTag(CodedOutputStream.java:2925)
com.google.protobuf.CodedOutputStream$OutputStreamEncoder.writeString(CodedOutputStream.java:2769)
com.google.protobuf.GeneratedMessageV3.writeString(GeneratedMessageV3.java:3098)
io.grpc.examples.helloworld.HelloRequest.writeTo(HelloRequest.java:147)
com.google.protobuf.AbstractMessageLite.writeTo(AbstractMessageLite.java:83)
io.grpc.protobuf.lite.ProtoInputStream.drainTo(ProtoInputStream.java:52)
io.grpc.internal.MessageFramer.writeToOutputStream(MessageFramer.java:267)
io.grpc.internal.MessageFramer.writeKnownLengthUncompressed(MessageFramer.java:229)
io.grpc.internal.MessageFramer.writeUncompressed(MessageFramer.java:168)
io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:141)
io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:65)
io.grpc.internal.ForwardingClientStream.writeMessage(ForwardingClientStream.java:37)
io.grpc.internal.RetriableStream$1SendMessageEntry.runWith(RetriableStream.java:552)
io.grpc.internal.RetriableStream.delayOrExecute(RetriableStream.java:529)
io.grpc.internal.RetriableStream.sendMessage(RetriableStream.java:556)
io.grpc.internal.ClientCallImpl.sendMessageInternal(ClientCallImpl.java:520)
io.grpc.internal.ClientCallImpl.sendMessage(ClientCallImpl.java:506)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:317)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:303)
io.grpc.stub.ClientCalls.asyncUnaryCall(ClientCalls.java:76)
io.grpc.examples.helloworld.GreeterGrpc$GreeterStub.sayHello(GreeterGrpc.java:150)
io.grpc.examples.helloworld.HelloWorldClient.greet(HelloWorldClient.java:29)
io.grpc.examples.helloworld.HelloWorldClient.main(HelloWorldClient.java:44)
#3:
io.grpc.netty.shaded.io.netty.buffer.AdvancedLeakAwareByteBuf.writeBytes(AdvancedLeakAwareByteBuf.java:617)
io.grpc.netty.shaded.io.grpc.netty.NettyWritableBuffer.write(NettyWritableBuffer.java:35)
io.grpc.internal.MessageFramer.writeRaw(MessageFramer.java:288)
io.grpc.internal.MessageFramer.writeKnownLengthUncompressed(MessageFramer.java:228)
io.grpc.internal.MessageFramer.writeUncompressed(MessageFramer.java:168)
io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:141)
io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:65)
io.grpc.internal.ForwardingClientStream.writeMessage(ForwardingClientStream.java:37)
io.grpc.internal.RetriableStream$1SendMessageEntry.runWith(RetriableStream.java:552)
io.grpc.internal.RetriableStream.delayOrExecute(RetriableStream.java:529)
io.grpc.internal.RetriableStream.sendMessage(RetriableStream.java:556)
io.grpc.internal.ClientCallImpl.sendMessageInternal(ClientCallImpl.java:520)
io.grpc.internal.ClientCallImpl.sendMessage(ClientCallImpl.java:506)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:317)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:303)
io.grpc.stub.ClientCalls.asyncUnaryCall(ClientCalls.java:76)
io.grpc.examples.helloworld.GreeterGrpc$GreeterStub.sayHello(GreeterGrpc.java:150)
io.grpc.examples.helloworld.HelloWorldClient.greet(HelloWorldClient.java:29)
io.grpc.examples.helloworld.HelloWorldClient.main(HelloWorldClient.java:44)
Created at:
io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:402)
io.grpc.netty.shaded.io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188)
io.grpc.netty.shaded.io.netty.buffer.AbstractByteBufAllocator.buffer(AbstractByteBufAllocator.java:124)
io.grpc.netty.shaded.io.grpc.netty.NettyWritableBufferAllocator.allocate(NettyWritableBufferAllocator.java:51)
io.grpc.internal.MessageFramer.writeKnownLengthUncompressed(MessageFramer.java:226)
io.grpc.internal.MessageFramer.writeUncompressed(MessageFramer.java:168)
io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:141)
io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:65)
io.grpc.internal.ForwardingClientStream.writeMessage(ForwardingClientStream.java:37)
io.grpc.internal.RetriableStream$1SendMessageEntry.runWith(RetriableStream.java:552)
io.grpc.internal.RetriableStream.delayOrExecute(RetriableStream.java:529)
io.grpc.internal.RetriableStream.sendMessage(RetriableStream.java:556)
io.grpc.internal.ClientCallImpl.sendMessageInternal(ClientCallImpl.java:520)
io.grpc.internal.ClientCallImpl.sendMessage(ClientCallImpl.java:506)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:317)
io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:303)
io.grpc.stub.ClientCalls.asyncUnaryCall(ClientCalls.java:76)
io.grpc.examples.helloworld.GreeterGrpc$GreeterStub.sayHello(GreeterGrpc.java:150)
io.grpc.examples.helloworld.HelloWorldClient.greet(HelloWorldClient.java:29)
io.grpc.examples.helloworld.HelloWorldClient.main(HelloWorldClient.java:44)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment