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

IndexOutOfBoundsException error from Matrix plugin when handling packets #987

Open
thisisaef opened this issue Sep 12, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@thisisaef
Copy link

thisisaef commented Sep 12, 2024

Describe the bug
When a player clicks in the interface window (such as a container window), the Matrix plugin catches an exception and throws an IndexOutOfBoundsException

Expected Behavior
The server should process the click event correctly, and the player should interact with the container without issues.

Actual Behavior
Instead of processing the click event, the server throws an IndexOutOfBoundsException, causing the player to be disconnected with the error message "Internal Exception: io.netty.handler.codec.DecoderException"

Steps to Reproduce

  1. Have a player open a container window on the server.
  2. Attempt to interact with the container (e.g., click on an item).
  3. The exception occurs and the player gets disconnected.

Software brand
Beckend: PaperMC 1.21.1-69-925c3b9
Proxy: Velocity 3.3.0-SNAPSHOT (git-3c23ee75-b430)

Plugins
Matrix v7.10.3
packetevents v2.5.0+99acbe496-SNAPSHOT

Screenshots
#1
image
#2
image

Additional context
Include any other helpful information, such as server logs (like the one you provided), or configuration files that may help reproduce the issue.

@thisisaef thisisaef added the bug Something isn't working label Sep 12, 2024
@jtJava
Copy link
Contributor

jtJava commented Sep 12, 2024

You should provide a full stacktrace

@thisisaef
Copy link
Author

You should provide a full stacktrace

What do I have to do?

@booky10
Copy link
Collaborator

booky10 commented Sep 12, 2024

You need to send the full error

@thisisaef
Copy link
Author

thisisaef commented Sep 13, 2024

Because of the ecoenchants plugin, when clicking on an item with this plugin's special enchantment, the player will be kicked out of the server.

video: https://github.com/user-attachments/assets/f74bd110-f16f-416f-8feb-352b7ec6cc6e
latest.log: https://paste.helpch.at/waxuhopexe.makefile

@booky10
Copy link
Collaborator

booky10 commented Sep 17, 2024

i cant reproduce the issue shown in your video with the latest packetevents build
have you ensured your matrix version is up-to-date?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants