aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-08-05 19:57:34 +0200
committerNassim Jahnke <[email protected]>2024-08-05 19:57:34 +0200
commit5a5c3a4a2448e8acd92f51cdac458fa85a9f2334 (patch)
treeb96c1bba0a8a685de654a36f4149e00a2535ed39
parentdf3b6544f74be73c8882b97c43d39022340f2d74 (diff)
downloadPaper-5a5c3a4a2448e8acd92f51cdac458fa85a9f2334.tar.gz
Paper-5a5c3a4a2448e8acd92f51cdac458fa85a9f2334.zip
Remove chunk unload trace debug
The issue the patch was initially added for has already been fixed and filling stacktraces can be expensive
-rw-r--r--patches/server/1030-Add-debug-for-chunk-system-unload-crash.patch57
-rw-r--r--patches/server/1030-fix-horse-inventories.patch (renamed from patches/server/1031-fix-horse-inventories.patch)0
-rw-r--r--patches/server/1031-Only-call-EntityDamageEvents-before-actuallyHurt.patch (renamed from patches/server/1032-Only-call-EntityDamageEvents-before-actuallyHurt.patch)0
-rw-r--r--patches/server/1032-Fix-entity-tracker-desync-when-new-players-are-added.patch (renamed from patches/server/1033-Fix-entity-tracker-desync-when-new-players-are-added.patch)0
-rw-r--r--patches/server/1033-Lag-compensation-ticks.patch (renamed from patches/server/1034-Lag-compensation-ticks.patch)0
-rw-r--r--patches/server/1034-Detail-more-information-in-watchdog-dumps.patch (renamed from patches/server/1035-Detail-more-information-in-watchdog-dumps.patch)0
-rw-r--r--patches/server/1035-Write-SavedData-IO-async.patch (renamed from patches/server/1036-Write-SavedData-IO-async.patch)0
-rw-r--r--patches/server/1036-Correctly-call-PlayerItemBreakEvent.patch (renamed from patches/server/1037-Correctly-call-PlayerItemBreakEvent.patch)0
-rw-r--r--patches/server/1037-Add-ItemType-getItemRarity.patch (renamed from patches/server/1038-Add-ItemType-getItemRarity.patch)0
-rw-r--r--patches/server/1038-Incremental-chunk-and-player-saving.patch (renamed from patches/server/1039-Incremental-chunk-and-player-saving.patch)0
-rw-r--r--patches/server/1039-Attempt-to-recalculate-regionfile-header-if-it-is-co.patch (renamed from patches/server/1040-Attempt-to-recalculate-regionfile-header-if-it-is-co.patch)0
-rw-r--r--patches/server/1040-Move-CraftComplexRecipe-to-extend-CraftingRecipe.patch (renamed from patches/server/1041-Move-CraftComplexRecipe-to-extend-CraftingRecipe.patch)0
-rw-r--r--patches/server/1041-Add-CrafterCraftEvent.patch (renamed from patches/server/1042-Add-CrafterCraftEvent.patch)0
-rw-r--r--patches/server/1042-Bundle-spark.patch (renamed from patches/server/1043-Bundle-spark.patch)0
-rw-r--r--patches/server/1043-Add-plugin-info-at-startup.patch (renamed from patches/server/1044-Add-plugin-info-at-startup.patch)0
-rw-r--r--patches/server/1044-Make-interaction-leniency-distance-configurable.patch (renamed from patches/server/1045-Make-interaction-leniency-distance-configurable.patch)0
-rw-r--r--patches/server/1045-Fix-PickupStatus-getting-reset.patch (renamed from patches/server/1046-Fix-PickupStatus-getting-reset.patch)0
17 files changed, 0 insertions, 57 deletions
diff --git a/patches/server/1030-Add-debug-for-chunk-system-unload-crash.patch b/patches/server/1030-Add-debug-for-chunk-system-unload-crash.patch
deleted file mode 100644
index 206968f773..0000000000
--- a/patches/server/1030-Add-debug-for-chunk-system-unload-crash.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Spottedleaf <[email protected]>
-Date: Wed, 19 Jun 2024 10:52:07 -0700
-Subject: [PATCH] Add debug for chunk system unload crash
-
-Somehow, a chunkholder is present in the unload queue after
-it has been unloaded. It is likely that this is a result of
-adding the chunk holder to the unload queue while it is
-unloading. However, that should not be possible.
-
-To find out where it is being added to the unload queue, track
-the last stacktrace which adds to the unload queue and check
-on chunk holder remove if the holder is present in the unload queue
-and log the stacktrace.
-
-diff --git a/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java
-index 1dfddea4fd7e89fb6fd9fa49f7ab5e6f48e6ef3c..4068138e4ec0ccb02f5925f8b5a31381882f08e0 100644
---- a/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java
-+++ b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java
-@@ -749,9 +749,22 @@ public final class NewChunkHolder {
-
- /** Unloaded from chunk map */
- private boolean unloaded;
-+ private Throwable lastUnloadAdd;
-
- void markUnloaded() {
- this.unloaded = true;
-+ if (this.inUnloadQueue) {
-+ if (this.lastUnloadAdd != null) {
-+ LOGGER.error("Unloaded chunkholder " + this.toString() + " while in the unload queue", this.lastUnloadAdd);
-+ } else {
-+ // should never happen
-+ LOGGER.error("Unloaded chunkholder " + this.toString() + " while in the unload queue without a throwable");
-+ }
-+
-+ // prevent crash by removing (note: we hold scheduling lock here)
-+ this.inUnloadQueue = false;
-+ this.scheduler.chunkHolderManager.unloadQueue.removeChunk(this.chunkX, this.chunkZ);
-+ }
- }
-
- private boolean inUnloadQueue = false;
-@@ -769,12 +782,14 @@ public final class NewChunkHolder {
- // ensure in unload queue
- if (!this.inUnloadQueue) {
- this.inUnloadQueue = true;
-+ this.lastUnloadAdd = new Throwable();
- this.scheduler.chunkHolderManager.unloadQueue.addChunk(this.chunkX, this.chunkZ);
- }
- } else {
- // ensure not in unload queue
- if (this.inUnloadQueue) {
- this.inUnloadQueue = false;
-+ this.lastUnloadAdd = null;
- this.scheduler.chunkHolderManager.unloadQueue.removeChunk(this.chunkX, this.chunkZ);
- }
- }
diff --git a/patches/server/1031-fix-horse-inventories.patch b/patches/server/1030-fix-horse-inventories.patch
index ca5b9c08cd..ca5b9c08cd 100644
--- a/patches/server/1031-fix-horse-inventories.patch
+++ b/patches/server/1030-fix-horse-inventories.patch
diff --git a/patches/server/1032-Only-call-EntityDamageEvents-before-actuallyHurt.patch b/patches/server/1031-Only-call-EntityDamageEvents-before-actuallyHurt.patch
index 1b7439c07a..1b7439c07a 100644
--- a/patches/server/1032-Only-call-EntityDamageEvents-before-actuallyHurt.patch
+++ b/patches/server/1031-Only-call-EntityDamageEvents-before-actuallyHurt.patch
diff --git a/patches/server/1033-Fix-entity-tracker-desync-when-new-players-are-added.patch b/patches/server/1032-Fix-entity-tracker-desync-when-new-players-are-added.patch
index f953c50390..f953c50390 100644
--- a/patches/server/1033-Fix-entity-tracker-desync-when-new-players-are-added.patch
+++ b/patches/server/1032-Fix-entity-tracker-desync-when-new-players-are-added.patch
diff --git a/patches/server/1034-Lag-compensation-ticks.patch b/patches/server/1033-Lag-compensation-ticks.patch
index ef9a724904..ef9a724904 100644
--- a/patches/server/1034-Lag-compensation-ticks.patch
+++ b/patches/server/1033-Lag-compensation-ticks.patch
diff --git a/patches/server/1035-Detail-more-information-in-watchdog-dumps.patch b/patches/server/1034-Detail-more-information-in-watchdog-dumps.patch
index 7497c32cc5..7497c32cc5 100644
--- a/patches/server/1035-Detail-more-information-in-watchdog-dumps.patch
+++ b/patches/server/1034-Detail-more-information-in-watchdog-dumps.patch
diff --git a/patches/server/1036-Write-SavedData-IO-async.patch b/patches/server/1035-Write-SavedData-IO-async.patch
index 538d0fcba4..538d0fcba4 100644
--- a/patches/server/1036-Write-SavedData-IO-async.patch
+++ b/patches/server/1035-Write-SavedData-IO-async.patch
diff --git a/patches/server/1037-Correctly-call-PlayerItemBreakEvent.patch b/patches/server/1036-Correctly-call-PlayerItemBreakEvent.patch
index 6637cd6cd0..6637cd6cd0 100644
--- a/patches/server/1037-Correctly-call-PlayerItemBreakEvent.patch
+++ b/patches/server/1036-Correctly-call-PlayerItemBreakEvent.patch
diff --git a/patches/server/1038-Add-ItemType-getItemRarity.patch b/patches/server/1037-Add-ItemType-getItemRarity.patch
index 35ebf5036b..35ebf5036b 100644
--- a/patches/server/1038-Add-ItemType-getItemRarity.patch
+++ b/patches/server/1037-Add-ItemType-getItemRarity.patch
diff --git a/patches/server/1039-Incremental-chunk-and-player-saving.patch b/patches/server/1038-Incremental-chunk-and-player-saving.patch
index a19a5893eb..a19a5893eb 100644
--- a/patches/server/1039-Incremental-chunk-and-player-saving.patch
+++ b/patches/server/1038-Incremental-chunk-and-player-saving.patch
diff --git a/patches/server/1040-Attempt-to-recalculate-regionfile-header-if-it-is-co.patch b/patches/server/1039-Attempt-to-recalculate-regionfile-header-if-it-is-co.patch
index 3b391d165a..3b391d165a 100644
--- a/patches/server/1040-Attempt-to-recalculate-regionfile-header-if-it-is-co.patch
+++ b/patches/server/1039-Attempt-to-recalculate-regionfile-header-if-it-is-co.patch
diff --git a/patches/server/1041-Move-CraftComplexRecipe-to-extend-CraftingRecipe.patch b/patches/server/1040-Move-CraftComplexRecipe-to-extend-CraftingRecipe.patch
index 3e85c7f987..3e85c7f987 100644
--- a/patches/server/1041-Move-CraftComplexRecipe-to-extend-CraftingRecipe.patch
+++ b/patches/server/1040-Move-CraftComplexRecipe-to-extend-CraftingRecipe.patch
diff --git a/patches/server/1042-Add-CrafterCraftEvent.patch b/patches/server/1041-Add-CrafterCraftEvent.patch
index 28eb5f5746..28eb5f5746 100644
--- a/patches/server/1042-Add-CrafterCraftEvent.patch
+++ b/patches/server/1041-Add-CrafterCraftEvent.patch
diff --git a/patches/server/1043-Bundle-spark.patch b/patches/server/1042-Bundle-spark.patch
index 5f68e17337..5f68e17337 100644
--- a/patches/server/1043-Bundle-spark.patch
+++ b/patches/server/1042-Bundle-spark.patch
diff --git a/patches/server/1044-Add-plugin-info-at-startup.patch b/patches/server/1043-Add-plugin-info-at-startup.patch
index 051309bbed..051309bbed 100644
--- a/patches/server/1044-Add-plugin-info-at-startup.patch
+++ b/patches/server/1043-Add-plugin-info-at-startup.patch
diff --git a/patches/server/1045-Make-interaction-leniency-distance-configurable.patch b/patches/server/1044-Make-interaction-leniency-distance-configurable.patch
index 341e13affd..341e13affd 100644
--- a/patches/server/1045-Make-interaction-leniency-distance-configurable.patch
+++ b/patches/server/1044-Make-interaction-leniency-distance-configurable.patch
diff --git a/patches/server/1046-Fix-PickupStatus-getting-reset.patch b/patches/server/1045-Fix-PickupStatus-getting-reset.patch
index 795972058b..795972058b 100644
--- a/patches/server/1046-Fix-PickupStatus-getting-reset.patch
+++ b/patches/server/1045-Fix-PickupStatus-getting-reset.patch