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

ImageFrame in Folia Swipe Error #65

Open
HYDeath opened this issue Jul 18, 2024 · 6 comments
Open

ImageFrame in Folia Swipe Error #65

HYDeath opened this issue Jul 18, 2024 · 6 comments

Comments

@HYDeath
Copy link

HYDeath commented Jul 18, 2024

ImageFrame installs into folia with an error.
log:
[10:32:18] [Folia Async Scheduler Thread #22139/ERROR]: Thread Folia Async Scheduler Thread #22139 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) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftGlowItemFrame.getHandle(CraftGlowItemFrame.java:21) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftGlowItemFrame.getHandle(CraftGlowItemFrame.java:6) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:944) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:398) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.lambda$collectItemFramesInfo$0(AnimatedFakeMapManager.java:100) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.collectItemFramesInfo(AnimatedFakeMapManager.java:121) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.run(AnimatedFakeMapManager.java:131) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at com.loohp.imageframe.objectholders.Scheduler.lambda$runTaskTimerAsynchronously$12(Scheduler.java:168) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[luminol-1.20.4.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.lang.Thread.run(Thread.java:1583) ~[?:?] [10:32:18] [Folia Async Scheduler Thread #22139/ERROR]: Thread Folia Async Scheduler Thread #22139 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) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftGlowItemFrame.getHandle(CraftGlowItemFrame.java:21) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftGlowItemFrame.getHandle(CraftGlowItemFrame.java:6) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:944) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:398) ~[luminol-1.20.4.jar:git-Luminol-"d753f16"] at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.lambda$collectItemFramesInfo$0(AnimatedFakeMapManager.java:100) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.collectItemFramesInfo(AnimatedFakeMapManager.java:121) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.run(AnimatedFakeMapManager.java:131) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at com.loohp.imageframe.objectholders.Scheduler.lambda$runTaskTimerAsynchronously$12(Scheduler.java:168) ~[[I][地图画]ImageFrame-1.7.9.0.jar:?] at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[luminol-1.20.4.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.lang.Thread.run(Thread.java:1583) ~[?:?]

@milu2048
Copy link

I had the same problem, but I didn't seem to have any bugs other than hogging logs

@LOOHP
Copy link
Owner

LOOHP commented Jul 30, 2024

Can you post the new stacktrace after updating to the latest dev build?

@milu2048
Copy link

Use: ImageFrame-1.7.9.2.jar
Log:

[17:20:01 ERROR]: Thread Folia Async 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.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftItemFrame.getHandle(CraftItemFrame.java:169) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftItemFrame.getHandle(CraftItemFrame.java:14) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftEntity.isInWorld(CraftEntity.java:940) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftEntity.isValid(CraftEntity.java:394) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.AnimatedFakeMapManager.lambda$collectItemFramesInfo$0(AnimatedFakeMapManager.java:100) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.AnimatedFakeMapManager.collectItemFramesInfo(AnimatedFakeMapManager.java:121) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.AnimatedFakeMapManager.run(AnimatedFakeMapManager.java:131) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.Scheduler.lambda$runTaskTimerAsynchronously$12(Scheduler.java:168) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[folia-1.20.6.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) ~[?:?]

@HYDeath
Copy link
Author

HYDeath commented Jul 30, 2024

Use: ImageFrame-1.7.9.2.jar Log:

[17:20:01 ERROR]: Thread Folia Async 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.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftItemFrame.getHandle(CraftItemFrame.java:169) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftItemFrame.getHandle(CraftItemFrame.java:14) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftEntity.isInWorld(CraftEntity.java:940) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at org.bukkit.craftbukkit.entity.CraftEntity.isValid(CraftEntity.java:394) ~[folia-1.20.6.jar:1.20.6-5-d797082]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.AnimatedFakeMapManager.lambda$collectItemFramesInfo$0(AnimatedFakeMapManager.java:100) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.AnimatedFakeMapManager.collectItemFramesInfo(AnimatedFakeMapManager.java:121) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.AnimatedFakeMapManager.run(AnimatedFakeMapManager.java:131) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at 【图像帧】ImageFrame-1.7.9.2.jar/com.loohp.imageframe.objectholders.Scheduler.lambda$runTaskTimerAsynchronously$12(Scheduler.java:168) ~[【图像帧】ImageFrame-1.7.9.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[folia-1.20.6.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) ~[?:?]

[01:33:45] [Folia Async Scheduler Thread #7/ERROR]: Thread Folia Async Scheduler Thread #7 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) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftItemFrame.getHandle(CraftItemFrame.java:169) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftItemFrame.getHandle(CraftItemFrame.java:14) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:944) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:398) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.lambda$collectItemFramesInfo$0(AnimatedFakeMapManager.java:100) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.collectItemFramesInfo(AnimatedFakeMapManager.java:121) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.run(AnimatedFakeMapManager.java:131) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at com.loohp.imageframe.objectholders.Scheduler.lambda$runTaskTimerAsynchronously$12(Scheduler.java:168) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[luminol-1.20.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[01:33:45] [Folia Async Scheduler Thread #7/ERROR]: Thread Folia Async Scheduler Thread #7 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) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftItemFrame.getHandle(CraftItemFrame.java:169) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftItemFrame.getHandle(CraftItemFrame.java:14) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isInWorld(CraftEntity.java:944) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity.isValid(CraftEntity.java:398) ~[luminol-1.20.4.jar:git-Luminol-"9885fe4"]
at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.lambda$collectItemFramesInfo$0(AnimatedFakeMapManager.java:100) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.collectItemFramesInfo(AnimatedFakeMapManager.java:121) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at com.loohp.imageframe.objectholders.AnimatedFakeMapManager.run(AnimatedFakeMapManager.java:131) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at com.loohp.imageframe.objectholders.Scheduler.lambda$runTaskTimerAsynchronously$12(Scheduler.java:168) ~[[I][地图画]ImageFrame-1.7.9.2.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[luminol-1.20.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]

@LOOHP
Copy link
Owner

LOOHP commented Aug 9, 2024

Hi, did you set Settings.HandleAnimatedMapsOnMainThread to true in the config?

@HYDeath
Copy link
Author

HYDeath commented Aug 11, 2024

Hi, did you set Settings.HandleAnimatedMapsOnMainThread to true in the config?

NO, default configuration: false, I'll enable it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants