Catch attribute modification off the main thread.#13639
Open
mbax wants to merge 1 commit intoPaperMC:mainfrom
Open
Catch attribute modification off the main thread.#13639mbax wants to merge 1 commit intoPaperMC:mainfrom
mbax wants to merge 1 commit intoPaperMC:mainfrom
Conversation
The clear() call in refreshDirtyAttributes can lead to server crashes if called asynchronously. This async catcher addition should highlight which plugins cause the trouble.
NonSwag
approved these changes
Feb 15, 2026
|
Last updated for: 6973055ee1cfe4560961e003e7caf3953cbb8ce9. Download the Paperclip jar for this pull request: paper-13639.zip Maven PublicationThe artifacts published by this PR:
Repository DeclarationIn order to use the artifacts published by the PR, add the following repository to your buildscript: repositories {
maven("https://maven-prs.papermc.io/Paper/pr13639") {
name = "Maven for PR #13639" // https://github.com/PaperMC/Paper/pull/13639
mavenContent {
includeModule("io.papermc.paper", "dev-bundle")
includeModule("io.papermc.paper", "paper-api")
}
}
} |
Member
|
I don't think this would be the correct place to add this, the root cause would be plugins interacting with AttributeInstance concurrently, resulting in setDirty being called & mutating attributesToUpdate, or (more unlikely) directly interacting with that set themselves. This method just happens to be where the server trips into it and ends up causing this untraceable error. |
Contributor
Author
|
My assumptions in writing this (I'm curious which are wrong):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
clear()call inrefreshDirtyAttributescan lead to server crashes if called asynchronously. This async catcher addition should highlight which plugins cause the trouble.Untested (due to not knowing what plugins cause the issue), but seems to be the only place that this could be getting triggered. Using this PR for
publish-prto attempt helping users, to see if it works out!