Grasscutters / Grasscutter

A server software reimplementation for a certain anime game.
https://grasscutter.io/
GNU Affero General Public License v3.0
16.21k stars 4.47k forks source link

[ERROR]LEAK: ByteBuf.release() was not called before it's garbage-collected. #544

Closed dongriiiii closed 2 years ago

dongriiiii commented 2 years ago

I deployed grasscutter on the server. During the game, the server suddenly reported an error, showing a network error and unable to log in to the game. The account in the game has no impact, but once you exit, you can't log in to the account, and restarting the server can't solve it. The following is the error message:

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: Created at: io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:402) io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188) io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179) io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:140) io.jpower.kcp.netty.UkcpServerChannel$UkcpServerUnsafe.read(UkcpServerChannel.java:600) io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722) io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658) io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584) io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) java.base/java.lang.Thread.run(Thread.java:833)

4Benj commented 2 years ago

What is the error when you try and login?

dongriiiii commented 2 years ago

当您尝试登录时,会出现什么错误? network error/网络错误 38BCCE424D144FAF7A9D38AED3574748

4Benj commented 2 years ago

Is this in the dev branch?

dongriiiii commented 2 years ago

Is this in the dev branch?

Both dev branch and stable branch have tried

memetrollsXD commented 2 years ago

The error is unrelated to your problems, please visit our Discord for further support

This is an issue tracker, not a support forum. Please visit the Discord for further support.

GitHub issue 不是技术支持论坛。需要技术支持请去 Discord,里面有专门的中文频道