Asynchronous Entity Fetching Causes Main Thread Check Failure in PaperMC Server
var1nthon opened this issue ยท 1 comments
- This issue is not solved in a development build
Describe the bug
An asynchronous operation in the Minecraft server using PaperMC causes a failed main thread check. The error occurs when trying to fetch entities in the server world, which should be performed on the main server thread but is being called asynchronously.
To Reproduce
Steps to reproduce the behavior:
- Run the PaperMC server version 1.21-54-f250ec0.
- Install and enable the ProtocolLib and IllegalStack plugins.
- Trigger an operation that involves fetching entities, possibly through an action monitored by IllegalStack (e.g., certain player commands or interactions).
Expected behavior
Entity fetching operations should be performed on the main server thread to ensure thread safety and prevent crashes. The server should handle these operations without triggering asynchronous errors.
Version Info
Server Version: PaperMC 1.21-54-f250ec0
Plugins Involved: ProtocolLib dump
dump-2567-07-19_04.55.36.txt
IllegalStack (2.9.12-SNAPSHOT-01)
Additional context
Error Log: https://paste.helpch.at/jovololivi.php
Spark Log: https://spark.lucko.me/fDDjIW4j7X
Notes:
The error involves asynchronous access to server entities, which should be executed on the main thread to ensure thread safety.
Reviewing and modifying the relevant plugin code to ensure that entity-fetching operations are done on the main server thread might be necessary to resolve the issue.