Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[问题] 不知道什么原理 跟ConditionalEvents插件冲突 #386

Open
3 tasks done
Ylesss opened this issue Apr 9, 2024 · 1 comment
Open
3 tasks done

[问题] 不知道什么原理 跟ConditionalEvents插件冲突 #386

Ylesss opened this issue Apr 9, 2024 · 1 comment
Labels
Bug | 漏洞 需要修复的错误

Comments

@Ylesss
Copy link

Ylesss commented Apr 9, 2024

是否已尝试最新的版本

  • 我已更新 TrChat 至最新的版本, 并且同样复现该问题.

是否已查阅 Wiki

  • 我已查阅 Wiki 对于该问题的相关内容, 并确定该问题是存在的.

如果使用跨服功能, 是否在代理端上安装了TrChat或使用redis转发?

  • 我已在代理端上安装了TrChat或使用redis转发

详细描述

任何子服 装有ConditionalEvents 跟Trchat 随便打什么字就会被弹出该子服
然后bc端报错
未测试单端 不知道是不是bc特色

配置文件

日志

00:51:09 [信息] [Ylesss] <-> DownstreamBridge <-> [login] has disconnected
00:51:11 [信息] [%server_name%] Ylesss: 1
00:51:11 [警告] [Ylesss] <-> DownstreamBridge <-> [spawn] - could not decode packet!
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(1) exceeds writerIndex(1): PooledSlicedByteBuf(ridx: 1, widx: 1, cap: 1/1, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 8192))
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:98)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(1) exceeds writerIndex(1): PooledSlicedByteBuf(ridx: 1, widx: 1, cap: 1/1, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 8192))
at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442)
at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:730)
at net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:245)
at net.md_5.bungee.protocol.DefinedPacket.readVarInt(DefinedPacket.java:235)
at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:37)
at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:11)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
... 24 more

服务器环境

服务器版本:
This server is running Paper version git-Paper-1620 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
插件列表:
Plugins (8): CMI, CMILib, ConditionalEvents, LuckPerms, PlaceholderAPI, ProtocolLib, TrChat, Vault
BC版本:
BungeeCord-general-build1774

@Ylesss Ylesss added the Bug | 漏洞 需要修复的错误 label Apr 9, 2024
@ItsFlicker
Copy link

尝试使用 https://github.com/TrPlugins/TrChat/actions/runs/8770523938
并关闭Options.Use-Packets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug | 漏洞 需要修复的错误
Projects
None yet
Development

No branches or pull requests

2 participants