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

Towny error #7253

Closed
ddsb520 opened this issue Feb 14, 2024 · 2 comments
Closed

Towny error #7253

ddsb520 opened this issue Feb 14, 2024 · 2 comments
Assignees
Milestone

Comments

@ddsb520
Copy link

ddsb520 commented Feb 14, 2024

What steps will reproduce the problem?

1.I replaced the original Leaves with Folia
2.I start server
3.I see this error

What is the expected output?

Don't send me errors
better is to help me with this

Towny version

0.100.1.13

Server version

Folia 1.20.4

Please use Pastebin.com to link the following files

My error log:
[18:43:29 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Accessing entity state off owning region's thread
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftChicken.getHandle(CraftChicken.java:21) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftChicken.getHandle(CraftChicken.java:6) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:939) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:393) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.lambda$getLivingEntities$2(CraftRegionAccessor.java:321) ~[folia-1.20.4.jar:g
it-Folia-"5c17284"]
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.getLivingEntities(CraftRegionAccessor.java:317) ~[folia-1.20.4.jar:git-Folia-
"5c17284"]
at com.palmergames.bukkit.towny.tasks.MobRemovalTimerTask.run(MobRemovalTimerTask.java:96) ~[towny-0.100.1.13.jar:?]
at com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler.lambda$runRepeating$6(FoliaTaskScheduler.java:87) ~[towny-0.100.1
.13.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179
) ~[folia-1.20.4.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar
:?]
at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:g
it-Folia-"5c17284"]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.ja
r:git-Folia-"5c17284"]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar
:git-Folia-"5c17284"]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[18:43:29 WARN]: [Towny] Global task for Towny v0.100.1.13 generated an exception
java.lang.IllegalStateException: Accessing entity state off owning region's thread
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftChicken.getHandle(CraftChicken.java:21) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftChicken.getHandle(CraftChicken.java:6) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:939) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:393) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.lambda$getLivingEntities$2(CraftRegionAccessor.java:321) ~[folia-1.20.4.jar:g
it-Folia-"5c17284"]
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.getLivingEntities(CraftRegionAccessor.java:317) ~[folia-1.20.4.jar:git-Folia-
"5c17284"]
at com.palmergames.bukkit.towny.tasks.MobRemovalTimerTask.run(MobRemovalTimerTask.java:96) ~[towny-0.100.1.13.jar:?]
at com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler.lambda$runRepeating$6(FoliaTaskScheduler.java:87) ~[towny-0.100.1
.13.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179
) ~[folia-1.20.4.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.4.jar
:?]
at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.4.jar:git-Folia-"5c17284"]
at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.4.jar:g
it-Folia-"5c17284"]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.ja
r:git-Folia-"5c17284"]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar
:git-Folia-"5c17284"]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
My Latest Log
latest.log.txt

I can't use Pastebin for some reasons
Please forgive me

@ddsb520 ddsb520 added the bug label Feb 14, 2024
@ddsb520
Copy link
Author

ddsb520 commented Feb 14, 2024

i delete world and towny data , I also see this error
image

@Warriorrrr
Copy link
Member

Duplicate of #7202

@Warriorrrr Warriorrrr marked this as a duplicate of #7202 Feb 14, 2024
@Warriorrrr Warriorrrr closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2024
@LlmDl LlmDl added this to the 0.100.2.0 milestone Feb 18, 2024
LlmDl added a commit that referenced this issue Feb 19, 2024
Warrior with PR #7267.
  - Fix mob removal on folia, courtesy of Warrior with PR #7262.
    - Closes #7261, #7221, #7202, #7253.
  - Make our custom registered commands identifiable, courtesy of
Warrior with PR #7263.
  - Move using_economy to the eco section of the config, courtesy of
Warrior with PR #7265.
  - Automatic config edit:
    - plugin.interfacing.using_economy moves to economy.using_economy
  - Remove uuid percentage tracking, courtesy of Warrior with PR #7266.
  - Make PlotClaim a runnable, courtesy of Warrior with PR #7268.
  - Reorganize test directory layout, courtesy of Warrior with PR #7269.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants