Cross-thread Entity State Access Error Triggered by "28w Pork Tower" Redstone Machine on Folia
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- java
- Domain
- backend, distributed-systems
Research direction
Start by reproducing the issue with the attached 28w.txt and 28wcollects.txt files, then inspect log.txt for the cross-thread entity access stack trace. Trace the reported entity-state access to its owning region thread; done means the machine no longer produces thread safety errors under the stated Folia version.
Written by the indexing model from the issue text.
Description
Expected behavior
The "28w Pork Tower" should operate without triggering any thread safety errors.
All entity state updates and accesses should occur on the correct (owning) region thread, ensuring smooth operation and adherence to Folia's threading.
Observed/Actual behavior
When the "28w Pork Tower" is activated by a player, the server logs display errors such as:
Thread failed main thread check: Accessing entity state off owning region's thread...
errorlog:
log.txt
Steps/models to reproduce
Since litematic files cannot be uploaded they are modified to have a txt file extension.
Plugin and Datapack List
[19:41:30] [Region Scheduler Thread #9/INFO]: ℹ Server Plugins (25):
[19:41:30] [Region Scheduler Thread #9/INFO]: Paper Plugins (1):
[19:41:30] [Region Scheduler Thread #9/INFO]: - HuskHomes
[19:41:30] [Region Scheduler Thread #9/INFO]: Bukkit Plugins (24):
[19:41:30] [Region Scheduler Thread #9/INFO]: - AntiPopup, AxInventoryRestore, BlockLocker, CoreProtect, floodgate, FoliaFlow, GSit, LiteBans, LPC, LuckPerms
[19:41:30] [Region Scheduler Thread #9/INFO]: MinePay, NBTAPI, *NewJoinManager, NewPixelCordPlugin, packetevents, PhantomIsolation2, PlaceholderAPI, PlayerPoints, PlugManX, ProtocolLib
[19:41:30] [Region Scheduler Thread #9/INFO]: RayTraceAntiXray, spark, TAB, Vault
Folia version
[19:30:25] [Region Scheduler Thread #5/INFO]: Checking version, please wait...
[19:30:25] [Thread-906/INFO]: This server is running Folia version 1.21.4-DEV-dev/hard-fork@d3969cd (1970-01-01T00:00:00Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-DEV-c2e3759 (MC: 1.21.4)
Other
When using the redstone contraption known as "28w Pork Tower" , the server logs show errors indicating that entity state is being accessed from the wrong thread. This appears to be due to the redstone machine triggering entity-related operations outside of the entity’s owning region thread in Folia’s multithreaded environment.
- Dominant language
- Shell
- Stars
- 4.7k
- Forks
- 651
- Avg merge
- 10d 3h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PaperMC/Folia
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
status: needs triage type: bug
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
status: needs triage type: performance
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
status: needs triage type: bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
status: needs triage type: bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
cicd
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nolte/kamerplanter-appliance#53 ·
Maintainers usually reply within 1 day
-
area:scripts priority:P2 status:backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KD5UJC-XYZ/scarab#1170 ·
Maintainers usually reply within 1 day
-
SETUP: nothing verifies the decider code was ever set, so a skipped step leaves approvals token-onlyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mattabate/life-distributable#229 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
bug fixed good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
sdetweil/MagicMirror-backup-restore#20 · 1 comment ·