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

Thread Region Scheduler Thread #7 failed main thread check: Accessing entity state off owning region's thread #511

Open
RitaSister opened this issue Dec 24, 2024 · 8 comments
Labels
folia Applies to Folia server priority: normal Normal priority status: unconfirmed Needs confirmation type: bug Something isn't working properly

Comments

@RitaSister
Copy link

Describe the bug
Thread Region Scheduler Thread #7 failed main thread check: Accessing entity state off owning region's thread

Steps to Reproduce
just running on Folia with mojmapping

Expected behavior
Logs

Screenshots
nothing

Server software
Folia

Server version
[12:10:11 INFO]: This server is running Folia version 1.21.1-DEV-dev/1.21.1@2e7bc07 (2024-11-15T11:11:30Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-DEV-d4bc338 (MC: 1.21.4)

LevelledMobs version

version LevelledMobs
[12:10:23 INFO]: LevelledMobs version 4.2.0.1 b93
[12:10:23 INFO]: The Ultimate RPG Mob Levelling Solution
[12:10:23 INFO]: Website: https://github.com/ArcanePlugins/LevelledMobs/
[12:10:23 INFO]: Authors: PenalBuffalo, lokka30 and UltimaOath

@RitaSister
Copy link
Author

I know this bug, because if plugin try get access from first thread to another thread without access and needed schedulers for this fix this problem

@RitaSister
Copy link
Author

need using entity scheduler for checking entity's

@RitaSister
Copy link
Author

https://mclo.gs/dcu1eM0

@lokka30 lokka30 added type: bug Something isn't working properly status: unconfirmed Needs confirmation priority: normal Normal priority folia Applies to Folia server labels Jan 7, 2025
@RitaSister
Copy link
Author

https://mclo.gs/2IUq0n6

@RitaSister
Copy link
Author

RitaSister commented Jan 21, 2025

[15:02:32 WARN]: [LevelledMobs] Entity task for LevelledMobs v4.2.0.2 b98 generated an exception
java.lang.NullPointerException: null at LevelledMobs-4.2.0.2.b98.jar/io.github.arcaneplugins.levelledmobs.wrappers.LivingEntityWrapper.getLivingEntity(LivingEntityWrapper.kt:434) ~[LevelledMobs-4.2.0.2.b98.jar:?] at LevelledMobs-4.2.0.2.b98.jar/io.github.arcaneplugins.levelledmobs.managers.MobDataManager$Companion.populateAttributeCache(MobDataManager.kt:85) ~[LevelledMobs-4.2.0.2.b98.jar:?]
at LevelledMobs-4.2.0.2.b98.jar/io.github.arcaneplugins.levelledmobs.managers.MobDataManager$Companion.populateAttributeCache$default(MobDataManager.kt:77) ~[LevelledMobs-4.2.0.2.b98.jar:?]
at LevelledMobs-4.2.0.2.b98.jar/io.github.arcaneplugins.levelledmobs.listeners.EntityDamageListener.processRangedDamage$lambda$2(EntityDamageListener.kt:240) ~[LevelledMobs-4.2.0.2.b98.jar:?]
at LevelledMobs-4.2.0.2.b98.jar/io.github.arcaneplugins.levelledmobs.wrappers.SchedulerWrapper.run$lambda$0(SchedulerWrapper.kt:52) ~[LevelledMobs-4.2.0.2.b98.jar:?] at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:168) ~[folia-1.21.4.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:115) ~[folia-1.21.4.jar:?] at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:181) ~[folia-1.21.4.jar:1.21.4-DEV-290f789]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1658) ~[folia-1.21.4.jar:1.21.4-DEV-290f789] at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.21.4.jar:1.21.4-DEV-290f789]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.4.jar:1.21.4-DEV-290f789]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[concurrentutil-0.0.3.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

This server is running Folia version 1.21.4-DEV-dev/hard-fork@290f789 (1970-01-01T00:00:00Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-DEV-2e7bc07 (MC: 1.21.1)

Image

@stumper66
Copy link
Collaborator

@RitaSister fixed with LevelledMobs v4.3.0 b99

@RitaSister
Copy link
Author

@RitaSister fixed with LevelledMobs v4.3.0 b99

where can download?

@stumper66
Copy link
Collaborator

In the discord under #dev-builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
folia Applies to Folia server priority: normal Normal priority status: unconfirmed Needs confirmation type: bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

3 participants