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

java.lang.IllegalArgumentException: Comparison method violates its general contract! #2270

Open
topg-org opened this issue Oct 27, 2024 · 8 comments
Assignees
Labels
✔️ Confirmed Confirmed bugs that can be replicated 🔧 Potential fix A potential fix was already submitted

Comments

@topg-org
Copy link

Minecraft's Version

paper-1.21-103

Plugin's Version

SuperiorSkyblock2 v2024.3-b341 (dev)

Describe the bug

[Server thread/INFO]: [!] Island → Recalculating all islands...
[WARN]: [SuperiorSkyblock2] Plugin SuperiorSkyblock2 v2024.3-b341 generated an exception while executing task 8472
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.base/java.util.TimSort.mergeLo(TimSort.java:781) ~[?:?]
at java.base/java.util.TimSort.mergeAt(TimSort.java:518) ~[?:?]
at java.base/java.util.TimSort.mergeForceCollapse(TimSort.java:461) ~[?:?]
at java.base/java.util.TimSort.sort(TimSort.java:254) ~[?:?]
at java.base/java.util.Arrays.sort(Arrays.java:1308) ~[?:?]
at java.base/java.util.ArrayList.sort(ArrayList.java:1804) ~[?:?]
at SuperiorSkyblock2-2024.3-b341.jar/com.bgsoftware.superiorskyblock.island.container.DefaultIslandsContainer.sortIslandsInternal(DefaultIslandsContainer.java:187) ~[SuperiorSkyblock2-2024.3-b341.jar:?]
at SuperiorSkyblock2-2024.3-b341.jar/com.bgsoftware.superiorskyblock.island.container.DefaultIslandsContainer.lambda$sortIslands$8(DefaultIslandsContainer.java:150) ~[SuperiorSkyblock2-2024.3-b341.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[paper-1.21.jar:1.21-103-aa3b356]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.jar:1.21-103-aa3b356]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

To Reproduce

Idk exactly, all data is in mysql, nothing weird no null or absent values

Additional Information

No response

@topg-org topg-org added the Pending Pending reports to be investigated label Oct 27, 2024
@OmerBenGera OmerBenGera added the ❌ Unconfirmed Bugs that were reported but yet to be replicatable label Nov 2, 2024
@OmerBenGera OmerBenGera removed the Pending Pending reports to be investigated label Nov 2, 2024
@OmerBenGera
Copy link
Member

I don't know why it occurs, but I added debug message to when it occurs to print more information regarding the error.
Please update to latest dev build and report back once it occurs again so I can look at the debug data that is printed.

@topg-org
Copy link
Author

[15:37:10 INFO]: [!] Island → Successfully finished recalculating all islands.
[15:37:10 WARN]: [SuperiorSkyblock2] Plugin SuperiorSkyblock2 v2024.3-b361 generated an exception while executing task 344232
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.base/java.util.TimSort.mergeLo(TimSort.java:781) ~[?:?]
at java.base/java.util.TimSort.mergeAt(TimSort.java:518) ~[?:?]
at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448) ~[?:?]
at java.base/java.util.TimSort.sort(TimSort.java:245) ~[?:?]
at java.base/java.util.Arrays.sort(Arrays.java:1308) ~[?:?]
at java.base/java.util.ArrayList.sort(ArrayList.java:1804) ~[?:?]
at SuperiorSkyblock2-2024.3-b361.jar/com.bgsoftware.superiorskyblock.island.container.DefaultIslandsContainer.sortIslandsInternal(DefaultIslandsContainer.java:189) ~[SuperiorSkyblock2-2024.3-b361.jar:?]
at SuperiorSkyblock2-2024.3-b361.jar/com.bgsoftware.superiorskyblock.island.container.DefaultIslandsContainer.lambda$sortIslands$8(DefaultIslandsContainer.java:151) ~[SuperiorSkyblock2-2024.3-b361.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[paper-1.21.1.jar:1.21.1-131-84281ce]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.1.jar:1.21.1-131-84281ce]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.1.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

@topg-org
Copy link
Author

Idk if it's worth mentioning but I use MariaDB as storage

@OmerBenGera
Copy link
Member

DefaultIslandsContainer

I don't see the warning message I added.
Are you sure this is the entire error?
Do you see in the logs the following message? An error occurred while sorting islands for sorting-type

@topg-org
Copy link
Author

Yes that’s the whole error, it just repeats it self

@OmerBenGera
Copy link
Member

Yes that’s the whole error, it just repeats it self

Can you send me your latest.log file?

@topg-org
Copy link
Author

Sure, here you go: https://paste.denizenscript.com/View/128404

@OmerBenGera
Copy link
Member

Check out latest dev build, should be fixed

@OmerBenGera OmerBenGera added 🔧 Potential fix A potential fix was already submitted ✔️ Confirmed Confirmed bugs that can be replicated and removed ❌ Unconfirmed Bugs that were reported but yet to be replicatable labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✔️ Confirmed Confirmed bugs that can be replicated 🔧 Potential fix A potential fix was already submitted
Projects
None yet
Development

No branches or pull requests

2 participants