ArrayIndexOutOfBoundsException due to potential thread-unsafe access in Folia #385
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stack trace
Plugin and Datapack List
No datapacks.
Actions to reproduce (if known)
I wasn’t online when it happened, so I don’t know the exact cause. The error suggests the inventory was closed twice concurrently on separate threads, likely causing a race condition.
Folia version
Other
The user who caused the error said that they were possibly in a trade menu at the time (custom inventory from the TradeMe plugin). Not sure how helpful that is.
You are using an old version
Correct, but this has not been fixed in 1.21.7 or .8, so I feel like this issue remains relevant
I feel that this just goes into the general premise of not sharing local state across contexts, I don't think that there will be much interest in trying to protect this specific backing collection when the entire inventory system is really not designed for concurrent access. This is likely an issue for plugins to resolve