#folia-github

1 messages ยท Page 2 of 1

errant lagoonBOT
errant lagoonBOT
#

provide a reason why this change is to be made? why are we avoiding retiring the scheduler of players who have been in the world but are in the change state?

It will cause a crash if the player in configuration state and doesn't reply the keepalive from the server for more than 30s.

Like this(offline mode):
C -> S handshake
C -> S loginstart
S -> C loginsuccess
C -> S login acknowledged

S -> C Keepalive
C: Do nothing and keep this state and connection active(send something e...

errant lagoonBOT
#

Reducing the required player spread is a great direction in my opinion! Previously single wandering player would connect regions and cause lag for them from time to time.
Does it have to be based on view distance though? The ticked simulation distance is set lower than view on almost all servers. If players were able to see further, they would feel less restricted and more encouraged to build. This is especially noticable on recent minecraft versions with huge mountains and valleys.
Even w...

errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

Folia seems to be very suitable for loading far lands. But I can't find a teaching mechanism to restore this on it.

Describe the solution you'd like.

I want to change some code to restore far lands, or even change the location where it appears.

Describe alternatives you've considered.

I want to use farlandsagain to restore this mechanism, but this plugin does not support folia.

Other

No response

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

when executing the command ./mcrcon tps, i expect to get CLI output of the tps report given by the ingame command or the server console command "tps"

Observed/Actual behavior

the server console/log spits out the following error.
[18:33:38] [RCON Listener #1/INFO]: Thread RCON Client /192.168.0.100 started
[18:33:38] [Region Scheduler Thread #3/WARN]: Unexpected exception while parsing console command "tps"
java.lang.UnsupportedOperationException: Dispatching c...

errant lagoonBOT
#

I think even if we had a "fire and forget" option that would be great, as already mentioned, even today with Paper you can not really rely on RCON anymore for request<>response operations, but it is useful to send commands. We usually then read the results from the DB (most plugins will write to the db, but they do not action of 3rd party writes to the db)

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

No errors :D

Observed/Actual behavior

[21:43:41 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-"4d78338"]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftBee.getHandle(CraftBee.java:25) ~[folia-1.20.4.jar:git-Folia-"4d78338"]
        at org.b...
errant lagoonBOT
#

Stack trace

https://paste.gg/p/anonymous/7eb2fec54a9442b781e1cebc262d44b3

Plugin and Datapack List

[21:02:15] [Region Scheduler Thread #2/INFO]: Server Plugins (31):
[21:02:15] [Region Scheduler Thread #2/INFO]: Bukkit Plugins:
[21:02:15] [Region Scheduler Thread #2/INFO]: - AquaLimeAdmin, ArmorStandEditor, Brewery, Chunky, CoreProtect, CoreProtectTNT, Essentials, EssentialsSpawn, GSit, HeadDatabase
[21:02:15] [Region Scheduler Thread #2/INFO]: InventoryRollbackPlus, LiteBans,...

errant lagoonBOT
#

Stack trace

https://mclo.gs/G3TgSzG

Plugin and Datapack List

[08:06:33 INFO]: Server Plugins (31):
[08:06:33 INFO]: Paper Plugins:
[08:06:33 INFO]: - CreeperRecover, HuskHomes
[08:06:33 INFO]: Bukkit Plugins:
[08:06:33 INFO]: - AntiPopup, AuthMe, BetterRTP, BlockLocker, Chunky, CMILib, CoreProtect, Essentials, EssentialsChat, EssentialsSpawn
[08:06:33 INFO]: FoliaFlow, FreedomChat, GSit, LibertyBans, LuckPerms, MiniMOTD, PlaceholderAPI, PlayerSkullDrop, Residence, SimpleWhi...

errant lagoonBOT
#

Stack trace

https://paste.gg/p/anonymous/7eb2fec54a9442b781e1cebc262d44b3

Plugin and Datapack List

[21:02:15] [Region Scheduler Thread https://github.com/PaperMC/Folia/issues/2/INFO]: Server Plugins (31):
[21:02:15] [Region Scheduler Thread https://github.com/PaperMC/Folia/issues/2/INFO]: Bukkit Plugins:
[21:02:15] [Region Scheduler Thread https://github.com/PaperMC/Folia/issues/2/INFO]: - AquaLimeAdmin, ArmorStandEditor, Brewery, Chunky, CoreProtect, CoreProtectTNT, Essentials, ...

#

Entity threw exception at world:1331.7986503388208,62.52326431274413,-1235.555351045593Entity threw exception at world:1331.7986503388208,62.52326431274413,-1235.555351045593Entity threw exception at world:1331.7986503388208,62.52326431274413,-1235.555351045593Entity threw exception at world:1331.7986503388208,62.52326431274413,-1235.555351045593Entity threw exception at world:1331.7986503388208,62.52326431274413,-1235.555351045593Entity threw exception at world:1331.7986503388208,62.52326431...

#

These are plugin issues, not a Folia bug. You're also running an offline mode server. This issue has been closed and won't be re-opened.

Where you are see plugin error? YOU check my new replaced log error?

[10:17]electroniccat[no-ping]: but, spigot (through being a fork of craftbukkit) has changes which often need to record block changes in order to play them back, which is what causes 90% of the oddities with redstone vs vanilla

#
errant lagoonBOT
#

Stack trace

https://mclo.gs/1fYkGUv

Plugin and Datapack List

[07:31:22 INFO]: Server Plugins (30):
[07:31:22 INFO]: Paper Plugins:
[07:31:22 INFO]: - CreeperRecover, HuskHomes
[07:31:22 INFO]: Bukkit Plugins:
[07:31:22 INFO]: - AntiPopup, AuthMe, BetterRTP, BlockLocker, Chunky, CMILib, CoreProtect, Essentials, EssentialsChat, EssentialsSpawn
[07:31:22 INFO]: FoliaFlow, FreedomChat, GSit, LibertyBans, LuckPerms, MiniMOTD, PlaceholderAPI, PlayerSkullDrop, Residence, SimpleWhi...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

hopper suck up item instantly when item goes through its above

Observed/Actual behavior

hopper occasionally does not suck up item

Steps/models to reproduce

(translated)
1 place flowing water above a hopper
2 place another hopper below the first hopper and use redstone signal to lock it
3 put 5 set of required item or 1 set of required item in the hopper and fill up the other slot with random full item in the hopper below to make a hopper filter
4 place 1...

errant lagoonBOT
errant lagoonBOT
#

I think this issue can be closed. send-proxy-v2 is already supported via paper (and folia) when 'proxy-protocol' is enabled. I also can confirm it via a test setup that it works.

global
    log stdout format raw local0

defaults
    log     global
    timeout connect 5000ms
    timeout client  50000ms
    timeout server  50000ms

frontend minecraft_front
    bind *:25565 transparent
    mode tcp
    default_backend minecraft_back

backend minecraft_back
    mode tcp
...
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Ignited TNT will be 100% able to be pushed by piston

Observed/Actual behavior

Some ignited TNT cannot be pushed

Steps/models to reproduce

  1. use piston to push TNT to anti explode area
  2. TNT that cannot be pushed successfully will destory the redstone contraptions
    Video
    https://youtu.be/-oU9bg7o3S8

Plugin and Datapack List

Bukkit Plugins:
AnnouncerPlus, AntiPopup, Attollo, AutoTreeChop, AxInventoryRestore, AxShulkers, BetterRTP, BlockLocker, Blue...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Expected behavior for ticking or warning as overloaded?

Observed/Actual behavior

Currently what's happening is Folia seems to be missing a few ticks ->
schedule start and schedule end are exceeding the "10ms" mark causing those regions specifically not to tick which then makes the MSPT metrics be very high with spikes

Steps/models to reproduce

no idea how

Plugin and Datapack List

none

Folia version

master

Other

Is this a configuration pro...

#

Does the region scheduling work based on the global executor and or so how is the scheduling of the regions like activity or inactivity, that might be how the task is getting scheduled, I am running a small custom version that only changes the Async event where i'm passing some data, I can implement debugs to look at the issue further just lmk if you have anything in mind.

(1.20.4 is not the master, I know i'm on 1.20.2)

errant lagoonBOT
#

here are my debugs from prod:

[13:12:15] [Region Scheduler Thread #4/INFO]: [STDOUT] [ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner] disable 3 for 26.812526 took 139.299752 1533645036816609

[13:12:15] [Region Scheduler Thread #4/INFO]: [STDOUT] [ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner] break 3 on 1533645037444055

image

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

block 1 is directly stacked on top of block 2

  1. player stands on block 1
  2. player breaks block 1 below themselves
  3. player falls to block 2
  4. player does not move/stutter from block 2

this is from the perspective of the player

Observed/Actual behavior

when a player breaks a block below themselves and falls to the next block, the player sees themselves briefly stutter back on top of the block that they already broke and back to where they fell after br...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

The expected behavior is so that when the client sends packets, they get processed "immediately", currently what Folia does for every single packet is schedule each packet as a new task, for 1L. If you notice a simple debug, (I have done this) - The time between the packets arrive and get processed should be "instantly" - this is not really a vanilla only thing, but this affects PVP overall and other actions that players would notice a 50ms latency on their action, SPEC...

errant lagoonBOT
#

For knowledge this issue turned out to be two things:

  • Overloaded system which caused the #parkNanos to wake up after the long diff, causing the tick to endup running a "long" time later and then not completing the wanted 20tps.
  • After also switching to a low latency kernel this helped a bit, as well as fixing some small thread switching overhead also helped. (This is nice and should probably be in the readme too - overallocating threads wil lcause tps issues due to overloading the JVM).
errant lagoonBOT
#

Expected behavior

Throwing pearl short distance should show and player should be teleported in the same facing direction.

Observed/Actual behavior

Short distance pearl throwing are not visible, player is teleported doing a 180 spin.

Steps/models to reproduce

  1. Throw a pearl short distance

Plugin and Datapack List

[00:21:21] [Region Scheduler Thread #2/INFO]: Paper Plugins:
[00:21:21] [Region Scheduler Thread #2/INFO]:  - MiniPlaceholders, MiniPlaceholders-Player-...
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

nether portal under normal circumstances can be loaded centered on itself 3*3 chunks

Observed/Actual behavior

nether portal chunk loading centered on itself 3*3 chunks seems to have failed

Steps/models to reproduce

Whenever an entity is teleported through a nether portal, the chunk at the linked portal gets load ticket with load level of 30, meaning that it is fully loaded and can process entities. This load level also spreads to adjacent chunks but they get...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

No crash

Observed/Actual behavior

12:47:58] [Region Scheduler Thread #2/ERROR]: Thread Region Scheduler Thread #2 failed main thread check: Cannot move entity off-main
java.lang.Throwable: null
	at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.20.4.jar:git-Folia-33]
	at io.papermc.paper.chunk.system.entity.EntityLookup.moveEntity(EntityLookup.java:526) ~[folia-1.20.4.jar:git-Folia-33]
	at io.papermc.paper.chunk.system.ent...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Players are able to join

Observed/Actual behavior

After running Folia on 8939611bb53d6d1d98fd76e91c320d55a28700ad for a couple of hours (varies), players are unable to join. Either stuck in "Encrypting" or "Joining world" screen until connection times-out.

No Exceptions / No Errors. But logs are full of:

[12:38:44] [Region Scheduler Thread #4/INFO]: Foobar (/xxx:20758) lost connection: Disconnected
[12:38:51] [User Authenticator #90/INFO]: UUID of pl...
errant lagoonBOT
#

Expected behavior

A player will be able to enter after being added to the whitelist.

Observed/Actual behavior

After a player entered the server and got a kick with the reason that he is not on the whitelist. If after being added to the whitelist or re-entry, the player can no longer enter the server and is stuck at the entrance until 'Joining world...'.

Steps/models to reproduce

  1. Enable whitelisting.
  2. Try to enter the server and get kicked by the whitelist.
  3. Repeat th...
errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

Repeaters etc tend to cause a lot of mspt spikes when farms are ticking

Describe the solution you'd like.

Currently I know that the big issue is likely related to how the wire handler is done, which is always looks for states to update, and that would cause crashes.

Describe alternatives you've considered.

Limiting Redstone a lot is an option but you know.. at some point Folia would need to implement this, because it's a very go...

errant lagoonBOT
#

The server needs to be restarted in these cases.
In reality, this only happens due to the lack of a watchdog - which should automatically kill the server and warn when these events are happening.

Is there no other way but to restart?

Imagine other players playing normally, but one or two players getting stuck due to a region bug and needing to restart the entire server

Can we restart bug region only?

You should be able to modify the Folia code and implement yo...

errant lagoonBOT
#

Any mechanic that relies on precise timing of these tickets cannot work on Folia. The ticket is added before the entity is teleported, but Folia adds some number of ticks of delay before the entity arrives to the target location. This doesn't take in account the fact that regions tick in parallel and as a result there is no synchronisation in the ticks between them.
Folia additionally enforces that the chunks in the entity's bounding box is loaded, which may add yet more delay after the tick...

errant lagoonBOT
#

I actually can't see what's going on here, what should I be looking for?

yaw/pitch are ending up to be wrong values, so whenever you throw a pearl, sometimes it'll screw the head rotation and position likely too, so when you're tping even tho you're looking directly to lets say south, on the other POV it'll be NORTH or other direction (north is just example not static).

errant lagoonBOT
errant lagoonBOT
#
[PaperMC/Folia] New branch created: experiment/sectorfile
errant lagoonBOT
#

Spottedleaf Towny has adapted already to the change so it's not a pressing matter any more. I am curious as to why it was working before the 1.20.4 versions. Did your team close a loophole?

more checks are added to protect the server from entering an unknown state, for which it needs to crash to escape safely without any data corruption

The more there are such checks, the less crashes caused by random plugin actions will happen

errant lagoonBOT
#

Expected behavior

I don't know why I see this.

Observed/Actual behavior

https://mclo.gs/bBGpnF6

Steps/models to reproduce

don't know

Plugin and Datapack List

pl
[01:59:11 INFO]: Server Plugins (34):
[01:59:11 INFO]: Bukkit Plugins:
[01:59:11 INFO]: - AquaLimeAdmin, ArmorStandEditor, Brewery, Chunky, CoreProtect, CoreProtectTNT, Essentials, EssentialsSpawn, GSit, HeadDatabase
[01:59:11 INFO]: LiteBans, LuckPerms, Maintenance, Mclogs, NewbieFilter, OfflineManager,...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

When using an EntityTransformer it is expected that the entity (not spawned entity -> not existing yet) can be modified without the need to schedule a task in another thread.

Observed/Actual behavior

Server crashes because the entity access (of a not spawned entity -> not existing yet) because of "Accessing entity state off owning region's thread".

Steps/models to reproduce

  1. Listen for the AsyncStructureGenerateEvent
  2. Add EntityTransformer to it
  3. Jus...
errant lagoonBOT
#

Expected behavior

max-players=x allows x players to join the server.

Observed/Actual behavior

only x-1 can join the server.

> list
[23:17:16 INFO]: There are 0 of a max of 2 players online:
[23:17:23 INFO]: UUID of player Dynam1cNET is e85f9f08-ef80-4523-b363-cf426fbe7d31
[23:17:23 INFO]: Dynam1cNET joined the game
[23:17:23 INFO]: Dynam1cNET[/xxx.xxx.xxx.xxx:49630] logged in with entity id 100 at ([world]150.5, 67.0, -102.5)
> list
[23:17:28 INFO]: There are 1 of a ...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Collection chunks = world.getForceLoadedChunks();

It should get all force loaded chunks of this world.

Observed/Actual behavior

It seems worked on main world, but failed when it comes to world_nether, and throw null dump below.

[17:26:50 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Scheduling chunk load off-main
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[deerfol...
errant lagoonBOT
errant lagoonBOT
#

The respawn and teleport APIs are very awkward since the target region for the respawn position or teleport location are not actually owned during the event invocation, which may make modifying the event outcome or even reading from it very challenging. It requires a different event system to properly facilitate this, which is not a priority currently.

EntityPortalEvent doesn't work either

#

Expected behavior

Players keep raising animals in the world and using portal teleportation to bypass the maximum number of animals in the chunk. This allows for unlimited spawning of animals, causing server lag. I want to ban some animals from teleporting through portal, but in reality,EntityPortalEvent does not work!!!
I want to prevent some entities from entering the portal

Observed/Actual behavior

EntityPortalEvent does not work in Folia
I want an alternative solution

S...

errant lagoonBOT
#

Expected behavior

entity spawns normally.

Observed/Actual behavior

[15:46:08 WARN]: [MCCcore] Global task for MCCcore v1.0-SNAPSHOT generated an exception
java.lang.NullPointerException: Cannot read field "captureDrops" because the return value of "net.minecraft.server.level.WorldServer.getCurrentWorldData()" is null
at net.minecraft.server.level.ServerLevel.addEntity(ServerLevel.java:1879) ~[?:?]
at net.minecraft.server.level.ServerLevel.addFreshEntity(ServerLev...

errant lagoonBOT
#

Expected behavior

A hopper item filter collecting an item in a waterstream while moving at the appropriate speed, with the 8gt hopper cooldown considered.

Observed/Actual behavior

Items passing hoppers and occasionally failing to pick them up

Steps/models to reproduce

Construct or use a schematic with a waterstream that has hoppers being able to pick up items every game tick. Attached is a farm that uses hoppers to filter out non-compostable items, yet they fail to do so rel...

errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

--forceupdate doesn't work multithreaded and it's too slow for updating big worlds. updateing 15k*15k world took 30 minutes.

Describe the solution you'd like.

make the world updater update chunks parallel not sequentially.

Describe alternatives you've considered.

there is no alternatives.

Other

have a good day.

errant lagoonBOT
#

Stack trace

[19:20:52] [Region Scheduler Thread #21/ERROR]: Entity threw exception at oneblock:53585.58354723191,203.0,24006.97783524526
java.lang.ArrayIndexOutOfBoundsException: null

[19:20:52] [Region Scheduler Thread #21/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #2052 centered at chunk [3361, 1506] in world 'oneblock' failed to tick:
net.minecraft.ReportedException: Exception ticking world
    at net.minecraft.server.MinecraftServer.tickChildren(...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

[03:24:43] [Region Scheduler Thread #18/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #71730 centered at chunk [-1799, -250] in world 'oneblock' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1830) ~[folia-1.20.4.jar:git-Folia-"ef2c697"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.20.4.jar:git-Folia-"ef2c6...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

I am sending a message to a player with player.sendMessage(Component) and sometimes (not always) the player is kicked because it can't sign the message.
For instance the message sended contains clickable command text. It only occus when the component built contains click events or hover events

Observed/Actual behavior

The player is kicked on the message reception and the console shows that :

[11:13:47 WARN]: Failed to validate message acknowledgements from S...

errant lagoonBOT
errant lagoonBOT
#

Yes ! Velocity with geyser and floodgate, here is the start logs

[09:35:28 INFO]: Booting up Velocity 3.3.0-SNAPSHOT (git-3bce4d85-b374)...
[09:35:28 INFO]: Loading localizations...
[09:35:28 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 1.1.x (Linux x86_64) ciphers
[09:35:28 INFO]: Loading plugins...
[09:35:31 WARN] [floodgate]: en_ is not a supported Floodgate language.
[09:35:31 INFO] [floodgate]: Took 130ms to boot Floodgate
[09:3...
errant lagoonBOT
#

Expected behavior

Running server

Observed/Actual behavior

Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException

Steps/models to reproduce

git init
git pull https://github.com/PaperMC/Folia
bash gradlew publishToMavenLocal

Plugin and Datapack List

Could not be compiled

Folia version

SNAPSHOT

Other

No response

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

string dupe machine uses Vanilla Minecraft mechanic. By using Tripwire Hook, String, Flowing Water, Lever with appropriate setup in Vanilla Single player world (or servers), Strings can be duplicate to unlimited numbers.

Observed/Actual behavior

Folia unable to do the same thing in version ef2c6971891b7571261591cd22d27ff555c5d3f2 .

I upgraded from e97b1eee63b802568447d344bac5a66bf90c6c71 to ef2c6971891b7571261591cd22d27ff555c5d3f2 10 days ago, I don't receive a...

errant lagoonBOT
errant lagoonBOT
#

Bug not working is a bug, huh? "vanilla mechanic" lmao

It depends on how you view a thing, it can be a feature or a bug.

We all know that beds will explode in the nether and the end since the nether and the end dimension was implemented. Base on your logic it should be a bug, but Mojang decided to added the "Intentional Game Design" message during 1.13 in case someone don't know it is not a bug, it is a intended behavior.

Folia do allow duplication as a feature in case you don't k...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

My server is bungeecord, the core used by server 1 is purpur, server 2 is folia, I have enabled the big ender_chest feature in purpur, but my sync plugin gets an error message ender_chest the size should be 27, but the incoming data is 54

Describe the solution you'd like.

If you can, I'd like to add settings to enable the big ender_chest

Describe alternatives you've considered.

I thought about adding an extra ender chest plugin, b...

errant lagoonBOT
#

Expected behavior

The Conversation API working correctly.

Observed/Actual behavior

This bug already has been reported under:
https://github.com/PaperMC/Folia/issues/24

After nearly a year I'd like to ask if there are any news regarding the broken Conversation API of Folia. Beginning a new conversation with a player results in the chat being broken. No message can be send anymore upon restarting the server.

`
[17:40:57 ERROR]: Chain link failed, continuing to next one
java....

errant lagoonBOT
#

Expected behavior

In vanilla Minecraft, a placed anvil block will fall down if there is no blocks below itself, it will then stopped on a solid block, or it will turn into an item if the block below is not a solid block such as slabs.

Observed/Actual behavior

In folia, when anvil is placed at Y=0 and it fall down, the anvil will turn into item.

Steps/models to reproduce

Place anvil like this, left side works normal, right side have problem.

![image](https://github.com/Pap...

errant lagoonBOT
#

Expected behavior

No exceptions and everything works fine.

Observed/Actual behavior

Exception threw and then client crashed.

Steps/models to reproduce

  1. playing normally
  2. crash

Plugin and Datapack List

BlueMap, BlueMap-Towny, Brewery, Chunky, CMI, CMILib, CoreProtect, FlagWar, floodgate
InventoryRollbackPlus, LaggRemover, LuckPerms, NBTAPI, PlaceholderAPI, PlugManX, Scoreboard, SkinsRestorer, TheNewEconomy, Towny, TownyChat, Vault, ViaBackwards, ViaVersion, WorldEd...

errant lagoonBOT
#

Stack trace

[10:30:13 INFO]: gummi_anka lost connection: Disconnected
[10:30:13 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Cannot remove entity off-main
java.lang.Throwable: null
  at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.4.jar:git-Folia-"2986554"]
  at net.minecraft.world.entity.Entity.setRemoved(Entity.java:5602) ~[folia-1.20.4.jar:git-Folia-"2986554"]
  at net.minecraft.world.entity.Entity.remove(Entity.ja...
errant lagoonBOT
#

I tried to reproduce this issue on full empty server, only with plugin with PlayerQuitEvent, tried to teleport player to different worlds, but there is no crash.

But I can still reproduce this crash with my plugins on clear folia. This stack traces doesnt contains my methods, that is why I created this issue

This server is running Folia version git-Folia-"25ee657" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 25ee657)\nYou are running the latest version

[14:...
errant lagoonBOT
#

player.teleportAsync(loc)
player.getInventory().clear();
player.getAttribute(Attribute.GENERIC_MAX_HEALTH).setBaseValue(20);
player.setHealth(20);
player.setFoodLevel(20);
player.setSaturation(0);
player.setExhaustion(0);
player.setFireTicks(0);

for (PotionEffect effect : player.getActivePotionEffects()) {
player.removePotionEffect(effect.getType());
}

these actions on a player quit are kind of "dumb", you should schedule those actions for the new player join event instead

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

https://github.com/KyoriPowered/adventure/releases/tag/v4.17.0 was just released

I found it. But upstream paper using 4.17.0-snapshot in api, and 4.16.0 in server. I noticed in server build script have a commnet saying "Keep in sync with adventureVersion from Paper-API build file".

So I'm not sure if it should be modified in folia patch, I think maybe its belonging to paper's patch?

This has been fixed by [Paper](https://github.com/PaperMC/Paper/commit/5729b294eef2ffd...

errant lagoonBOT
#

Migrations from folia's patch are done, there still a syntax err in net/minecraft/core/dispenser/ProjectileDispenseBehavior.java line 48 DispenserBlock.eventFired should use get() to fetch bollen type. I leave it alone, because it doesnt changed in folias patch, I think it's upstream's work.

Anyway, patches can be compiled allreday, but I found server stucked when preparing level (I think I may need some help).

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

enable debug in server.properties or attach a profiler which can do exception recording

but, large PRs should generally be cleared by leaf first, not sure how much acceptance there is towards pulling in an update from somebody else

Is he on vacation now? There is no information when we will be able to get a review of this PR or update to 1.20.6?

errant lagoonBOT
#

Fine, I got new problem.

Any commands send by client will cause "Internal Exception: java.lang.UnsupportedOperationException", and then kicked. Commands send my console is ok.

This fault has no stacktrace, just "Internal Exception", I dont know how to debug it.
You can attach exception catchers on the netty threads, that'll be usually it unless you're testing with plugins iirc you're not it seems, I'll get on development in your branch too, to help test out and get it ready.

#

Fine, I got new problem.
Any commands send by client will cause "Internal Exception: java.lang.UnsupportedOperationException", and then kicked. Commands send my console is ok.
This fault has no stacktrace, just "Internal Exception", I dont know how to debug it.

You can attach exception catchers on the netty threads, that'll be usually it unless you're testing with plugins iirc you're not it seems, I'll get on development in your branch too, to help test out and get it rea...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#
[PaperMC/Folia] New branch created: dev/1.20.6
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

regenerate chunk file on 1.20.6 version, but maybe structure can't generate or what

Observed/Actual behavior

stopping is server by UnsupportedOperationException

Steps/models to reproduce

I removed the r.4.4.mca fully for fully regenerating on 1.20.6 on folia

Plugin and Datapack List

pl
[12:37:24 INFO]: Server Plugins (41):
[12:37:24 INFO]: Paper Plugins:
[12:37:24 INFO]: - CarbonChat, FoliaWorldLoader
[12:37:24 INFO]: Bukkit Plugins:
[12:37:24 ...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

When spawnRadius is set to 0, players on the server will spawn at [0,0] on their first join or respawn if they don't have a spawnpoint set.

Observed/Actual behavior

Players always spawn at [0,0] no matter what the world spawn is.

Steps/models to reproduce

  1. Set spawnRadius by /gamerule spawnRadius 0
  2. Set a custom world spawn by /setworldspawn
  3. Get killed or join with a new account
  4. You still standing at [0,0] instead of the custom world spawn

...

errant lagoonBOT
#

Is your feature request related to a problem?

Release 1.21 coming soon

Describe the solution you'd like.

Version 1.20.6

Describe alternatives you've considered.

No

Other

Hello, could you please update Folia to version 1.20.6? There is a little less than a month left until update 1.21 and I would like to get the latest version 1.20. I saw that it is already in the dev branch, but not sure if I can use this version. Do you have any TODO, what is ready in the dev branch an...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

normally use plugin like HeadDataBase for custom Heads, I think plugin compitable with paper, but what with Folia idk

Observed/Actual behavior

while player try use HeadDataBase, catch warn:
net.minecraft.ReportedException: Saving entity NBT
and after a time server stopped while 'WorldEdit' try use HeadDataBase, this plugin will crash server with this reason:
Caused by: java.lang.IllegalStateException: Player name contained disallowed characters: 'Head Datab...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Stack trace

[21:32:28 ERROR]: Error sending packet clientbound/minecraft:set_entity_data (skippable? false)
io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:set_entity_data'
at net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:53) ~[folia-1.20.6.jar:1.20.6-DEV-78f49e0]
at net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:20) ~[folia-1.20.6.jar:1.20.6-DEV-78f49e0]
at net.minecraf...

errant lagoonBOT
#

Stack trace

[12:16:30 INFO]: Preparing start region for dimension minecraft:overworld
[12:16:30 ERROR]: Encountered an unexpected exception
java.lang.IllegalArgumentException: Source: 78
at io.papermc.paper.chunk.system.scheduling.ThreadedTicketLevelPropagator.setSource(ThreadedTicketLevelPropagator.java:42) ~[folia-1.20.6.jar:1.20.6-DEV-78f49e0]
at io.papermc.paper.chunk.system.scheduling.ChunkHolderManager.updateTicketLevel(ChunkHolderManager.java:568) ~[folia-1.20....

errant lagoonBOT
errant lagoonBOT
#

Stack trace

[21:04:13] [Region Scheduler Thread #3/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #2528 centered at chunk [8434, -2210] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1830) ~[folia-1.20.4.jar:git-Folia-"25ee657"]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.20.4.jar:git-F...
errant lagoonBOT
errant lagoonBOT
#
[PaperMC/Folia] New branch created: ver/1.20.4
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

patch.bat working as expected

Observed/Actual behavior

+ bash patch.bat

> Configure project :
paperweight-patcher v1.7.1 (running on 'Linux')

FAILURE: Build failed with an exception.

* Where:
Build file '/root/Folia/Folia-Server/build.gradle.kts' line: 3

* What went wrong:
Plugin [id: 'com.github.johnrengelman.shadow'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included B...
#

Delete the -Server folder

On Fri, 31 May 2024 at 15:36, Andrea Cavalli @.***>
wrote:

Expected behavior

patch.bat working as expected
Observed/Actual behavior

  • bash patch.bat

Configure project :
paperweight-patcher v1.7.1 (running on 'Linux')

FAILURE: Build failed with an exception.

  • Where:
    Build file '/root/Folia/Folia-Server/build.gradle.kts' line: 3

  • What went wrong:
    Plugin [id: 'com.github.johnrengelman.shadow'] was not fo...

#

Still failing:

> Configure project :
paperweight-patcher v1.7.1 (running on 'Linux')

> Configure project :paper
paperweight-core v1.7.1 (running on 'Linux')

> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/root/Folia/.gradle/caches/paperweight/upstreams/paper/Paper-Server/build.gradle.kts' line: 3

* What went wrong:
Plugin [id: 'com.github.johnrengelman.shadow'] was not found in any of the following sources:

- Gr...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

When I try to log in my Minecraft folia server, I have an exception thrown about some crafts I think. I am not using NMS, only using folia-api

Observed/Actual behavior

The exception from the console

pacifista-survie            | io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:update_recipes'
pacifista-survie            | 	at net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:53) ~[folia-1.2...
errant lagoonBOT
#

Expected behavior

image

Observed/Actual behavior

image

Steps/models to reproduce

I took a map from a ship underwater (treasure)

Plugin and Datapack List

[19:40:19 INFO]: Server Plugins (19):
[19:40:19 INFO]: Paper Plugins:
[19:40:19 INFO]: - AdvancedServerList, EpicGuard, FairyChat, H...

errant lagoonBOT
#

Expected behavior

see log

Observed/Actual behavior

2024-06-09-3.log

Steps/models to reproduce

Protocolibplugin

Plugin and Datapack List

[19:40:19 INFO]: Server Plugins (19):
[19:40:19 INFO]: Paper Plugins:
[19:40:19 INFO]: - AdvancedServerList, EpicGuard, FairyChat, HuskHomes
[19:40:19 INFO]: Bukkit Plugins:
[19:40:19 INFO]: - CommandWhitelist, FancyHolograms, FarmControl, IllegalStack, Liberty...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Tamed mobs such as wolves should teleport to their owner when their owner teleports or flies away and lands

Observed/Actual behavior

Tamed mobs do not teleport long distances (presumably across region)

Steps/models to reproduce

Steps with random example coordinates:

  • /tppos 17000 100 -2000
  • spawn wolf
  • tame with bone
  • fly like 1000 blocks away or /tppos 18000 100 -2000, touch the ground, walk around etc.
  • wolf doesnt teleport.
  • go back to `/t...
errant lagoonBOT
errant lagoonBOT
#

Stack trace

paste your stack trace or a paste.gg link here!

Internal Exception: io.netty.handler.codec.EncoderException: Failed to encode packet

Plugin and Datapack List

antiRedstoneClock, BetterRTP, BetterTeams, Chunky, ClearLag, DiscordSRV, Essentials, EssentialsSpawn, Geyser-Spigot, Graves

[21:38:31 INFO]: GriefPrevention, GrimAC, Hibernate, HibernateX, LoginSecurity, LPC, LuckPerms, *OnePlayerSleep, Orebfuscator, PL-Hide

[21:38:31 INFO]: PlaceholderAPI, Protoco...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

The earliest you can schedule a task on an entity is for the task to run the next time the entity ticks. You can't perform the operation immediately because you need to run the packet logic within the entities context.

The behavior here is going to be different because on a vanilla server where there is only 1 thread, you don't need to worry about dispatching packet handles into the correct thread context, there only is 1, and so you can just use the shared task queue which allows pa...

#

The only current mechanism for ensuring that you get into that context is the entity scheduler, the thing is that the scheduler can only promise to run a task on the next tick. as regions do not spin wait between ticks, there is no mechanism to "immediately" post a task to run against an entity in a fast manner, and you have to remember that entities are not strictly held to a region, and so anything region based is also going to be precarious

errant lagoonBOT
errant lagoonBOT
#

The only current mechanism for ensuring that you get into that context is the entity scheduler, the thing is that the scheduler can only promise to run a task on the next tick. as regions do not spin wait between ticks, there is no mechanism to "immediately" post a task to run against an entity in a fast manner, and you have to remember that entities are not strictly held to a region, and so anything region based is also going to be precarious

Thank you for the clear response. Purely h...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Log sample:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            (index)             โ”‚                                               Values                                               โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ----------| 1.20.1 |---------- โ”‚  '----------------------------...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

have 1.21 updated?

Describe the solution you'd like.

update 1.21

Describe alternatives you've considered.

i dont know sorry.
and i dont speak english so if you dont mean my idea,i'm sorry.
thanks and please :)
(@_@๏ผ‰

Other

No response

errant lagoonBOT
#

Stack trace

pacifista-hub               | [18:11:41 INFO]: [PermissionHandler] Le joueur FunixGaming a รฉtรฉ configurรฉ avec les roles : Admin, Lรฉgendaire, Joueur
pacifista-hub               | [18:11:41 ERROR]: Could not pass event PlayerJoinEvent to PacifistaMain v1.0.0
pacifista-hub               | java.lang.IllegalStateException: Player is already removed from player chunk loader
pacifista-hub               |   at io.papermc.paper.chunk.system.RegionizedPlayerChunkLoader.removePl...
errant lagoonBOT
#

Expected behavior

[16:51:02 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Scheduling chunk load off-main
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.20.4.jar:git-Folia-"e97b1ee"]
at net.minecraft.server.level.ServerChunkCache.getChunkFutureMainThread(ServerChunkCache.java:293) ~[?:?]
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:223) ~[?:?]
...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Stack trace

[23:56:58 ERROR]: Entity threw exception at world:-5676.567540324623,-27.78994546376124,-574.1961417528591
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-"ec6b172"]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftAxolotl.getHandle(CraftAxolotl.java:22) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
        at org.bukkit.cra...
errant lagoonBOT
errant lagoonBOT
#

Profile link

https://spark.lucko.me/iSSY6h69pZ

Description of issue

Folia 1.21 missing ๐Ÿ˜ 
Paper 1.21 works ๐Ÿ‘

Folia 1.21 is urgently needed, Paper has been updated months ago, why does it take so long to update? ๐Ÿ™…โ€โ™€๏ธ
Please respect minecraft community and do your job, provide 1.21 Folia fast so all servers such as DonutSMP can update. Currently we lack new features, this is unacceptable.

UPDATE NEEDED ASAP! โŒ
Also why does it take so long at all? Possible reason is that you...

errant lagoonBOT
#

Expected behavior

Possible reason is that you rewrite big portions of the game such as chunk system every time! Even worse, only one person works on all of this... this is BAD, such software can not rely only on one person, other maintainers don't even have a clue about changes.. Stop rewriting everything! Give us normal update!

Observed/Actual behavior

Folia 1.21 is urgently needed, Paper has been updated months ago, why does it take so long to update? ๐Ÿ™…โ€โ™€๏ธ
Please respect minecra...

#

Is your feature request related to a problem?

1.21 ASAP needed. Do not rewrite the whole game everytime just because you want to... it takes too much time to update because you spend time rewriting and rewriting for nothing! Nobody can help with update because nobody understands what that one person decided to rewrite AGAIN this time!

Describe the solution you'd like.

Abandon chunk rewrite and integrate multithreading better way to make DonutSMP run on 1.21

Describe alternativ...

errant lagoonBOT
#

Is your feature request related to a problem?

When is Folia 1.21 estimated to release??! Seems like it's a DEAD project. Paper was updated months ago but Folia is unable to catch up! Maybe Folia 1.21 will come after 1.22?
Also, new implementation, ShreddedPaper already works better!!! How come??? Better multithreading, huge performance boost even for small worlds without "YoU nEED 128 CORES TO RUN IT" crap!
Sadly, Paper rewrote 50% of the server again just for the sake of it so Shred...

errant lagoonBOT
errant lagoonBOT
#

Folia is not production software, it's basically a single person personal project, there's no guaranteed updates, no support, and no official builds. If you want it updated, update it yourself, or wait.

If a server uses Folia such as 2B2T or DonutSMP it's their choice to use software which may never get updated again, they are able to update and build it themselves.

errant lagoonBOT
#
[PaperMC/Folia] New branch created: dev/1.21
errant lagoonBOT
#

Stack trace

[11:43:43] [Region Scheduler Thread #2/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #2 centered at chunk [5, -2] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1901) ~[folia-1.21.jar:1.21-DEV-388cdac]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:473) ~[folia-1.21.jar:1.21-DEV-388cdac]
at net...

errant lagoonBOT
#

Stack trace

[19:11:47] [Region Scheduler Thread #7/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #1410 centered at chunk [-167, -34] in world 'world' failed to tick:
java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 5
	at me.lucko.spark.paper.common.monitor.tick.SparkTickStatistics$TpsRollingAverage.add(SparkTickStatistics.java:181) ~[spark-paper-1.10.84-20240720.204128-1.jar:?]
	at me.lucko.spark.paper.common.monitor.tick.SparkTic...
errant lagoonBOT
#

Expected behavior

Need normal seen all near entity(mob, player and etc) and default flying on elytra.

Observed/Actual behavior

https://youtu.be/U6ELRImRkXE - bugs elytra. For fix elytra - needed rejoin.
https://youtu.be/M54H7hwU6rY - bugs with entity.
https://www.youtube.com/watch?v=7ee1KrqaIM4 - secondary case bug with entity.
https://youtu.be/cgHILv6xtMQ - third case bug with entity.

Steps/models to reproduce

This faults work with and without plugins only on clean Folia....

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

It may be, technically speaking, there's a small "gap" in knowledge, basically from what I see, there's two types of ticking, you have a global ticking per region, I am not sure if it's per region but from my debugs it was running a lot more than just once, I am not sure if this will be per level.

basically, on the current task grabbing, the thread basically parkNanos until the deadline, the problem is, a newer task with a lower deadline (...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Stack trace

https://mclo.gs/8jBvH6y or https://paste.gg/p/anonymous/adca91c1f59d411a95ca1b514edeea74

Plugin and Datapack List

spark-1.10.60-bukkit.jar

Actions to reproduce (if known)

When I launched about 350+ bots and suddenly closed the application with bots, they all suddenly left the server and the server turned off and crashed.

Folia version

folia-bundler-1.21-R0.1-SNAPSHOT-reobf.jar

Other

No response

errant lagoonBOT
#

Expected behavior

Players get effects from scheduled task via my custom plugin

Observed/Actual behavior

Effects did not apply and the console logged an error
`
Cannot add effects to entities asynchronously
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:59) ~[folia-1.21.jar:1.21-DEV-2b8c879]
at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:1167) ~[folia-1.21.jar:1.21-DEV-2b8c879]
at net.minecraft....

errant lagoonBOT
errant lagoonBOT
#

Stack trace

paste your stack trace or a paste.gg link here!

Another Fork https://spark.lucko.me/SnZ2v6VqBq ๏ผˆRun 13h๏ผ‰
Folia https://spark.lucko.me/0IPMgOFZdp ๏ผˆRun 10m๏ผ‰
Folia https://spark.lucko.me/tPQbINjmur ๏ผˆRun 20m)
Folia https://spark.lucko.me/v8nIIqWVGB (Run 30m)

Plugin and Datapack List

plugins
[11:42:20 INFO]: Server Plugins (36):
[11:42:20 INFO]: Paper Plugins:
[11:42:20 INFO]: - MiraiMC
[11:42:20 INFO]: Bukkit Plugins:
[11:42:20 INFO]: - ajLeaderboar...

errant lagoonBOT
#

Stack trace

[paste your stack trace or a paste.gg link here!](https://pastes.dev/P5FlpIJyMF)

Plugin and Datapack List

plugins
[14:35:20 INFO]: Server Plugins (36):
[14:35:20 INFO]: Paper Plugins:
[14:35:20 INFO]: - MiraiMC
[14:35:20 INFO]: Bukkit Plugins:
[14:35:20 INFO]: - ajLeaderboards, AntiPopup, ArmorStandEditor, AxInventoryRestore, BetterGUI, ChestProtect, Chunky, CommandWhitelist, CoreProtect, CreeperConfetti
[14:35:20 INFO]: DeathMessage, Essentials, GSit,...

errant lagoonBOT
#

Expected behavior

I hope to fix this bug as soon as possible because it is really causing my server to malfunction

Observed/Actual behavior

This is the crash log I captured, and every crash is a similar log

[20:03:16] [Region Scheduler Thread #4/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #112963 centered at chunk [3043, 13069] in world 'world' failed to tick:
java.lang.IllegalStateException: Accessing entity state off owning region's thread
at ca.sp...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

The damage should go to the dragon - that's right.

Observed/Actual behavior

Damage to dragon does not go through correctly.

Steps/models to reproduce

Steps to reproduce the bug:

  1. Create a new map and go to the world_the_end to the dragon.
  2. Restart server command /stop
  3. We launch the server and try to hit the dragon with a sword, almost no damage is done. Doesn't register hits
  4. When the dragon descends to the portal and is above it, it cannot be h...
errant lagoonBOT
errant lagoonBOT
#

I played in this server, and I would like to provide more information on the player side.

As we observed, The server will need to run for more than six(6) hours to present a sudden TPS drop (as low as <1.5). For players in the server, the TPS would drop to 1~2 for few seconds, then backs to normal(~19.5 TPS) for around 15 seconds, and repeats the malfunction. As about 15 minutes pass, the frequency of this malfunction becomes higher and the normal TPS time shortens to about 5 seconds. Duri...

errant lagoonBOT
#

Expected behavior

Fix bugs

Observed/Actual behavior

https://github.com/user-attachments/assets/ab1b876b-3926-4790-af0b-c841ad81b165

Steps/models to reproduce

This server is running Folia version 1.21-DEV-dev/1.21@61dcc07 (2024-08-01T02:15:43Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are 3 version(s) behind
Download the new version at: https://papermc.io/downloads/paper

This is the version I use

Plugin and Datapack List

![QQ_1722918312828](https://github...

errant lagoonBOT
#

For anyone who really needs PlayerRespawnEvent, here is the alternative (tested on Folia 1.21):

@EventHandler
public void onRespawn(InventoryCloseEvent event) {
    Player player = (Player) event.getPlayer();
    if (event.getInventory().getType() != InventoryType.CRAFTING || !player.isDead() || !player.isConnected() || player.getHealth() > 0)
        return;

    // do stuff
}

To listen and/or cancel entity entering a portal, looks like only [EntityPortalEnterEvent](...

errant lagoonBOT
#

Expected behavior

Applying trim to the armor

Observed/Actual behavior

The trim pattern does not apply to the armor, as a result it takes away the trim and the armor remains default

Steps/models to reproduce

A simple attempt at applying trim to the armor

Plugin and Datapack List

Server Plugins (16):
Paper Plugins:

  • FancyHolograms
    Bukkit Plugins:
  • Chunky, Essentials, JBWM-Plots, JbwmLib, JbwmShop, LuckPerms, Matrix, PlaceholderAPI, ProtocolLib, Survival
    Vau...
errant lagoonBOT
#

Stack trace

https://mclo.gs/gHcJ7Dx

Plugin and Datapack List

plugins
[14:50:19 INFO]: Server Plugins (45):
[14:50:19 INFO]: Paper Plugins:
[14:50:19 INFO]: - CarbonChat, FancyNpcs, FoliaWorldLoader
[14:50:19 INFO]: Bukkit Plugins:
[14:50:19 INFO]: - ArmorStandEditor, AutoWhitelistRemove, BreweryX, CoreProtect, CoreProtectTNT, Craftorithm, DeluxeMenus, emotecraft, Essentials, EssentialsSpawn
[14:50:19 INFO]: GSit, HeadDatabase, InventoryRollbackPlus, InvisibleFrames, InvS...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

After killing the Ender Dragon, jump into the portal, and when the End Poem is playing, press the ESC key to return to the main world.

Observed/Actual behavior

After killing the Ender Dragon for the first time, jump into the portal and use ESC to skip the End Poem, which will show that the player has been falling in the End.

Steps/models to reproduce

After starting Folia, enter the End and kill the Ender Dragon, then jump into the portal and press ESC to ski...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

1.21.1 update is needed ASAP! Hopefully it won't require another chunk rewrite 50K lines patch and 32 more cores minimal requirement.
Also open issues need a FIX, such as raid / ender dragon crash and memory leaks.
Please clarify whether we should expect 1.21.1 FOLIA at all or not.

Describe the solution you'd like.

Solution is to release working 1.21.1 Folia without bugs and memory leaks.

Describe alternatives you've considered...

errant lagoonBOT
#
[PaperMC/Folia] New branch created: dev/1.21.1
errant lagoonBOT
#

you haven't ran save-off have you? otherwise, something is keeping millions of entity instances around, would really need to see a heap dump to see where it's coming from, not that I can offer much

I think nobody run /save-off. On my server only /save-on always

Someone will always use a command if it's available. For example save-off and save-on during backups makes sure that the server does not make any changes to whats going in the backup while it is being done.

errant lagoonBOT
#

Stress tested by using https://github.com/PureGero/minecraft-stress-test/ on the latest version but cannot reproduce. Stress tester start commandline: java -Dbot.count=200 -Dbot.ip=127.0.0.1 -Dbot.port=18750 -Dbot.login.delay.ms=5000 -Dbot.radius=10000 -jar minecraft-stress-test-1.0.0-SNAPSHOT-jar-with-dependencies.jar Plugins: ![cec95e67adfd644c7da0b284f488bcf8](https://private-user-images.githubusercontent.com/79621885/356532197-1e7f5489-8f3f-4d76-a87d-e1a626500116.png?jwt=eyJhbGciOiJIUzI...

errant lagoonBOT
errant lagoonBOT
#

One instance of me.lucko.spark.common.SparkPlatform loaded by org.bukkit.plugin.java.PluginClassLoader @ 0x22b4fbfe848 occupies 23,189,898,336 (32.88%) bytes. The memory is accumulated in one instance of java.lang.Object[], loaded by <system class loader>, which occupies 23,189,861,312 (32.88%) bytes.

22GB by Spark, huh?
Go to plugins/spark/config.json and change backgroundProfiler to false.

errant lagoonBOT
#

Expected behavior

Well, everything had to be crafted

Observed/Actual behavior

nothing was crafted

Steps/models to reproduce

[06:33:33 ERROR]: Failed to handle packet net.minecraft.network.protocol.game.PacketPlayInWindowClick@69e6ff76, suppressing error
java.lang.IllegalArgumentException: Recipe cannot have an empty result
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) ~[guava-32.1.2-jre.jar:?]
at org.bukkit.inventory.Craf...

errant lagoonBOT
#

One instance of me.lucko.spark.common.SparkPlatform loaded by org.bukkit.plugin.java.PluginClassLoader @ 0x22b4fbfe848 occupies 23,189,898,336 (32.88%) bytes. The memory is accumulated in one instance of java.lang.Object[], loaded by <system class loader>, which occupies 23,189,861,312 (32.88%) bytes.

22GB by Spark, huh? Go to plugins/spark/config.json and change backgroundProfiler to false.

I tried, but seems it is still leaking

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Completing the "This boat has a legs" achievement

Observed/Actual behavior

I can do the "Feels Like Home" achievement, but the previous achievement "This boat has a legs" doesn't work.

image

Steps/models to reproduce

  1. Take "warped fungus on a stick."
  2. Put the saddle on Strider.
  3. Sit on the saddle and try to control the Strider.

Plugin and Datapack List

Test...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Next update upstream with Paper fix the problem.
https://github.com/PaperMC/Paper/blob/f97aff74b6f7fd4940c0c0b6cca3f8ac6e1afdef/patches/api/0469-Fix-issues-with-recipe-API.patch#L51C10-L51C105
This patch is not completely present on last upstream of Folia

okay, i will try to complie that branch and if that not works i will try to just only add that patch to master branch

EDIT: realized thats papermc patch, so i will try to add it to foliamc as 0006 and complie it
...

errant lagoonBOT
#

Next update upstream with Paper fix the problem.
https://github.com/PaperMC/Paper/blob/f97aff74b6f7fd4940c0c0b6cca3f8ac6e1afdef/patches/api/0469-Fix-issues-with-recipe-API.patch#L51C10-L51C105
This patch is not completely present on last upstream of Folia

okay, i will try to complie that branch and if that not works i will try to just only add that patch to master branch

EDIT: realized thats papermc patch, so i will try to add it to foliamc as 0006 and comp...

errant lagoonBOT
#

Next update upstream with Paper fix the problem.
https://github.com/PaperMC/Paper/blob/f97aff74b6f7fd4940c0c0b6cca3f8ac6e1afdef/patches/api/0469-Fix-issues-with-recipe-API.patch#L51C10-L51C105
This patch is not completely present on last upstream of Folia

okay, i will try to complie that branch and if that not works i will try to just only add that patch to master branch
EDIT: realized thats papermc patch, so i will try to add it to foli...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

This is caused by some plugin on your server.
Perhaps should add a check that the world is null and have the method behave differently.

    // Paper start - more teleport API / async chunk API
    @Override
    public java.util.concurrent.CompletableFuture<Boolean> teleportAsync(final Location location, final TeleportCause cause, final io.papermc.paper.entity.TeleportFlag... teleportFlags) {
        Preconditions.checkArgument(location != null, "location");
        location.c...
errant lagoonBOT
#

This is caused by some plugin on your server. Perhaps should add a check that the world is null and have the method behave differently.

    // Paper start - more teleport API / async chunk API
    @Override
    public java.util.concurrent.CompletableFuture<Boolean> teleportAsync(final Location location, final TeleportCause cause, final io.papermc.paper.entity.TeleportFlag... teleportFlags) {
        Preconditions.checkArgument(location != null, "location");
   ...
#

I found the problem, yes there is more than this log. It is caused by the BadOmen effect. This error and crash still continues in version 1.21.1.
#264 #268

I doubt it's because of vanilla mechanics. Specifically here the call happens on the API.

Check the logs on the number I tagged. The log here is misleading. It comes entirely from badomen.

errant lagoonBOT
errant lagoonBOT
#

i test in 9203a7a887eecdccb93a96ca460ce13364842884
The portal from the endlands into the endlands that I tested last night looked like this:
It went straight through the portal and dropped into the space below, without returning to the main world as in the single player game
TPing through the portal was instantaneous, and then the player went into a weird state:
He can't see anyone else, they can't see him, he can't TP away, he's always online, and he can't be taken offline by kicks or b...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Fine work Brewery plugin on Folia, but

Observed/Actual behavior

https://mclo.gs/9BqcEEf#L813

Steps/models to reproduce

install Brewery plugin on folia.

Plugin and Datapack List

[13:48:49 INFO]: Server Plugins (46):
[13:48:49 INFO]: Paper Plugins:
[13:48:49 INFO]: - CarbonChat, FancyNpcs, FoliaWorldLoader
[13:48:49 INFO]: Bukkit Plugins:
[13:48:49 INFO]: - ArmorStandEditor, AutoWhitelistRemove, BreweryX, CoreProtect, CoreProtectTNT, Craftorithm, ...

errant lagoonBOT
errant lagoonBOT
#

Stack trace

https://paste.gg/p/anonymous/58cceef8a2d3449381d518592ed5a308

Plugin and Datapack List

No plugins

Actions to reproduce (if known)

Unknown

Folia version

[16:45:06 INFO]: This server is running Folia version 1.21.1-DEV-dev/1.21.1@9203a7a (2024-08-19T16:38:24Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-DEV-053b04c (MC: 1.21.1)

Other

Temp fix: /gamerule disableRaids true

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

As of 1.21, ender pearls can be teleported to each other in other dimensions, such as when the player is in the Nether and the Overworld has a pearl to teleport, they can be teleported directly, and they will work in the same way in the End

Observed/Actual behavior

As of 1.21, ender pearls can be teleported to each other in other dimensions, such as when the player is in the Nether and the Overworld has a pearl to teleport, they can be teleported directly, and the...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

In Minecraft version 1.21 and later, when an entity uses an End Portal to enter the End, blocks placed on the Obsidian Platform should turn into item drops rather than disappearing. This ensures that valuable resources are not lost during the portal transition.

Observed/Actual behavior

When an entity uses the End Portal to enter the End, blocks placed on the Obsidian Platform directly disappear instead of turning into item drops.

Steps/models to reproduce

Pl...

errant lagoonBOT
#

Expected behavior

Citizens plugin's NPCs of type Player cannot be displayed

Observed/Actual behavior

Citizens plugin's NPCs of type Player cannot be displayed

Steps/models to reproduce

paper
picture: has Int2ObjectMap K
but in folia there didnt have Int2ObjectMap K
but Citizens plugin need it
how can I do to fix it
Citizens code:
@Override
public EntityPacketTracker getPacketTra...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Profile link

not necessary

Description of issue

Currently there's a method that used to be called on ticking of entities, trackUnload
This used to be the method called on 1.20.6 and below:
image

which would clear internally on the method, the ref list toPRocessTrackingUnloading.
ON 1.21 and upfront the method was completely forgotten, and you ended up using another ref list, called trackerUn...

errant lagoonBOT
#

I totally agree with you. I have this problem with 1.21.1. I never had this problem with 1.20.4. I migrated my server to 1.21.1 and my server is essentially a vanilla server that aims for high entity without compromising on the experience. I use the same plugins but with the latest version 1.21.1 I can't keep my server up for more than 7-8 hours because all my ram is empty and I have to restart the server.
![image](https://github.com/user-attachments/assets/1c4bdc7d-b784-4de1-aa63-03c639e598...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

When mining any items I do not pickup just randomly disappear resulting in wasted mining effort.

Observed/Actual behavior

I would be mining and my friend was watching and noticed that items would just disappear that where not picked up in a rather short period of time.

Steps/models to reproduce

Just start mining while a friend watches you.

Plugin and Datapack List

/plugins (0)
/datapack list unknown or incomplete command

Folia version

1.20.6-DEV...

errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

It's kinda hard as a plugin developer to tell what the do's and don'ts are of writing a folia plugin

Describe the solution you'd like.

A guide for plugin developers, also a mode with strict thread checks everywhere, ensuring we are doing things correctly to avoid race conditions. For example thread checks EVERYWHERE where cross region access occurs, maybe plugin scanning for non thread-safe collections (silly idea maybe), stuff like th...

errant lagoonBOT
#

I'm pretty sure your runOnEachRegion example would require locking the regions while it runs to prevent them from merging or splitting in the middle, all regions would have to stop ticking to process this.

Also, this is like 3-8 issues in one, you should split it up in to API requests, documentation requests, and server feature requests (the flag).

errant lagoonBOT
#

I am not sure how to describe. If for example you have a chest full of
blocks and you mine the chest you would expect all the blocks that where in
that chest to be there but that is not always the case. Same thing happens
if you are mine a lot of blocks quickly but not picking up all the blocks
while another player observes. The observing player can see some of the
blocks that where not picked up will randomly disappear in a short period
of time

On Sun, Sep 1, 2024 at 2:59โ€ฏPM xymb...

errant lagoonBOT
#

Profile link

https://github.com/PaperMC/Folia/tree/dev/1.21.1

Description of issue

Description: When exploring and loading new chunks in the minecraft:mangrove_swamp biome, noticeable lag occurs. This causes a significant delay in world generation, affecting the overall gameplay experience.

Steps to Reproduce:

Start Minecraft and generate a new world.
Locate an area with the minecraft:mangrove_swamp biome.
Load fresh chunks in this biome (e.g., by moving or teleporting to u...

errant lagoonBOT
#

I'm pretty sure your runOnEachRegion example would require locking the regions while it runs to prevent them from merging or splitting in the middle, all regions would have to stop ticking to process this.

Also, this is like 3-8 issues in one, you should split it up in to API requests, documentation requests, and server feature requests (the flag).

done

errant lagoonBOT
#

Expected behavior

Player performs the command successfully.

Observed/Actual behavior

[15:23:05 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #0 failed main thread check: Dispatching command async
java.lang.Throwable: null
	at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:58) ~[folia-1.21.1.jar:1.21.1-DEV-88e0907]
	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:1032) ~[folia-...
errant lagoonBOT
#

Can't I just call Player#chat("/" + command)?

Upon trying, looks like there is a bug in Folia:

[15:56:54 WARN]: java.lang.IllegalStateException: PlayerCommandPreprocessEvent may only be triggered synchronously.
[15:56:54 WARN]: 	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:42)
[15:56:54 WARN]: 	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
[15:56:54 WARN]: 	at org.bukkit.plugin.Simp...
errant lagoonBOT
#

Expected behavior

Have almost no lock overhead that would trigger a possible lag source due to lock await across multiple regions.

I don't know exactly how this could even sort of work, but I feel like this a very bad limitation for the design of Folia currently. if not the most limiting issue. outside just making sure that code is optimized in here, I wonder what other sort of design could be approached.

Observed/Actual behavior

Ok, to start off, the current lock is acquired wh...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Profile link

Description of issue

Ok, I am getting this weird stacktrace here
PID: 194 | Suspended: false | Native: false | State: WAITING
Stack:
java.base@21.0.3/jdk.internal.misc.Unsafe.park(Native Method)
java.base@21.0.3/java.util.concurrent.locks.LockSupport.park(LockSupport.java:371)
ca.spottedleaf.moonrise.patches.chunk_system.scheduling.ChunkHolderManager.loadPoiChunk(ChunkHolderManager.java:1170)
net.minecraft.world.entity.ai.village.poi.PoiManager.getOr...

errant lagoonBOT
#

Why would you care about random users comments? If some "maintainer" closes an issue then OK, that's their business. Otherwise I don't see why you would want to close own issues if there were valid reasons to open them at the first place.

Because that's from the Paper team.

The person who has replied to you on both Discord & previous Github issues, is in fact, not part of the Paper team.

errant lagoonBOT
#

Expected behavior

The variable DISABLE_SNAPSHOT is kept as a static boolean on paper, but since paper is ticking single threaded, it doesn't really run into issues, every Folia call however, does not take this into consideration,
I think this should be changed to
ThreadLocal, otherwise this could possibly lead into issues?


public static final ThreadLocal DISABLE_SNAPSHOT = ThreadLocal.withInitial(() -> false);

        this.snapshotDisabled = DISABLE_SNAPSHOT.get();
  ...
errant lagoonBOT
#

"dev 1.21.1" is not a valid version.

This is complete nonsense. How do you expect the dev version to reach the official version 1.21.1 without people reporting bugs and issues on dev? With magic that will find and fix bugs?

I think he mainly meant that we don't know the build of 1.21.1 used, is it on Folia or another fork?

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

The fact that the /vanish command will throw the player into invisibility

Observed/Actual behavior

an error occurs with the region flow

Steps/models to reproduce

sheduler

Plugin and Datapack List

  • CoreProtect, GSit, LuckPerms, PlasmoVoice, SuperVanish, TAB

Folia version

This server is running Folia version 1.21.1-DEV-dev/1.21.1@88e0907 (2024-09-13T01:58:52Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version

###...

#

[ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #0 failed main thread check: Accessing entity state off owning region's thread
java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:58) ~[folia-1.21.1.jar:1.21.1-DEV-88e0907]
at org.bukkit.craftbukkit.entity.CraftSkeleton.getHandle(CraftSkeleton.java:43) ~[folia-1.21.1.jar:1.21.1-DEV-88e0907]
at org.bukkit.craftbukkit.entity.Craft...

errant lagoonBOT
#

Expected behavior

When lightning strikes, it should ignite both entities and the surrounding blocks, as per vanilla Minecraft behavior.

Observed/Actual behavior

In the version of Folia from this branch, lightning successfully ignites entities on hit, but it does not set blocks or the surrounding area on fire as expected.

Steps/models to reproduce

  1. Spawn a lightning bolt either naturally or using the /summon lightning_bol...
errant lagoonBOT
#

Update Folia to last commit of Paper

Hello ! That's my first contribution for Folia. I really want to help that project, I alaways wanted to manage a Minecraft server with multi threading.

I hope that I am doing right ! I have managed the conflicts with the upstream Paper repo

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

With Paper config unsupported-settings/allow-unsafe-end-portal-teleportation set to true, the gravity blocks duplication via end portal is supposed to work.

Observed/Actual behavior

No blocks are appearing on the end side when the machine is running, the overworld behavior seems correct.

Steps/models to reproduce

Build a duper (i used a 10gt for the tests but it should be the same with all types of dupers)
Run it and put a second account on the end side

###...

errant lagoonBOT
errant lagoonBOT
#

Stack trace

Caught previously unhandled exception :
java.io.IOError: java.io.IOException: Input/output error
at org.jline.keymap.BindingReader.readCharacter(BindingReader.java:170) ~[jline-reader-3.20.0.jar:?]
at org.jline.keymap.BindingReader.readBinding(BindingReader.java:110) ~[jline-reader-3.20.0.jar:?]
at org.jline.keymap.BindingReader.readBinding(BindingReader.java:61) ~[jline-reader-3.20.0.jar:?]
at org.jline.reader.impl.LineReaderImpl.doReadBinding(LineReaderImpl....

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Is your feature request related to a problem?

I know that Spark was disabled because it wasn't compatible with Folia. Since then, lucko has created a repo here: https://github.com/lucko/spark-extra-platforms which enables support for Folia. So I was wondering if it could be re-implemented?

Describe the solution you'd like.

I think we can use this repo, but I don't get the impression that it has been published, so that might still prevent re-implementing it.

Describe alternativ...

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Hello,

I noticed that we have a problem with the commands that allow us to select the world we want. For example, let's run this command:

_Euphyllia issued server command: /execute in minecraft:the_nether run kill @e[type=!minecraft:player]

I'm supposed to kill all entities in the nether world besides the player. But it does it on all worlds.

This happens through the console as well as through the execution of the command by a player.

Observed/Actual behavi...

errant lagoonBOT
#
[PaperMC/Folia] New branch created: dev/1.21.3
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Wind Charges work as expected as per vanilla behavior

https://streamable.com/dtefua | Video of Vanilla Behavior

Observed/Actual behavior

Wind charges have inconsistent behavior, only working occassionally with seemingly no rhyme or reason.

https://streamable.com/qs3n2i | Video of Behavior

Steps/models to reproduce

  • Obtain Wind Charge Item in Game
  • Use Wind Charge

Plugin and Datapack List

![Image](https://github.com/user-attachments/assets/14099fa0-...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Stack trace

[05:57:39] [Region Scheduler Thread #8/ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #8 failed main thread check: Cannot asynchronously load chunks
java.lang.Throwable: null
	at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:51) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:100) ~[?:?]
	at net.minecraft.server.level.ServerChunk...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Any mechanic that relies on precise timing of these tickets cannot work on Folia. The ticket is added before the entity is teleported, but Folia adds some number of ticks of delay before the entity arrives to the target location. This doesn't take in account the fact that regions tick in parallel and as a result there is no synchronisation in the ticks between them. Folia additionally enforces that the chunks in the entity's bounding box is loaded, which may add yet more delay after the tic...

errant lagoonBOT
#
[PaperMC/Folia] New branch created: dev/1.21.4
errant lagoonBOT
errant lagoonBOT
#

Stack trace

[04:57:02 ERROR]: Error sending packet clientbound/minecraft:recipe_book_add (skippable? false)
io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:recipe_book_add'
        at net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:53) ~[folia-1.21.4.jar:1.21.4-DEV-d4bc338]
        at net.minecraft.network.codec.IdDispatchCodec.encode(IdDispatchCodec.java:20) ~[folia-1.21.4.jar:1.21.4-DEV-d4bc338]
        at net.minecraf...
errant lagoonBOT
errant lagoonBOT
#

Stack trace

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffd4e34e9a, pid=498576, tid=312608

JRE version: OpenJDK Runtime Environment Zulu21.32+17-CA (21.0.2+13) (build 21.0.2+13-LTS)

Java VM: OpenJDK 64-Bit Server VM Zulu21.32+17-CA (21.0.2+13-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)

Problematic frame:

V [jvm.dll+0x3e4e9a]

Core dump will...

errant lagoonBOT
errant lagoonBOT
#
  1. You seem to be running something that isn't Folia.
  2. Your Java version is outdated. Use 21.0.5.
  3. Folia doesn't have any effect on how native methods are resolved or executed.

I'm sure that I'm using Folia. It isn't relevant to what version of Java but server core, cuz I used such JNIC obfuscated plugins on Spigot/Bukkit without any errors.
Only by using Folia can I reproduce the error, one more thing, I can run the same plugin without native obfuscation on Folia correctly.

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

[14:11:12 ERROR]: Command exception: /time set 9
java.lang.IllegalStateException: World mismatch: expected world_nether but got world
        at net.minecraft.world.level.Level.getCurrentWorldData(Level.java:841) ~[folia-1.21.4.jar:1.21.4-DEV-d4bc338]
        at net.minecraft.world.level.Level.getGameTime(Level.java:1844) ~[folia-1.21.4.jar:1.21.4-DEV-d4bc338]
        at net.minecraft.server.MinecraftServer.synchronizeTime(MinecraftServer.java:2033) ~[folia-1.21.4.j...
#
  1. You seem to be running something that isn't Folia.
  2. Your Java version is outdated. Use 21.0.5.
  3. Folia doesn't have any effect on how native methods are resolved or executed.

I'm sure that I'm using Folia. It isn't relevant to what version of Java but server core, cuz I used such JNIC obfuscated plugins on Spigot/Bukkit without any errors.
Only by using Folia can I reproduce the error, one more thing, I can run the same plugin without native obfuscation on Folia corre...

#

Liminol != Folia. It's a fork, ask them for support. Who knows what changes they've made.

Windows is a pretty rare deployment OS. Use Linux if you can, it's way more popular. Popular = more chance someone had the same issue as you in the past.

If you have to stay on Windows, try different Java runtimes. Maybe Oracle Java will work? Maybe GraalVM will work?

  1. You seem to be running something that isn't Folia.
  2. Your Java version is outdated. Use 21.0.5.
  3. Foli...
#

Liminol != Folia. It's a fork, ask them for support. Who knows what changes they've made.

Windows is a pretty rare deployment OS. Use Linux if you can, it's way more popular. Popular = more chance someone had the same issue as you in the past.

If you have to stay on Windows, try different Java runtimes. Maybe Oracle Java will work? Maybe GraalVM will work?

  1. You seem to be running something that isn't Folia.
  2. Your Java version is outdated. Use 21.0....
#

Folia makes 0 changes that would break native library loading; some native library called into the JVM internals which blew up, but there is no information on what it did to trigger that, and folia doesn't make any changes relating to natives afaik, nor is that version of folia supported, so, even if there was a breakage, it would not be fixed

All right, but the problem only exisiting on Folia, no errors of native method loading were found on Spigot/Bukkit. We have to find another core ins...

#

We have tested java 17-21, which is Oracle version, and they still failed.

As I said, try Linux. Or at least WSL. There is not enough information, it can be pretty much everything. ๐Ÿคท
Hell, it could even be that RAM is damaged in one specific place that JVM likes or something. I had this happen to my own machine (system almost working, but just crashing on one specific program... just because of how the memory layout happened).

So memtest86 could also be a good idea.

#

We have tested java 17-21, which is Oracle version, and they still failed.

As I said, try Linux. Or at least WSL. There is not enough information, it can be pretty much everything. ๐Ÿคท Hell, it could even be that RAM is damaged in one specific place that JVM likes or something. I had this happen to my own machine (system almost working, but just crashing on one specific program... just because of how the memory layout happened).

So memtest86 could also be a good idea.

I made a su...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

get vanilla recipes is just a getter

    public ArrayList<NamespacedKey> getVanillaRecipes() { return this.vanilla_recipes; }

this is the only function that adds to vanilla_recipes

    private void loadVanillaRecipe(String recipe_name, ItemStack result, HashMap<Character, RecipeItem> dictionary) {
        NamespacedKey recipe_key = new NamespacedKey(plugin, recipe_name);

        // TODO really fucking sloppy, only works with one ingredient shapeless
        if (config.contai...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

I am trying to create a executable server version for folia and I have an error when I try to execute the gradle task createReobfPaperclipJar

Observed/Actual behavior

> Task :folia-server:compileLog4jPluginsJava
Note: Processing Log4j annotations
Note: Annotations processed
Note: Processing Log4j annotations
Note: No elements to process
Note: /Users/funix/Documents/tmp/minecraft/folia-git/Folia-Server/src/log4jPlugins/java/io/papermc/paper/logging/DelegateLogE...
errant lagoonBOT
errant lagoonBOT
#

When I was using getForceLoadedChunks() it throw:

[21:44:53 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #2 failed main thread check: Async chunk retrieval
java.lang.Throwable: null
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:51) ~[deerfolia-1.21.4.jar:1.21.4-DEV-2bd64a2]
        at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:373) ~[deerfolia-1.21.4.jar:1.21.4-DEV-2bd64a2]
...
#
    @Override
    public Chunk getChunkAt(int x, int z) {
        net.minecraft.world.level.chunk.LevelChunk chunk;
        try {
            Objects.requireNonNull(((ServerLevel) world).regioniser.getRegionAtUnsynchronised(x >> 4, z >> 4)).regioniser.acquireReadLock(); // Folia - region threading
            warnUnsafeChunk("getting a faraway chunk", x, z); // Paper
            chunk = (net.minecraft.world.level.chunk.LevelChunk) this.world.getChunk(x, z, ChunkStatus.FULL, true);
...
errant lagoonBOT
#

For multiple versions CraftChunk is just a wrapper around coordinates (like CraftBlock) without any real information or reference to the chunk. Just create craft chunks in getForceLoadedChunks() with the coordinates without loading them (and they're most probably already loaded anyway), there is a SeverLevel,int,int constructor that you can use instead of the one that takes LevelChunk

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

I did have this problem i tested with fresh folia server no problem even when apply my server settings to it no problem.

The cause that i have kinda found to make that happen 100% all the time is that have the
Gamerule spawnChunkRadius 0

When set it to 0 and you fly away unloading the chunk with piston it cause ghost block

When set the spawnchunk back to default 2 (i think) this problem havent happen again.

errant lagoonBOT
#

Expected behavior

TNT explosion event is the same as vanilla

Observed/Actual behavior

In the latest version 1.21.4 of folia and paper, TNT explodes earlier than in vanilla

Steps/models to reproduce

Ignite the TNT, it will be a few tenths of a second earlier than vanilla.

Plugin and Datapack List

[22:51:34 INFO]: - HuskHomes, HuskSync,
[22:51:34 INFO]: - BetterRTP Chunky, CMILib
Essentials, EssentialsSpawn, GSit, LuckPerms, PAPIProxyBridge, PlaceholderAPI
PlayerChat,...

#

I did have this problem i tested with fresh folia server no problem even when apply my server settings to it no problem.

The cause that i have kinda found to make that happen 100% all the time is that have the
Gamerule spawnChunkRadius 0

When set it to 0 and you fly away unloading the chunk with piston and the fly back to it and console spam with that error and it cause ghost block

When set the spawnchunk back to default 2 (i think) this problem havent happen again.

...

errant lagoonBOT
#
[PaperMC/Folia] New branch created: ver/1.20.6
#
[PaperMC/Folia] New branch created: master1_20_6
#
[PaperMC/Folia] branch deleted: master
#
[PaperMC/Folia] New branch created: master
#
[PaperMC/Folia] branch deleted: master1_20_6
errant lagoonBOT
#

Expected behavior

Piston normal operation

Observed/Actual behavior

The console will generate the following error:
[13:28:48 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #1 failed main thread check: Cannot asynchronously load chunks
java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:51) ~[luminol-1.21.4.jar:1.21.4-DEV-27a2e2a]
at net.minecraft.server.level.ServerChunk...

errant lagoonBOT
#

Expected behavior

no errors

Observed/Actual behavior

[13:49:51 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #1 failed main thread check: Cannot asynchronously load chunks
java.lang.Throwable: null
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:51) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:100) ~[Folia-1.21.4.ja...
errant lagoonBOT
#

After testing, it is reproduced in the latest version of folia

------------------ Original ------------------
From: Euphyllia @.>
Date: Mon,Dec 16,2024 5:05 PM
To: PaperMC/Folia @.
>
Cc: YIIYI @.>, Author @.>
Subject: Re: [PaperMC/Folia] Folia1.21.4 When the piston pushes the block infront and there is a lot of creatures in the block in front, will producemoving pistons that cannot be cleared normally (Issue #311)

You ...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

After testing, it is reproduced in the latest version of folia
โ€ฆ
------------------ Original ------------------ From: Euphyllia @.> Date: Mon,Dec 16,2024 5:05 PM To: PaperMC/Folia @.> Cc: YIIYI @.>, Author @.> Subject: Re: [PaperMC/Folia] Folia1.21.4 When the piston pushes the block infront and there is a lot of creatures in the block in front, will producemoving pistons that cannot be cleared normally (Issue [#311](https://github.com...

errant lagoonBOT
#

After testing, it is reproduced in the latest version of folia
โ€ฆ
------------------ Original ------------------ From: Euphyllia @.> Date: Mon,Dec 16,2024 5:05 PM To: PaperMC/Folia _@**._> Cc: YIIYI _@.>, Author @.**_> Subject: Re: [PaperMC/Folia] Folia1.21.4 When the piston pushes the block infront and there is a lot of creatures in the block in front, will producemoving pistons that cannot be cleared normally (Issue [#311](https://github.com/Paper...

errant lagoonBOT
#

Expected behavior

In spectator mode, the hotbar transforms to a menu, which lets you navigate between players on the server, and teleport to them.

In the tested use-case: Spectator is in Nether, Player "To Be Spectated" is in overworld.

When using this menu, you just expect to get teleported to that player, including a smooth dimension switch.

Observed/Actual behavior

When trying to use the spectator mode menu, to teleport to a player that is in another dimension, the server cras...

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

https://github.com/user-attachments/assets/80a209cf-089e-4932-b56c-b4efc09e981f Image

Might be a issue of the chunk system.The entity's chunk status turned TRACKED when the machine is out of the player's simulation distance like that video and entity won't be ticked once before the moving piston block push it and the oldposition is still 0,0,0.
![Image](https://github.com/user-attachments/assets/d871294f-50...

errant lagoonBOT
#

Maybe is because of Paper Teleport API is broken on Folia... I don't know.

I know many parts of the API are broken, but as far as I can tell its a bug and not a feature.
I see Stabrinai mentioned #173 as its the same problem or similar, I saw that is closed now so this should stay open IMO.

If I can help with further testing please feel free to reach out to me
discord: tudorhc5
or contact me at tudor@hc5.ro

errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Nothing happened

Observed/Actual behavior

[10:16:55 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #1 failed main thread check: Cannot update owner state asynchronously
java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:58) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.getOwnerRaw(Projectile.java:99) ~[foli...

errant lagoonBOT
errant lagoonBOT
#

Stack trace

[01:25:14 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #4 failed main thread check: Accessing poi chunk off-main
java.lang.Throwable: null
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:51) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
        at net.minecraft.world.entity.ai.village.poi.PoiManager.getOrLoad(PoiManager.java:89) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
        at net.minecraft.wo...
errant lagoonBOT
#
[PaperMC/Folia] New branch created: dev/hard-fork
errant lagoonBOT
#

Expected behavior

Items from broken trees, as well as mobs and other entities, should be properly tracked and send to the Player's client so they can be displayed.

Observed/Actual behavior

Occasionally, regions will stop sending these entities to players, resulting in a confusing desync where you can pick up items but never see them on the game / hear them get picked up.

Steps/models to reproduce

Unsure, though this is occurring at high player counts (we've been running at 130 - 400 players)

Plugin and Datapack List

[19:21:46 INFO]: Server Plugins (28):
[19:21:46 INFO]: Paper Plugins:
[19:21:46 INFO]:  - CarbonChat, FancyHolograms
[19:21:46 INFO]: Bukkit Plugins:
[19:21:46 INFO]:  - AxInventoryRestore, BlueSlimeCore, ChangeSlots, Chunky, ChunkyBorder, CMCLinkManager, CombatLogX, CoreProtect, DatapackLoader, Essentials
[19:21:46 INFO]:  FreedomChat, GrimAC, helper, helper-sql, LiteBans, LuckPerms, NBTAPI, packetevents, PlaceholderAPI, PlasmoVoice
[19:21:46 ...
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Just commenting here to say I've had this happen a couple times as well with player counts of ~60 up to 130 on a not too modified SMP, I've also been able to teleport into these regions and no players were visible or any entity (item frame, mobs, leads)

This server is running Folia version 1.21.4-DEV-master@8af1aef (2025-01-01T16:22:18Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-13-4803421 (MC: 1.21.4)
[03:31:54 INFO]: Server Plugins (21):
[03:31:54 INFO]: Paper Plugins:
[03:31:54 INFO]:  - FairyChat
[03:31:54 INFO]: Bukkit Plugins:
[03:31:54 INFO]:  - AntiHealthIndicator, Chunky, ChunkyBorder, CoreProtect, DiscordSRV, Essentials, FreedomChat, GSit, JustLootIt, LuckPerms
[03:31:54 INFO]:  OreAnnouncer, packetevents, spark, squaremap, Stateful, SuperHarvest, TAB, Terra, ToolStats, voicechat
errant lagoonBOT
#

I'm a bit suspicious that Chunky may be doing something strange that's upsetting Folia somehow with how it's generating/saving these chunks on occasion. @ItsSyfe Was your world pregenerated on 1.21.4?

During my testing on 1.21.3, I had not pre generated any of the land and I don't believe anyone encountered any issues similar to this. The player counts were much lower so the regioning wasn't super active, but nevertheless I don't recall the issue occurring. It's also possible this is some sort of 1.21.4 problem in particular, but I'm unsure.

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Expected behavior

Ender pearl to unload on player logout then reload on player login

Observed/Actual behavior

Ender pearl stays existent (loaded) even after the player is no longer on the server

Steps/models to reproduce

Setup a stasis chamber and then have an alt logged in to check on the pearl and simply logout on the account that threw the pearl.

Plugin and Datapack List

[00:05:10 INFO]: Server Plugins (22):
[00:05:10 INFO]: Paper Plugins:
[00:05:10 INFO]: - FairyChat
[00:05:10 INFO]: Bukkit Plugins:
[00:05:10 INFO]: - AntiHealthIndicator, ArmorPoser, BlueMap, Chunky, ChunkyBorder, CoreProtect, DiscordSRV, Essentials, FreedomChat, GSit
[00:05:10 INFO]: JustLootIt, LuckPerms, OreAnnouncer, packetevents, spark, Stateful, SuperHarvest, TAB, Terra, ToolStats
[00:05:10 INFO]: voicechat

Folia version

[00:26:50 INFO]: Checking version, please wait...
[00:26:50 INFO]: This server is running Folia version 1.21.4-DEV-dev/hard-fork@4e7607d (1970-01-01T00:00:...

errant lagoonBOT
#

Stack trace

[02:18:01 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #7 failed main thread check: Accessing poi chunk off-main, world=season4_world, chunk_pos=[12, -333]
java.lang.Throwable: null
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:66) ~[folia-1.21.4.jar:1.21.4-DEV-4e7607d]
        at net.minecraft.world.entity.ai.village.poi.PoiManager.getOrLoad(PoiManager.java:89) ~[folia-1.21.4.jar:1.21.4-DEV-4e7607d]
        at net.minecraft.world.entity.ai.village.poi.PoiManager.exists(PoiManager.java:338) ~[folia-1.21.4.jar:1.21.4-DEV-4e7607d]
        at net.minecraft.world.entity.ai.behavior.GoToPotentialJobSite.lambda$stop$2(GoToPotentialJobSite.java:50) ~[folia-1.21.4.jar:1.21.4-DEV-4e7607d]
        at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at net.minecraft.world.entity.ai.behavior.GoToPotentialJobSite.stop(GoToPotentialJobSite.java:45) ~[folia-1.21.4.ja...
errant lagoonBOT
#

Expected behavior

Zombie Piglins will only fall from the Hell Gate into the Death Passage and be killed normally, instead of some monsters jumping out of nowhere.

Observed/Actual behavior

Zombified Piglins will spawn in places around the farm, such as in water, outside the execution platform

Steps/models to reproduce

  1. Build a regular Zombie Piglin Farm and start it
  2. Wait 5-10 minutes

Plugin and Datapack List

[22:51:34 INFO]: - HuskHomes, HuskSync,
[22:51:34 INFO]: - BetterRTP Chunky, CMILib
Essentials, EssentialsSpawn, GSit, LuckPerms, PAPIProxyBridge, PlaceholderAPI
PlayerChat, PlayerTitle, ProtocolLib, QuickShop-Hikari, Residence, Vault, WorldEdit

Folia version

Luminol version 1.21.4-DEV-dev/1.21.4-hardfork@efd5589

Other

No response

errant lagoonBOT
errant lagoonBOT
#

this bug can be reproduced under the latest folia๏ผˆ4e7607d๏ผ‰

------------------ Original ------------------
From: De1fy @.>
Date: Sat,Jan 25,2025 8:03 PM
To: PaperMC/Folia @.
>
Cc: YIIYI @.>, Author @.>
Subject: Re: [PaperMC/Folia] In a Zombified Piglin Farm, Zombified Piglinsspawn in places they shouldn't. (Issue #320)

This kernel is not monitored by the PaperMC Team

โ€”
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

errant lagoonBOT
#

also notice that 2d goldfarm there sometime piglin walkign aroudn the area outside the killchamber

But it could just be a vanilla feature

https://minecraft.wiki/w/Zombified_Piglin#Reinforcements

This feature is exclusive to Java Edition.
On hard difficulty, zombified piglins have a 5% chance to spawn as leaders. Leader zombified piglins can spawn other zombified piglins as reinforcements.

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Stack trace

https://mclo.gs/OpybgLh

Plugin and Datapack List

0 plugins

Actions to reproduce (if known)

This is happening in the infernal dimension

Folia version

This server is running Folia version 1.21.4-DEV-dev/hard-fork@92efc63 (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-8af1aef (MC: 1.21.4)

Other

No response

errant lagoonBOT
#

Expected behavior

Everything is OK

Observed/Actual behavior

The server crashes when certain players join
And issue the following error
[io.papermc.paper.threadedregions.TickRegionScheduler] Region #32 centered at chunk [437, -61] in world 'world' failed to tick:
java.lang.NullPointerException: Cannot read field "entity" because "trackedEntity1" is null
at net.minecraft.server.level.ChunkMap.addEntity(ChunkMap.java:909) ~[luminol-1.21.4.jar:1.21.4-DEV-7604000]
at net.minecraft.server.level.ServerChunkCache.addEntity(ServerChunkCache.java:747) ~[luminol-1.21.4.jar:1.21.4-DEV-7604000]
at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:2802) ~[luminol-1.21.4.jar:1.21.4-DEV-7604000]
at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:2745) ~[luminol-1.21.4.jar:1.21.4-DEV-7604000]
at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.EntityLookup.entityStatusChange(EntityL...

errant lagoonBOT
#

also notice that 2d goldfarm there sometime piglin walkign aroudn the area outside the killchamber

But it could just be a vanilla feature

https://minecraft.wiki/w/Zombified_Piglin#Reinforcements

This feature is exclusive to Java Edition. On hard difficulty, zombified piglins have a 5% chance to spawn as leaders. Leader zombified piglins can spawn other zombified piglins as reinforcements.

After observation, not only zombie piglin farms, but other monster farms may also appear. It will not appear in vanilla

errant lagoonBOT
#

Stack trace

paste your stack trace or a paste.gg link here!

https://mclo.gs/51HSvas

Plugin and Datapack List

pl
[19:41:07 INFO]: Server Plugins (54):
[19:41:07 INFO]: Paper Plugins:
[19:41:07 INFO]: - CarbonChat, EnchantedBook, FancyNpcs, MoreFoWorld
[19:41:07 INFO]: Bukkit Plugins:
[19:41:07 INFO]: - ArmorStandEditor, AutoWhitelistRemove, BreweryX, CoreProtect, CoreProtectTNT, Craftorithm, DeluxeMenus, emotecraft, Essentials, EssentialsSpawn
[19:41:07 INFO]: GSit, HeadDatabase, InventoryRollbackPlus, InvisibleFrames, JoinMessenger, LevelledMobs, LiteBans, LuckPerms, Maintenance, Mclogs
[19:41:07 INFO]: MilkyPixelart, MinerTrack, NBTAPI, OreAnnouncer, PlaceholderAPI, PlasmoVoice, PlayerHeads, ProtocolLib, pv-addon-discs, pv-addon-groups
[19:41:07 INFO]: pv-addon-lavaplayer-lib, pv-addon-sculk, pv-addon-spectator, RestoreChunk, rpchat, SkinsRestorer, spark, squaremap, squaremap-worldguard, squaremarker
[19:41:07 INFO]: TAB, Terra, TWSAdmin, TWSCheck, TWSC...

errant lagoonBOT
#

Expected behavior

The items should flow normally without lag or rollback

Observed/Actual behavior

Items sometimes flow normally, but sometimes start to have strange lags and rollbacks.

Steps/models to reproduce

Build an item conveyor using packed ice and water, throw items on it, and wait until they start to have strange behavior, like small rollbacks. It takes around 20 seconds for it to appear, and it disappears periodically.

Plugin and Datapack List

None

Folia version

This server is running Folia version 1.21.4-DEV-dev/hard-fork@92efc63

Other

I made a small video about this

errant lagoonBOT
errant lagoonBOT
#

But issues what you link os outdated on 1.21.4 not a hard-fork

I have tested on non hard fork branch but it still happens()

And I pointed it to the wrong issue.Sorry for that,I am currently thinking it is related to #311 after I compared the code between 1.21.4 and 1.21.1 of folia()

The old position of entity was not updated correctly and the method "applyEffectsFromBlocks" depends on the old position of that entity

#

But issues what you link os outdated on 1.21.4 not a hard-fork

I have tested on non hard fork branch but it still happens()

And I pointed it to the wrong issue.Sorry for that,I am currently thinking it is related to #311 after I compared the code between 1.21.4 and 1.21.1 of folia()

The old position of entity was not updated correctly and the method "applyEffectsFromBlocks" depends on the old position of that entity

So problem in 1.21.4 is taking place?

#

But issues what you link os outdated on 1.21.4 not a hard-fork

I have tested on non hard fork branch but it still happens()

And I pointed it to the wrong issue.Sorry for that,I am currently thinking it is related to #311 after I compared the code between 1.21.4 and 1.21.1 of folia()

The old position of entity was not updated correctly and the method "applyEffectsFromBlocks" depends on the old position of that entity

So problem in 1.21.4 is taking place?

Yeah and 1.21.3 is also taking place()

errant lagoonBOT
#
at CrazyCrates-4.3.4.jar/com.badbones69.crazycrates.api.ChestManager.closeChest(ChestManager.java:37) ~[CrazyCrates-4.3.4.jar:?]
	at CrazyCrates-4.3.4.jar/com.badbones69.crazycrates.tasks.crates.CrateManager.endQuickCrate(CrateManager.java:1449) ~[CrazyCrates-4.3.4.jar:?]
	at CrazyCrates-4.3.4.jar/com.badbones69.crazycrates.listeners.MiscListener.onPlayerQuit(MiscListener.java:126) ~[CrazyCrates-4.3.4.jar:?]

55-57 lines string says what is this cause of plugin.

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

Stack trace

paste your stack trace or a paste.gg link here!

https://mclo.gs/reuyr5i
https://mclo.gs/vAky7kf

Plugin and Datapack List

[21:17:01 INFO]: Server Plugins (54):
[21:17:01 INFO]: Paper Plugins:
[21:17:01 INFO]: - CarbonChat, emotecraft, EnchantedBook, FancyNpcs, MoreFoWorld
[21:17:01 INFO]: Bukkit Plugins:
[21:17:01 INFO]: - ArmorStandEditor, AutoWhitelistRemove, BreweryX, CoreProtect, CoreProtectTNT, Craftorithm, DeluxeMenus, Essentials, EssentialsSpawn, GSit
[21:17:01 INFO]: HeadDatabase, InventoryRollbackPlus, InvisibleFrames, JoinMessenger, LevelledMobs, LiteBans, LuckPerms, Maintenance, Mclogs, MilkyPixelart
[21:17:01 INFO]: MinerTrack, NBTAPI, OreAnnouncer, PlaceholderAPI, PlasmoVoice, PlayerHeads, ProtocolLib, pv-addon-discs, pv-addon-groups, pv-addon-lavaplayer-lib
[21:17:01 INFO]: pv-addon-sculk, pv-addon-spectator, RestoreChunk, rpchat, SkinsRestorer, spark, squaremap, squaremap-worldguard, squaremarker, TAB
[21:17:01 INFO]: Terra, TWSAdmi...

errant lagoonBOT
errant lagoonBOT
#

[09:46:55] [Region Scheduler Thread #4/ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread failed main thread check: Cannot asynchronously load chunks, context=[thread=Region Scheduler Thread #4,class=io.papermc.paper.threadedregions.TickRegionScheduler$TickThreadRunner,region={center=[4800, -1392],world=world}], world=world, chunk_pos=[4859, -1394]
java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:88) ~[folia-1.21.4.jar:1.21.4-DEV-873afea]
at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:99) ~[folia-1.21.4.jar:1.21.4-DEV-873afea]
at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:152) ~[folia-1.21.4.jar:1.21.4-DEV-873afea]
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:320) ~[folia-1.21.4.jar:1.21.4-DEV-873afea]
at net.minecraft.world.level.Level.getChunk(Level.java:1107) ~[folia-1.21.4.jar:1.21.4-DEV-873afea]
at...

errant lagoonBOT
#

Can still reproduce

Using spectator mode and fly more than 1024(make the final position in other tickregion) and switch to creative mode immediately then it will throw that error

how do you switch to creative mode? from by plugin or operators?

/gamemode creative ()

Can I have an updated log?

Might related with a fix of mojang: https://bugs.mojang.com/browse/MC-92875 And updated logs are above()

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
#

[09:46:55] [Region Scheduler Thread #4/ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread failed main thread check: Cannot asynchronously load chunks, context=[thread=Region Scheduler Thread #4,class=io.papermc.paper.threadedregions.TickRegionScheduler$TickThreadRunner,region={center=[4800, -1392],world=world}], world=world, chunk_pos=[4859, -1394] java.lang.Throwable: null at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:88) ~[folia-1.21.4.jar:1.21.4-DEV-873afea] at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:99) ~[folia-1.21.4.jar:1.21.4-DEV-873afea] at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:152) ~[folia-1.21.4.jar:1.21.4-DEV-873afea] at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:320) ~[folia-1.21.4.jar:1.21.4-DEV-873afea] at net.minecraft.wor...

errant lagoonBOT
errant lagoonBOT
#

also notice that 2d goldfarm there sometime piglin walkign aroudn the area outside the killchamber

But it could just be a vanilla feature

minecraft.wiki/w/Zombified_Piglin#Reinforcements

This feature is exclusive to Java Edition. On hard difficulty, zombified piglins have a 5% chance to spawn as leaders. Leader zombified piglins can spawn other zombified piglins as reinforcements.

After looking at this other related issue (https://github.com/PaperMC/Paper/issues/12057). this looks to be the case to me, this is not a bug.

errant lagoonBOT
#

Expected behavior

The method isInWall is not doing a thread check for the whole range. this is weird because this causes players to not be removed from the server due to doTick() getting called.

java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:88) ~[folia-1.21.4.jar:1.21.4--293dd35]
at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:99) ~[folia-1.21.4.jar:1.21.4--293dd35]
at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:152) ~[folia-1.21.4.jar:1.21.4--293dd35]
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:320) ~[folia-1.21.4.jar:1.21.4--293dd35]
at net.minecraft.world.entity.Entity.isInWall(Entity.java:2869) ~[folia-1.21.4.jar:1.21.4--293dd35]
at net.minecraft.world.entity.LivingEntity.isInWall(LivingEntity.java:4360) ~[folia-1.21.4.jar:1.21.4--293dd35]
at net.minecraft.world.entity.LivingEntity....

errant lagoonBOT
#

Expected behavior

ShulkerBox Should open properly after right click.

Observed/Actual behavior

There is an error: at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[03:22:26 ERROR]: Could not pass event PlayerInteractEvent to NekoPlugin v1.4-SNAPSHOT
java.lang.IllegalStateException: Thread failed main thread check: Cannot queue block even data async, context=[thread=Region Scheduler Thread #2,class=io.papermc.paper.threadedregions.TickRegionScheduler$TickThreadRunner,region={center=[-89, 17],world=world}], world=world, block_pos=BlockPos{x=0, y=0, z=0}

Steps/models to reproduce

1.Write a plugin using the following code: https://pastes.dev/Xs6McEXrCv
2.compile plugin put and start server
3.add Shulker Box to you inventory and right-click on air
4.got error

Plugin and Datapack List

Plugin: Neko-Plugin(by me)
Datapack: Not have

Folia version

This server is running Folia version 1.21.4-DEV-dev/hard-fork@3af04d9 (1970-01-01T00:00:00Z) (Implementing A...

errant lagoonBOT
#

Stack trace

[03:37:50] [Region Scheduler Thread #2/INFO]: TT_Candy[**********] logged in with entity id 407 at ([world]767.7788530463216, 63.0, 790.3219713260949)
[03:37:53] [Region Scheduler Thread #3/INFO]: TT_Candy issued server command: /tp 0 150 0
[03:37:53] [Region Scheduler Thread #3/ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread failed main thread check: Cannot asynchronously load chunks, context=[thread=Region Scheduler Thread #3,class=io.papermc.paper.threadedregions.TickRegionScheduler$TickThreadRunner,region={center=[50, 34],world=world}], world=world, chunk_pos=[0, -1]
java.lang.Throwable: null
	at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:88) ~[folia-1.21.4.jar:1.21.4-DEV-3af04d9]
	at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:99) ~[folia-1.21.4.jar:1.21.4-DEV-3af04d9]
	at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:152) ~[folia-1.21.4....
errant lagoonBOT
#

So I still can't reproduce on new version of fork and with a default value

Error seems disappeared when set grid-exponent to 2

Just like a default?

Default value is 4 in folia1.21.4()

Really? I'm set very long time ago to:
threaded-regions:
grid-exponent: 2
I will try with a default value (4)

In older version it is 2 but I don't know when it was changed to 4.I tested with new generated default config and it'4

errant lagoonBOT
errant lagoonBOT
#

I got a similar issue, but i also don't know why it happens

[13:56:37] [Folia Watchdog Thread/ERROR]: [io.papermc.paper.threadedregions.FoliaWatchdogThread] Tick region located in world 'world_the_end' around chunk '[-61, -6]' has not responded in 5.264367338s:
[13:56:37] [Folia Watchdog Thread/ERROR]: ------------------------------
[13:56:37] [Folia Watchdog Thread/ERROR]: Current Thread: Region Scheduler Thread #0
[13:56:37] [Folia Watchdog Thread/ERROR]:       PID: 83 | Suspended: false | Native: true | State: RUNNABLE
[13:56:37] [Folia Watchdog Thread/ERROR]:       Stack:
[13:56:37] [Folia Watchdog Thread/ERROR]:               java.base@23.0.2/sun.nio.ch.UnixFileDispatcherImpl.write0(Native Method)
[13:56:37] [Folia Watchdog Thread/ERROR]:               java.base@23.0.2/sun.nio.ch.UnixFileDispatcherImpl.write(UnixFileDispatcherImpl.java:65)
[13:56:37] [Folia Watchdog Thread/ERROR]:               java.base@23.0.2/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:137)
[13:56...
errant lagoonBOT
#

Expected behavior

The event should either not get called, or when cancelled it should properly handle the location, currently
it seems to be glitching.

Observed/Actual behavior

The blocks call relativeTeleport on the BLock for farms if you jump on them.
and if the event is cancelled, the teleportTo becomes out of the region.
Ideally likely to remove the call of the event

Steps/models to reproduce

Just jump on a block and cancel the event

Plugin and Datapack List

Folia version

dev/hard-fork branch.
at least until 3af04d9c6a98d24032bf8c99ad5446b0f381e320

Other

No response

errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT
errant lagoonBOT