7ce0308 Add maven artifact and repo information - Spottedleaf
#folia-github
1 messages · Page 1 of 1 (latest)
Loading Chunks with invalid data, for example heightmaps that don't match the world height, crashes a Folia server. On Paper, an exception is thrown and logged, but the server keeps running.
Steps to reproduce:
- Download the world: world.zip (Datapack is included).
- Run Folia with the world. Everything should work normally. The world height should be 512.
- Stop the server and delete the world_height.zip datapack. T...
timings on
[09:27:48 INFO]: Enabled Timings & Reset
[09:27:48 INFO]: Timings Reset
timings paste
[09:27:51 INFO]: Please enable timings by typing /timings on
There are no plans to support the Timings profiler - we are phasing it out: https://github.com/PaperMC/Paper/issues/8948
Uses a system similar to gradlew.bat, so that the commands aren't logged to the console unless %DEBUG% is set
d73ec51 Log traces of threads that fail to shut down in... - jpenilla
[PaperMC/Folia] New branch created: log\-on\-halt\-fail
fine as is - these scripts are for shorthand usage, extra line of log doesn't really matter
i don't know how to reproduce this but it just got thrown randomly when players are mass joining
note: set connection-throttle to -1 in bukkit.yml to disable connection throttled kick
System information / folia version
-
folia commit : 5b74945
-
intel i9 9900k
-
64GB of ram
-
Running archlinux
java args
`java -Xms40G -Xmx40G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+Always...
Expected behavior
When trying to /enchant a item that doesn't support enchants to not say "Applied enchantment .... to ...'s item"
No enchantment is added as expected just a message
Steps/models to reproduce
- Give yourself an item that doesn't support enchantments such as
oak_log - do
/enchant @s minecraft:unbreaking 1 - 2 messages, 1 which says the enchantment got applied another one that says "Oak Log cannot support that enchantment"
**Fo...
The FAQ says:
What hardware will Folia run best on?
Ideally, at least 16 cores (not threads).
How did this answer come about? Why "at least 16" and not 8 or 4? It confuses me because I would think anything > 1 would be an improvement over the single-threaded implementation.
Thanks.
Because the entire system needs more threads to manage the work for the threads, and then you've gotta actually have those regions do stuff, which depend on other systems which have their own threads, etc
the vanilla server software may use a single thread for the main tick loop, but, it has many other threads, and if you only have 1/2 cores, you'll be stealing time away from the main thread. The number here generally is based on internal testing with limited hardware accessibility as well...
Thank you for the explanation!
Hello!
First of all, as all developers should be, I am excited to see a real attempt at solving one of Minecraft's most important and difficult problems 🎉. Additionally, I was pleasantly surprised at how much documentation already exists for this project which was recently announced.
Nevertheless, I found some very minor issues with the documentation such as typos and slight grammar mistakes which is obviously understandable as I am sure you were focusing most your efforts on improving ...
Copied from https://github.com/PaperMC/Paper/tree/master/.github/ISSUE_TEMPLATE and changed stuff from Paper to Folia
Hi there - thanks for your pull request! Unfortunately we are in the middle of moving the documentation over to PaperMC/docs - would you mind submitting a pull request with your changes over there? Thanks!
ccc5bdb Point to PaperMC documentation for most things ... - kashike
The catcher in LivingEntity is redundant as getHandle() already checks this in API calls.
The catcher Paper adds for sending messages to command blocks is outdated, as it needs to check the region the block or entity is in.
Stack trace
Mar 31 02:10:28 debianrack java[3112484]: [02:10:28 ERROR]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos@186d4068, suppressing error
Mar 31 02:10:28 debianrack java[3112484]: java.lang.UnsupportedOperationException: Must use teleportAsync while in region threading
Mar 31 02:10:28 debianrack java[3112484]: at org.bukkit.craftbukkit.v1_19_R3.entity.CraftPlayer.teleport(CraftPlayer.java:1264) ~[folia-1.19.4.jar:git-Foli...
Expected behavior
When building the project I expect to build the executable files in build/libs dir
Observed/Actual behavior

Steps/models to reproduce
Cloning the latest repository
running ./gradlew applyPatches
Plugin and Datapack List
didn't come there yet
Folia version
latest commit March 31 around 1:35pm UTC+1
Other
Since there is no doc...
Please head to the discord for further help, you are presumably hitting the path limit on windows.
Expected behavior

Observed/Actual behavior

Steps/models to reproduce
I am using translation software, so what I said may be incorrect. I apologize
I added several datapacks of vanilla that can be used normally under...
Several commands are currently disabled as they need to be updated to
support what folia does
On Fri, 31 Mar 2023, 13:56 可爱的皮卡丘, @.***> wrote:
Expected behavior
[image: 7LOG_SRGY4C9TFI$1AI5HG3]
https://user-images.githubusercontent.com/61087334/229122295-8934e94d-f3ee-44d7-a1bd-cc71573b972a.png
Observed/Actual behavior[image: %IC)J97A2KH 5488XI IQRW]
https://user-images.githubusercontent.com/61087334/229122360-be03b0d8-07ba-4ffc-9e52-aa5b091f07d0.png
Steps/model...
e4a444f [ci skip] Add foojay-resolver-conventions plugin - jpenilla
[PaperMC/Folia] New branch created: foojay
Fixes https://github.com/PaperMC/Folia/issues/12
This issue probably exists in other places where "feedback messages" are sent in commands, but I just wanted to see if this was an acceptable solution to the issue.
Amaranth also suggested you could keep some atomic int counters that incremented/decremented appropriately so in the last of the scheduled entity tasks, the messages could be sent there so that's an alternative solution.
Expected behavior
Villagers should be able to travel through nether portals, like other mobs.
Observed/Actual behavior
When I villager travel through a nether portal, it disappear and this error is throw:
[01:47:02 ERROR]: Entity threw exception at world:440.64865656939077,69.0,-206.24489705607485
net.minecraft.ReportedException: Loading entity NBT
at net.minecraft.world.entity.Entity.load(Entity.java:2502) ~[folia-1.19.4.jar:git-Folia-"ed7a5c5"]
at net.m...
Issue is that the new entity is created for the nether world, but this happens on the region thread for the old entity (somewhere in the overworld). So when the new entity goes to access the game time for brain logic, it think's its an illegal access of some overworld region game time from the nether.
fbf832b Log traces of tick threads that fail to shut do... - jpenilla
This isn't acceptable due to the usage of completablefutures. The exception handling is broken, as you've swallowed every other exception that isn't CommandSyntaxException. The proper handling is to re-throw those exceptions up the stack, but that isn't possible with completablefutures.
Expected behavior
Bukkit Conversations API can be used as normal
Observed/Actual behavior
Once a conversation is begin()ed with a player, every chat message they say results in this:
[00:04:52 ERROR]: Chain link failed, continuing to next one
java.lang.UnsupportedOperationException: null
at net.minecraft.server.network.ServerGamePacketListenerImpl.broadcastChatMessage(ServerGamePacketListenerImpl.java:2550) ~[?:?]
at net.minecraft.server.network.ServerGam...
508a668 Fix 2 incorrect threading checks (#17) - Machine-Maker
[PaperMC/Folia] branch deleted: log\-on\-halt\-fail
Ok, I removed the use of completable futures and moved over to sending the message when the last of the targets is processed, either inside the scheduled task or not (if its an invalid entity).
9c8863a Fix enchant command feedback messages (#22) - Machine-Maker
32417a2 [ci skip] Add foojay-resolver-conventions plugi... - jpenilla
[PaperMC/Folia] branch deleted: foojay
3f37707 Make move event location update use teleportAsync - Spottedleaf
Unlikely that command functions will ever be fixed. This is because now commands need to schedule onto the owning target's region, whether it be a block, entity, player, or something else. They may not even need to be scheduled at all.
This results in undefined completion order of the commands, which while some command functions may be able to tolerate, some may not be able to. There is no solution to this issue that I can see.
76b06a1 Do not call getGameTime when portalling Villagers - Spottedleaf
I suspect this issue is also present in Vanilla. Can you also test on upstream?
Expected behavior
Create new Scoreboard with success
Observed/Actual behavior
a null excepcion
[13:00:18 INFO]: [CoolProtection] [STDOUT] debug has ScoreboardManager org.bukkit.craftbukkit.v1_19_R3.scoreboard.CraftScoreboardManager@233c4975
[13:00:18 INFO]: [CoolProtection] [STDOUT] AsyncPlayerChatEvent
[13:00:18 ERROR]: Could not pass event ServerTickEndEvent to CoolProtection v1.6
java.lang.UnsupportedOperationException: null
at org.bukkit.craftbukkit.v1_19_R3.sc...
Stack trace
Apr 01 14:56:14 debianrack java[3787511]: java.lang.IllegalStateException: Player is already removed from player chunk loader
Apr 01 14:56:14 debianrack java[3787511]: at io.papermc.paper.chunk.system.RegionizedPlayerChunkLoader.removePlayer(RegionizedPlayerChunkLoader.java:158) ~[folia-1.19.4.jar:git-Folia-"ce3bef9"]
Apr 01 14:56:14 debianrack java[3787511]: at net.minecraft.server.level.ChunkMap.removePlayerFromDistanceMaps(ChunkMap.java:213) ~[folia-1.19...
Expected behavior
After signing a writable_book, it should turn into a written_book.
Observed/Actual behavior
writable_book don't turn into a written_book when signed.
Steps/models to reproduce
1- Take a writable_book
2- Write "a"
3- Click on "Sign"
4- Title = "a"
5- Click on "Sign and close"
Plugin and Datapack List
> plugins
[16:39:02 INFO]: Server Plugins (0):
Folia version
> version
[16:38:34 INFO]: This server is running Folia v...
Expected behavior
Expected do get results from:
- player.getLocation().getChunk().getTileEntities()
- .getWorld().getNearbyLivingEntities
- getWorld().getNearbyEntities()
Observed/Actual behavior
[14:45:39] [Region Scheduler Thread #0/ERROR]: Could not pass event ServerTickEndEvent to CoolProtection v1.6
java.lang.IllegalStateException: Cannot getEntities asynchronously
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:86) ~[folia-1.19.4.jar:git-Foli...
Entity#teleportAsync will remove the entity from the world when teleporting far (and as such will cause the current region to lose ownership of the player), and as a courtesy to other plugins you should not use it inside events. This is expected behavior for PlayerJoinEvent as well, since the player is not in the world yet.
this.filterTextPacket((List) list).thenAcceptAsync(consumer, this.server);
Yet another case of completablefuture swallowing exceptions.
getEntities is specifically guarded to prevent plugins from retrieving entities from chunks not owned by the current region. Only call it for players owned by the current region
33d2aa8 Make sign update executor use the EntityScheduler - Spottedleaf
As an amendment, there are other events to proper change the spawn location that isn't PlayerJoin, even when not using Folia, see PlayerSpawnLocation & methods.
Expected behavior
Push a mob with a weapon through a portal, on the other side of the portal it is the same entity.
Observed/Actual behavior
Push a mob with a weapon through a portal, on the other side of the portal it is the same entity but without weapon, and persistent.
Steps/models to reproduce
1- Build a nether portal
2- Summon a zombified piglin with a sword /summon zombified_piglin
3- Push it through the portal
4- Zombified piglin is now persistend and los...
This also happens with Horses, they keep their saddle but lose armor.
This is due to the removal logic being fired before the entity is copied, as the removal logic wipes the inventory of the entity.
Expected behavior
Fawe use for regeneration of chunks some methods. Normally getBlockEntity gives us every block tile entity from the chunk.
Observed/Actual behavior
The chunk level data random empty.
Steps/models to reproduce
- Clone https://github.com/IntellectualSites/FastAsyncWorldEdit/pull/2171 branch from me.
- Clear a section with FAWE and try to regenerate the cleared area.
Plugin and Datapack List
Folia version
Other
No response
getBlockEntity should only be retrieved by the ticking region
But some times are null internally in FOLIA.
Over Paperweight i got some errors. But randomly
But some times are null internally in FOLIA. Over Paperweight i got some errors. But randomly
Likely not the case, report them as they arise
Did some further testing with this bug: for horses, donkeys, and pigs, this does not appear to affect saddles. It'll just remove horse armor and weapons (or really any sort of armor piece/weapon) on an entity.
Here the stacktrace:
java.lang.NullPointerException: Cannot read field "capturedTileEntities" because the return value of "net.minecraft.server.level.WorldServer.getCurrentWorldData()" is null
at net.minecraft.world.level.chunk.LevelChunk.getBlockEntity(LevelChunk.java:565) ~[?:?]
at net.minecraft.world.level.chunk.LevelChunk.getBlockEntity(LevelChunk.java:558) ~[?:?]
at com.sk89q.worldedit.folia.adapter.impl.fawe.v1_19_R3.PaperweightGetBlocks.getTile(PaperweightGetBlocks.java:240...
Here the stacktrace:
java.lang.NullPointerException: Cannot read field "capturedTileEntities" because the return value of "net.minecraft.server.level.WorldServer.getCurrentWorldData()" is null at net.minecraft.world.level.chunk.LevelChunk.getBlockEntity(LevelChunk.java:565) ~[?:?] at net.minecraft.world.level.chunk.LevelChunk.getBlockEntity(LevelChunk.java:558) ~[?:?] at com.sk89q.worldedit.folia.adapter.impl.fawe.v1_19_R3.PaperweightGetBlocks.getTile(PaperweightGe...
AsyncNotifyQueue uses in the end the API from Bukkit/Folia
The only way getCurrentWorldData returns null is if it is not called from a tick thread.
Yeah but why sometimes are not null. Thats the funny thing 😂
Because multithreaded programming is a complicated topic where few things are guaranteed across threads
Okay got you. I am on it to fix it in fawe
Is your feature request related to a problem?
As a regionised server software, we don't know what current API getTickTimes, getAverageTickTime and getTPS should return.
It might be great to get significative TPS info based on region tick times.
Describe the solution you'd like.
Deprecate Bukkit#getTickTimes and Server#getTickTimes
Deprecate Bukkit#getAverageTickTime and Server#getAverageTickTime
Deprecate Bukkit#getTPS and Server#getTPS
Add `Bukkit.getTickTime...
I added GlobalRegionScheduler#getGlobalThreadExecutor and RegionScheduler#getRegionThreadExecutor to get respectively an executor of the global region and to get an executor of a corresponding region at a location. I find that these methods were useful in regular paper when working with CompletableFuture, I think other developers too. This PR aims to reintroduce them
I think the method names should just be getExecutor(). They are on interfaces with the names Region and Global, it doesn't need to be repeated in the method name.
Expected behavior
give me a working jar
Observed/Actual behavior
gives a jar with only a empty manifest
Steps/models to reproduce
gives a jar with only a empty manifest
Plugin and Datapack List
gives a jar with only a empty manifest
Folia version
gives a jar with only a empty manifest
Other
Are there files missing? i tried intillij and without. ran all bat files.
Here is not the place for questions like this. Please consult the discord for more information.
People may be directly linking to the REGION_LOGIC.md file, so it should stay as a redirection.
Expected behavior
Vanilla redstone.
Observed/Actual behavior
Here is everything AFAIK:
- The main issue is redstone that freeze sometimes on chunk loading.
- Blocks can be deleted, but if you replace them, the redstone keep freezing.
- It seems to affect only redstone "modules" (i.e every redstone component except redstone dust)
- This bug doesn't appear if the chunk is already loaded. (i.e you'll never see redstone freezing)
- If you delete/replace the block, it doesn't ...
Expected behavior
On Paper, while riding an horse/pig/donkey/mule, with or without a saddle, teleporting a player using teleportAsync dismounts the player and teleports it. Getting the future in an async task returns true.
Observed/Actual behavior
On Folia, while riding an horse/pig/donkey/mule, with or without a saddle, teleporting a player through teleportAsync does nothing. Getting the future in an async task returns false. I've also tested this while travelling between the same...
I suspect this issue is also present in Vanilla. Can you also test on upstream?
sorry for late response, i have tested it on upstream it does not seem to occur, but i will keep testing.
true || is generally used in patches as a shorthand for ensuring an if statement always runs, without too much diff in the patch file.
Sorry, to clarify, you'll have to edit the commit summary for the patch files to retain shorter names - you can shove the longer description into the commit description.
Sorry it's me not being familiar with the patch system. Does it look better now?
Changed links from PROJECT DESCRIPTION.md to Paper website
Expected behavior
* Set enable-command-block=true in server.properties
Join in the world, then place command block, type some command for example summon minecraft:bee ~ ~5 ~
Set command block properties to repeat; always active
Command block starts spawning bees
Observed/Actual behavior
Command block does nothing
output field also not working
Steps/models to reproduce
* Set enable-command-block=true in server.properties
Join in the world, then place command b...
oh sorry, my failure
Expected behavior
save-all saves all chunks and player data in Paper.
Observed/Actual behavior
> version
[08:23:23 INFO]: Checking version, please wait...
[08:23:24 INFO]: This server is running Folia version git-Folia-"105f6d6" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 105f6d6)
You are running the latest version
> save-all
[08:23:30 INFO]: Unknown command. Type "/help" for help.
Steps/models to reproduce
Type save-all in the consol...
Disabled commands are now documented on https://docs.papermc.io/folia/faq, according to the PR mja00 submitted.
Expected behavior
Foxes should not duplicate sweet berries
Here is a video that shows how it works on paper
Observed/Actual behavior
Foxes duplicate sweet berries.
Here is a video that shows the bug:
Steps/models to reproduce
Putting foxes in an enclosure with sweet berries, the duplication happens almost systematically
Plugin and Datapack List
The server does not use datapacks or plugins
Folia v...
Expected behavior
Normal mob behavior.
Observed/Actual behavior
Sometimes, mobs are inactive when player is nearby.
It seems to happen on chunk loading, but i'm not sure.
Steps/models to reproduce
Step 1: Set time to night so enemies can spawn /time set night
Step 2: Set gamemode to survival /gamemode survival
Step 3: Invincibility, for testing purposes: /effect give @s resistance infinite 255
Step 4: TP far away: /tp 100000 100 0
Step 5: Walk till you encounter...
Expected behavior
I am trying to import the API with Gradle Kotlin and it not detect nothing. When i use maven works
Observed/Actual behavior
With gradle:
Not loading the API
With maven:
Load the API correctly
Steps/models to reproduce
Gradle Kotlin.
Plugin and Datapack List
No plugin list.
Folia version
No problem with plugins. Only with the API with Gradle
Other
No response
Stack trace
https://paste.gg/p/anonymous/46efd4d5148540fcb288d3aae241865c
Plugin and Datapack List
Chunky, Grim AC, Better Economy, Folia Vault
Actions to reproduce (if known)
do /rl confirm
Folia version
[19:55:41 INFO]: This server is running Folia version git-Folia-"41c5548" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 41c5548)
Other
/spigot reload - Doesnt crash the server
org.bukkit.command.CommandException: Unhandled exception executing 'rl confirm' in org.bukkit.command.defaults.ReloadCommand(reload)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) ~[folia-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R3.CraftServer.dispatchCommand(CraftServer.java:1017) ~[folia-1.19.4.jar:git-Folia-"41c5548"]
at org.bukkit.craftbukkit.v1_19_R3.CraftServer.dispatchServerCommand(CraftServer.java:948) ~[fol...
This command should be removed, especially in Folia
The issue probably also occurs with the minecraft:reload command. So if you just wanted to remove it, you'd want to remove both.
Stack trace
[13:50:12 ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #19793 centered at chunk [-25, 2] in world 'world' failed to tick:
java.lang.IllegalStateException: Already sent chunk [8, 0] to player EntityPlayer['BEBRA_B_POPE'/2383115, uuid='10d4f404-b483-3340-91f5-fe6f1d600cb7', l='ServerLevel[world]', x=-2.06, y=71.00, z=9.72, cpos=[-1, 0], tl=71871, v=true](BEBRA_B_POPE at -2.06269412992101,71.00133597911214,9.717645408324085)
at net.minecra...
please try on latest, with a bit of luck 25e0cbdae46912d227a31703869594538b731931 fixed this
Thank you, I updated the server and will close the task. If the error reoccurs, I will let you know.
Stack trace
https://paste.gg/p/anonymous/034189458a1e4d8c8a2add6e47308dc2
Plugin and Datapack List
Chunky
However this issue was also occuring without it so...
Actions to reproduce (if known)
Teleport far out when the server is under heavy load.
Folia version
[02:05:39 INFO]: This server is running Folia version git-Folia-"41c5548" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 41c5548)
You are running the latest version
Other
No response
Can reproduce on 41c5548.
Context: A player going to the nether, 32 chunks view distance.
[14:31:28] [Region Scheduler Thread #5/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #29483 centered at chunk [3, 30] in world 'world_nether' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1716) ~[folia-1.19.4.jar:git-Folia-"41c5548"]
at net.minecraft.server.dedicate...
kugge put it in https://github.com/PaperMC/Folia/issues/46 (most recent open issue on it)
kugge put it in #46 (most recent open issue on it)
Unfortunately my stacktrace is not the same as yours:
Caused by: java.lang.IllegalStateException: Illegal recursive processTicketUpdates!
Whereas mine is
Caused by: java.lang.IllegalStateException: Already sent chunk [70, 58] to player EntityPlayer<...>
Stack trace
paste your stack trace or a paste.gg link here!
[10:56:49 ERROR]: [ca.spottedleaf.concurrentutil.executor.standard.PrioritisedThreadPool] Exception thrown from thread 'Tuinity Chunk System Worker #0' in queue 'ca.spottedleaf.concurrentutil.executor.standard.PrioritisedThreadPool$PrioritisedPoolExecutorImpl@7a1415e7'
net.minecraft.world.level.chunk.MissingPaletteEntryException: Missing Palette entry for index 9.
at net.minecraft.world.level.chunk.Line...
Fix legacy colors in console
Is your feature request related to a problem?
Because if a player buys things and creates a lot of chests, it will even be difficult to enter the server
Describe the solution you'd like.

Describe alternatives you've considered.
https://github.com/xymb-endcrystalme/Kaiiju/commit/3e9cb6ec8dc15ffc9e6f5fa6ea0eed7235ac22de
folia fork with this feature
Othe...
There's a problem with the chests in mintcraft. If there are too many of them and they will be filled with resource shulkers, then the server will simply shut down from lack of RAM. Also, the server hangs when loading and unloading chunk, saving the world.
I confirm that is reproducible on Folia, but not on Paper
Regards
I don't think that is Folia goal
If you really want to suggest that feature you should open a feature request / bug report on Paper repo
This is a different one, and I don't even see how this one is possible.
I will be making no changes to the data format on disk, otherwise worlds from or to Vanilla will not load. I also cannot make changes to how items are stored in memory, even at the NBT level as plugins will use all kinds of hacks to do things. So, I am in a position where I can't work on this.
This is an issue with how the block data is maintained per section in Vanilla. I could fix it, at the risk of breaking the block storage or causing compatibility issues with plugins. I don't care about the latter, but the former is a very significant issue and so I can't fix this issue.
The region at any location is undefined unless owned by the current thread. The region which owns an entity is even less-defined, too. These issues make the suggested APIs generally undefined - how do they play in with things such as region transience?
Basically, need APIs that ones that delay a return value when the region state is considered valid.
Expected behavior
Expected no problems, as observed in Paper
Observed/Actual behavior
- On Paper, the stress test ran for about 5 hours with no problems, just delayed ticks ~100.
2 . On Folia, after about 44m it starts complaining with:
[2641.978s][warning][gc,alloc] Netty Server IO #3: Retried waiting for GCLocker too often allocating 256 words
version[3327.573s][warning][gc,alloc] Server console handler: Retried waiting for GCLocker too often allocating 331 words
[33...
It is something related with the player connection, and mainly when respawn, I got it as well with a player known to have some ping issues.
It is important to mention that it stops the server right after (got it twice).
The server was with very low usage, 4 players.
Adding my Stack trace
[23:07:40] [Region Scheduler Thread #0/INFO]: Cogumelo090 fell from a high place
[23:07:42] [Region Scheduler Thread #0/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #714 ce...
ce49776 Add more debugging information to chunk sending - Spottedleaf
Please try again on latest, I have made some changes to provide more debugging information
Your memory allocation is really low, Folia is supposed to receive a lot more memory than a normal mc server, you are also not setting the same Xmx and Xms value, they are usually supposed to be matching.
Expected behavior
Ender pearl goes through and teleports you to the islands.
Observed/Actual behavior
Ender pearls do not work at all when thrown through the portal.
Steps/models to reproduce
Throw an enderpearl through the end gate.
Plugin and Datapack List
N/A
Folia version
[15:39:03 INFO]: This server is running Folia version git-Folia-"41c5548" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 41c5548)
You are 2 version(s) behind
1 versio...
Hi Pedro, thanks for commenting!
I don't share the idea that more ram should solve everything, in this case 20 bots walking in line at 0.2, would need more then 4G.
Anyway I gave it a shot by setting 10GB and guess , it took less than 5m to start complaining with red alerts.
About the Xmx and Xms, these values exist since early java beginnings for some reason, I know people prefer to set it all same because servers are dedicated, but the best way to know how much ram is really neede...
I mean, that potentially looks like a recent "exploit" in vanilla which was just fixed in folia like 24 hours ago
I mean, that potentially looks like a recent "exploit" in vanilla which was just fixed in folia like 24 hours ago
Hi,
Have tested with the latest version, Leaf alerted yesterday to some extra debugs and fixing so today made all tests with it.
[22:33:04 INFO]: Checking version, please wait...
[22:33:04 INFO]: This server is running Folia version git-Folia-28 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: dddaab9)
You are running the latest version
Previous version...
I confirm that is reproducible on Folia, but not on Paper Regards
Allow me to correct my statement.
A slightly different problem is presented to me also with mass join but giving a different error:
[22:47:05 INFO]: com.mojang.authlib.GameProfile@78bb283d[id=ef73d3ac-37cd-3dd5-8cfc-4dbbd1edd821,name=Bot16,properties={},legacy=false] (/127.0.0.1:56911) lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 8
[22:47:06 INFO]: ...
I confirm that is reproducible on Folia, but not on Paper Regards
Allow me to correct my statement. A slightly different problem is presented to me also with mass join but giving a different error: [22:47:05 INFO]: com.mojang.authlib.GameProfile@78bb283d[id=ef73d3ac-37cd-3dd5-8cfc-4dbbd1edd821,name=Bot16,properties={},legacy=false] (/127.0.0.1:56911) lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 8 [22:47:06 INFO...
This is a different one, and I don't even see how this one is possible.
Should I test this on a newer compiled version now?
This is a different one, and I don't even see how this one is possible.
Should I test this on a newer compiled version now?
yep
GitHub is weird, this is emailing everyone watching (including me) lol
Stack trace
paste your stack trace or a paste.gg link here!
Plugin and Datapack List
[12:29:00 INFO]: Paper Plugins:
[12:29:00 INFO]: - MiniScoreBoard
[12:29:00 INFO]: Bukkit Plugins:
[12:29:00 INFO]: - Chatty, Chunky, CoreProtect, DiscordSRV, floodgate, FreedomChat, LuckPerms, spark, TAB, Vault
[12:29:00 INFO]: ViaBackwards, ViaVersion
Actions to reproduce (if known)
No response
Folia version
[12:29:13 INFO]: This server is r...
Expected behavior
Normal redstone ticking frequency under load.
Observed/Actual behavior
Delays can be observed in redstone contraptions, most obviously in high-frequency redstone clocks. Sometimes redstone goes faster, sometimes slower.
This can be easily observed when watching items going through hoppers when the server is under chunk loading.
Steps/models to reproduce
This is generally easy to reproduce.
1- Teleport far away /tp 100000 100 3000
2- Place two hopper...
[05:51:22] [Region Scheduler Thread #6/INFO]: Checking version, please wait...
[05:51:22] [Thread-66/INFO]: This server is running Folia version git-Folia-"dddaab9" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: dddaab9)
You are running the latest version
Previous version: git-Folia-"41c5548" (MC: 1.19.4)
the crash still occurs
[PaperMC/Folia] New branch created: git\-warn
Removed the bit about downloads since Folia doesn't have them yet
[PaperMC/Folia] branch deleted: git\-warn
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: masmc05 <masmc05@gmail.com>
Date: Thu, 20 Apr 2023 20:37:35 +0300
Subject: [PATCH] TempFix
diff --git a/src/main/java/net/minecraft/world/level/chunk/ChunkGenerator.java b/src/main/java/net/minecraft/world/level/chunk/ChunkGenerator.java
index 2fbfdf1fdba12417e2dbca041b9c7e29af27d02d..39408e5df67464843c6c37524ebf078f6fb9cc91 100644
--- a/src/main/java/net/minecraft/world/level/chunk/ChunkGenerator...
Got this now, with same player, it is different, might be related with new protection?
[19:47:30 INFO]: [Cogumelo090: Teleported Cogumelo090 to 29999999.500000, 134.970101, 2961.390223]
[19:47:31 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.19.4.jar:git-Folia-28]
at net.minecraft.server.level.ServerChunkCache....
Still couldn't replicate this one, with same player
New stacktrace: (world_nether => world teleportation)
[00:25:32] [Region Scheduler Thread #2/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #78955 centered at chunk [24, -3] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1716)
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:456)
at ne...
New stacktrace world => world_nether
[02:28:47] [Region Scheduler Thread #2/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #78955 centered at chunk [24, -3] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1716)
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:456)
at net.minecraft.s...
@masmc05 Could you give this diff a try? I don't think we want to be accessing captured states from world gen threads.
diff --git a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java
index f4c4951f8..2f94a2467 100644
--- a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java
+++ b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java
@@ -515,7 +515,7 @@ public class LevelChunk extends Chu...
Can reproduce. The interaction between the portal and an enderpearl don't work; but the portal itself works fine.
Expected behavior
I encountered a problem while compiling, but I did not find the free issue publishing entry in the feedback screen, so the following question is about compilation errors.
I followed paperMC's build guidance:
//
1.To compile Paper, you need JDK 17 and an internet connection.
2.Clone this repo, run ./gradlew applyPatches, then ./gradlew createReobfBundlerJar from your terminal. You can find the
compiled jar in the project root's build/libs directory.
3.To ...
Try using a shorter path or building on WSL, seek support on the discord, we can't diagnose such issues here
It seems that when a player sleep when this crash occur, it cannot connect anymore and we have to delete his player.dat + restart. We cannot sleep on his bed (the bed is bugged).
Expected behavior
Server stop when a player is sleeping, the player can log back.
Observed/Actual behavior
Player can't log back.
Error:
[16:27:58] [User Authenticator #0/INFO]: UUID of player skoaboi is 185cd978-a836-4a68-aa61-2debded034ab
[16:27:58] [Region Scheduler Thread #1/ERROR]: Couldn't place player in world
net.minecraft.ReportedException: Loading entity NBT
at net.minecraft.world.entity.Entity.load(Entity.java:2502)
at net.minecraft.world.l...
The underlying issue is that the world state is being accessed by the world gen threads, which is unacceptable in the first place.
New stacktrace world_nether => world
Are there any other logs? Some of the debugging information wont cause a crash, but rather log some warnings/errors.
Won't this break block decorators or something similar? (like the ones that causing the issue in the first place)
BeehiveDecorator in line 59 will never be able to generate bees in the nest, since it can't access the block entity
New stacktrace world_nether => world
Are there any other logs? Some of the debugging information wont cause a crash, but rather log some warnings/errors.
I don't have any more details, but I've already encountered those:
[14:28:39] [Region Scheduler Thread #4/WARN]: Boat (vehicle of Byron_11) moved wrongly! 0.691516229135047
[14:28:39] [Region Scheduler Thread #0/WARN]: Boat (vehicle of Byron_11) moved wrongly! 2.6681221076020734
[14:28:39] [Region Scheduler Thread #1/WA...
While not the same exception, I thought it may be related? Our server received this exception before crashing.
[03:00:12] [Region Scheduler Thread #1/ERROR]: Failed to handle packet net.minecraft.network.protocol.game.PacketPlayInFlying$PacketPlayInPosition@da6b13b, suppressing error
java.lang.IllegalStateException: Have not sent chunk [-104, 162] in world 'world' to player EntityPlayer['DaPBillk'/2761, uuid='83ddeb43-1b4e-4c12-b45a-e8363cab67cb', l='ServerLevel[world]', x=-1855.89, ...
Is your feature request related to a problem?
Hello, dear team member of folia!
I am a Minecraft player who has been using your Minecraft 1.19.4 server with enthusiasm and satisfaction. However, some of my friends would like to continue using old Minecraft plugins that are only compatible with Minecraft 1.16.5.
Therefore, I would like to request that folia team could consider releasing a server version that works with Minecraft 1.16.5 in the future, to facilitate those players who ...
Folia is not even compatible with 1.19.4 plugins
Folia 甚至不兼容 1.19.4 插件
这是个有潜力的服务端,有一些插件已经兼容了
Expected behavior
When the dragon dies, a new end gateway spawn.
Observed/Actual behavior
When the dragon dies, old end gateways are erased (the counter restart from the beginning: 0)
Steps/models to reproduce
1- Generate a new end
2- Kill the dragon
3- Restart
4- Summon the dragon with end crystals
5- Kill the dragon (not with /kill)
6- There is still only one end gateway
Plugin and Datapack List
None
Folia version
[20:30:19 INFO]: This server is runnin...
Stack trace
[20:17:56] [Region Scheduler Thread #1/ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Accessing poi chunk off-main
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.19.4.jar:git-Folia-"17a3236"]
at net.minecraft.world.entity.ai.village.poi.PoiManager.d(PoiManager.java:281) ~[?:?]
at net.minecraft.world.entity.ai.village.poi.PoiManager.exists(PoiManager.java:199) ~[?:?]
at net.minecra...
Expected behavior
It should have safely generated normal blocks following my server's packets, because blocks elsewhere on my server were normal
Observed/Actual behavior
But....Okay, look this then you can know the problems

Steps/models to reproduce
I think this is a completely random error, because most of my server is normal, including the error map I showed ha...
yeal, I'm having the same issue too
Stack trace
https://paste.ubuntu.com/p/dnGZVGBrfb/
Plugin and Datapack List
plugins:

datapacket:

Actions to reproduce (if known)
According to the player description, at that time they were just exploring in hell and then the server crash...
Reimplemented the world load/unload api
Was working fine a few days in production, but still will keep this a few more days in draft in case of issues
Had to add a little new concept that wasn't specified anywhere, after we stop the activity and any ticking in the world, so there aren't any regions in the world that can tick the world, or have tick threads, we transfer the rights over the world to global tick thread, and we should try to only read the data that was frozen after halting ...
New stacktrace world_nether => world
Are there any other logs? Some of the debugging information wont cause a crash, but rather log some warnings/errors.
[16:52:54 ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #4095 centered at chunk [-12, 8] in world 'islands/vannazxc/overworld' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1716) ~[folia-1.19...
Can't make it crash to force dump, possibly meaning it is more stable then what I was originally thinking.
I close the issue, thanks for your comments.

In the red circle are inactive bees and only 1 bee is working
Expected behavior
Villagers became insensitive to their workbenches and sometimes did not take their jobs
Observed/Actual behavior
They would have picked up work very quickly and moved around the workbench
Steps/models to reproduce
Just give a villager (with default spawn reason) a job site block and after about 20 minutes it occurs.
Plugin and Datapack List
plugins:
 ~[folia-1.19.4.jar:git-Folia-"b97116b"]
at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:1123) ~[?:?]
at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:...
This pull request aims to solve a potential async call when completing a raid.
From my understanding, if a player is a hero of the village but proceeds to leave the region of the raid before it's completion, it would throw the async addEffect exception.
This pull request aims to resolve this by ensuring that the relevant code is executed on the entity's scheduler.
[PaperMC/Folia] Pull request opened: #67 Add teleport events when teleportAsync is called internally
Currently, teleports caused by methods such as ender pearls or the /tp command do not trigger PlayerTeleportEvent or the EntityTeleportEvent.
This pull request implements the events when teleportAsync is called.
There is also a high chance fish would lose AI when entering above water 
Figured out what was wrong with my previous pull request #67 due to a misunderstanding of internal paper methods regarding the chunk coordinate calculations. This pull request fixes what it had problems with.
Currently, teleports caused by methods such as ender pearls or the /tp command do not trigger PlayerTeleportEvent or the EntityTeleportEvent.
This pull request implements the events when teleportAsync is called.
I have had a few instances of terrain generation bugs as well. Nothing that looks like this, though. Mine consisted of just chunk borders similar to when you change the seed and try to generate new terrain.
I'm able to reproduce this very frequently, as it's happened many times today when my servers been up and we've played on it. Doesn't happen to every enemy mob, but if a couple pillagers during a raid will spawn, 1, 2, or rarely 3 of them will break when you move in their range.
No teleporting far away is needed to reproduce the issue as well, this happens just a couple hundred blocks from spawn.
Most importantly of all, I've discovered that this issue is not just their AI and Animations st...
I have had a few instances of terrain generation bugs as well. Nothing that looks like this, though. Mine consisted of just chunk borders similar to when you change the seed and try to generate new terrain.
No real reliable reproduction steps I can provide, unfortunately. I can get it to happen relatively reliably when just driving around in a boat. This was happening on an Intel Xeon Phi 7210 if that helps. It has an extremely high core count but the clock speed is pretty low so tha...
Expected behavior
- Build a new Nether Portal
- Throw X Items through it
- Step into Portal
-> 1 Portal with dropped items
Observed/Actual behavior
-> Many new Portals, one for each item
Steps/models to reproduce
- Go to Nether
- Build a new portal, in an Area where no other portals are
- Activate portal
- Throw X items through the portal
- After X Items use Portal with player
-> X Target Portals are generated when generating new Chunks
Plugin and Datapack List
...
New stacktrace world_nether => world
Are there any other logs? Some of the debugging information wont cause a crash, but rather log some warnings/errors.
I don't have any more details, but I've already encountered those:
[14:28:39] [Region Scheduler Thread #4/WARN]: Boat (vehicle of Byron_11) moved wrongly! 0.691516229135047 [14:28:39] [Region Scheduler Thread #0/WARN]: Boat (vehicle of Byron_11) moved wrongly! 2.6681221076020734 [14:28:39] [R...
Stack trace
[20:13:02 ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #25599 centered at chunk [6237, -5615] in world 'world' fail
ed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1716) ~[folia-1.19.4.jar:git-Folia-"47105ea"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.19.4.jar:git-Folia-"47105ea"]
...
duplicate of #45 ?
It seems so, also mentions "Already sent chunk" [6260, -5622] in world 'world' to player EntityPlayer['not_LOSER'/3793434, uu
New Problem?
[14:30:50] [Region Scheduler Thread #0/INFO]: YouXin joined the game
[14:30:50] [Region Scheduler Thread #0/INFO]: YouXin[/183.198.211.157:53873] logged in with entity id 4576323 at ([world]-978.0245502049388, 71.0, 2809.1456375847897)
[14:30:50] [Folia Async Scheduler Thread #5169/WARN]: [EssentialsGeoIP] 无法获取YouXin的GeoIP数据。请确认你的许可证密钥和配置是正确的。
[14:30:54] [Region Scheduler Thread #1/ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Cannot add effects to entit...
New Problem? [14:30:50] [Region Scheduler Thread #0/INFO]: YouXin joined the game [14:30:50] [Region Scheduler Thread #0/INFO]: YouXin[/183.198.211.157:53873] logged in with entity id 4576323 at ([world]-978.0245502049388, 71.0, 2809.1456375847897) [14:30:50] [Folia Async Scheduler Thread #5169/WARN]: [EssentialsGeoIP] 无法获取YouXin的GeoIP数据。请确认你的许可证密钥和配置是正确的。 [14:30:54] [Region Scheduler Thread #1/ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Cannot add effects to entitie...
Stack trace
Paste.gg link
Server crashed at latest stacktrace.
Plugin and Datapack List
A simple plugin that use teleportAsync on random coordinates. Used to replicate #45, but ended up with this stacktrace
Actions to reproduce (if known)
When using teleportAsync a lot of time on unloaded chunks / random coordinates.
Folia version
[15:54:55 INFO]: Checking version, please wait...
[15:54:56 INFO]: This se...
add this please, it currently create a lot of issue and crash
Will this be implemented eventually?
Is your feature request related to a problem?
Unable to use API please delete or use @Deprecated
Describe the solution you'd like.
Unable to use API please delete or use @Deprecated
Describe alternatives you've considered.
Unable to use API please delete or use @Deprecated
Other
Unable to use API please delete or use @Deprecated
[20:08:24] [Region Scheduler Thread #3/INFO]: moxing521 was blown up by Creeper
[20:08:24] [Region Scheduler Thread #2/WARN]: Snte_am moved too quickly! -5.297351951851908,-26.0,1.8889335627827677
[20:08:24] [Region Scheduler Thread #2/ERROR]: Thread Region Scheduler Thread #2 failed main thread check: Accessing poi chunk off-main
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.19.4.jar:git-Folia-"47105ea"]
at net.minecraft.w...
[19:03:22] [Region Scheduler Thread #3/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #74 centered at chunk [-305, -3084] in world 'world' failed to tick:
net.minecraft.ReportedException: Ticking player
at net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:882) ~[?:?]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:666) ~[folia-1.19.4.jar:git-Folia-"47105ea"]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:648) ~[...
[19:03:22] [Region Scheduler Thread #3/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #74 centered at chunk [-305, -3084] in world 'world' failed to tick:
net.minecraft.ReportedException: Ticking player
at net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:882) ~[?:?]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:666) ~[folia-1.19.4.jar:git-Folia-"47105ea"]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:648) ~[...
78fab74 Use coordinate-based locking to increase chunk ... - Spottedleaf
[PaperMC/Folia] New branch created: dev/locking
See patch notes for implementation details.
This patch should massively increase performance in Folia due to the significantly better locking behavior.
As with mainline Folia, builds are not provided you must build it yourself. If you already know how to build regular Folia, just use
your git client to checkout to the dev/locking branch (and please verify via current HEAD that you have the latest from the branch).
Please report any issues with this branch on this PR.
Expected behavior
tested in fork folia kalijju and folia, same problem.
Observed/Actual behavior
Steps/models to reproduce
Any action with the shulkers. This is not a stash optimization patch because I checked without it.
Plugin and Datapack List
i don't have plugins
Folia version
fea2422e25da3617604e2ac22faad00bc7e7cfed
Other
.
Something created an invalid nbt tag
Something created an invalid nbt tag
this is default shulker without any changes
How to reproduce this on a new world ?
How to reproduce this on a new world ?
shulker full with items. error not a rare but rare, sometimes it may not work
I did a bit of testing with this branch and bots joining + spawnRadius = 50k. Chunk loading seems to be smoother, which is nice.
However, in two out of three tries the server completely locked up after about 10 minutes.
For some time before that /tps showed a different region at ~2 TPS every time I ran it. After some time, one region apparently completely died, showing up at 5000 mspt.
after this it was also no longer possible to join (even though I was in a different region).
[jsta...
How many regions? You may have hit the scheduler's limit.
Well, 5. Which is also seems off considering its 194 bots with spawnradius 50k.
I think it's good, didn't have any issue with that
4c11d7e Revert region section size change - Spottedleaf
I have reverted the change to the region shift, please try again.
Did three tests again, no locking up. Highest mspt is at 14ms. Region count also seems a lot more plausible now, and gen rate went up massively. I guess that revert helped.
I don't want to encourage usage of CompletableFuture, since they do not follow reasonable error handling. I've learned this the hard way from Mojang's code, and I don't expect plugins to do a better job.
There are many significant issues with this that are not addressed:
- teleporting into worlds that may or may not be unloading (this includes player login) is just not handled, which is unacceptable
- interactions with the entity scheduler or region scheduler, this includes internal access as well as API access
- waiting until all regions are halted (in your code this is done incorrectly due to threading issues) is not good enough, as new chunk holders may be created asynchronously by tick...
Clean up the imports, and add comments where diff starts and diff ends.
https://github.com/PaperMC/Paper/blob/master/CONTRIBUTING.md
The comment where I wrote that events may be placed there is actually wrong. It also needs to check the preconditions for teleporting again, as plugins may modify them. Ideally, given that this is "new" API, if any of those checks fail (i.e wrong tick thread, entity removed, or any other check it made before) then the code needs to throw an exception.
You...
The start/end should match what the diff shows in the patch. In this case you would need two start/ends. Please add the description you provided for the PR here into the patch description.
This is an issue with the loadstone code, which I will fix. But you need to open different issues for different issues, as this thread contains way too many other issues, and they are duplicates.
This isn't a Folia issue. I suspect this is a Vanilla issue.
This is due to the fact that Mojang has shoved in their DFU Dynamic / Codec system into the load process for the server level data and it changes the stored gateway type from a List of Ints to an Int Array tag, and as such the deserialization code cannot read it properly. Yet another reason to hate it for being far too abstract.
If you can test on Vanilla, report to them. I'm not touching this system at all, as it's far too c...
Are you sure your datapacks don't cause this?
I explicitly added code to check for existing portals before creating one, but it looks like the POI update is delayed by 1 tick so there's still a window where this can happen. Not sure how to deal with this.
this includes player login
Player login has to go trough global thread, which is doing the unload, so I don't see possible issues with that since a player login and a world unload can't happen in parallel
using the global tick thread to save the chunks is inappropriate as the global tick thread is not supposed to be doing expensive work, as it is maintaining the time for the worlds as well as being a fallback for processing tasks if there are no other tickable regions active. I do a...
Got this on previous built, from 19h ago
Got this on previous built, from 19h ago, might help.
log
I can only see this happening if you have a plugin used the regenerate chunk API. Is this the case?
c03aed8 Undo making JavaPlugin#logger field public (se... - jpenilla
[PaperMC/Folia] New branch created: logger\-field
See see PaperMC/Paper#9125
This patch will get cleanly skipped when updating upstream.
I can only see this happening if you have a plugin used the regenerate chunk API. Is this the case?
Hi Leaf, I don't have any plugins generating chunks.
This test ran with minecraft-stress-test connected, simulating players
BTW on current built I got these controlled errores:
"[20:30:48 ERROR]: Detected setBlock in a far chunk [-126, 408], pos: BlockPos{x=-2013, y=31, z=6540}, status: minecraft:features, currently generating: ResourceKey[minecraft:worldgen/placed_feature / minecraft...
I am not quite sure what causes it. I can't seem to reproduce it when setting the seed manually in the server.properties.
9bd857d Undo making JavaPlugin#logger field public (se... - jpenilla
I can only see this happening if you have a plugin used the regenerate chunk API. Is this the case?
Hi Leaf, I don't have any plugins generating chunks. This test ran with minecraft-stress-test connected, simulating players
BTW on current built I got these controlled errores: "[20:30:48 ERROR]: Detected setBlock in a far chunk [-126, 408], pos: BlockPos{x=-2013, y=31, z=6540}, status: minecraft:features, currently generating: ResourceKey[minecraft:worldgen/placed_feature / m...
[PaperMC/Folia] branch deleted: logger\-field
This branch seems stable enough for Folia, so I'll merge it now.
31b5b15 Use coordinate-based locking to increase chunk ... - Spottedleaf
[PaperMC/Folia] branch deleted: dev/locking
I can verify that this issue exists on Paper but is limited due to the max login count. This is why it cannot be produced on Paper. It probably can happen on Vanilla as well.
I will solve this by using CHM.
Stack trace
[19:54:33 INFO]: vodaept[/test:57686] logged in with entity id 1733 at ([world]937238.162192892, 117.75, 781957.1901814165)
[19:54:33 ERROR]: Thread Netty Epoll Server IO #4 failed main thread check: Cannot read world asynchronously
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:57) ~[folia-1.19.4.jar:?]
at org.bukkit.craftbukkit.v1_19_R3.block.CraftBlock.getNMS(CraftBlock.java:86) ~[folia-1.19.4.jar:?]
...
@Spottedleaf it bug by Folia or plugin?
A plugin tried to read block data while on the Netty IO thread. The reason this is unsafe is because the chunk may not be loaded, and so it could cause a sync chunk load - which would hold up networking.
Unable to produce locally, are you still able to produce this? Also; please verify that the random tick speed is set to 3 via the gamerule command.
Stack trace
[22:07:24] [Region Scheduler Thread #0/INFO]: Bot36 left the game
[22:07:24] [Region Scheduler Thread #0/INFO]: Bot14 lost connection: Disconnected
[22:07:24] [Region Scheduler Thread #0/INFO]: Bot14 left the game
[22:07:24] [Region Scheduler Thread #0/INFO]: Bot4 lost connection: Disconnected
[22:07:24] [Region Scheduler Thread #0/INFO]: Bot4 left the game
5 minuts after clients disconnected and Folia on fire at 75% CPU
Started dump - "jmap -dump:file=ff.bin 13096...
I have reviewed the stacktrace again only to find that the line number on ImposterProtoChunk does not match what it should. It looks like the diff I inserted there to prevent this crash is not on your Folia build, even though the commit # indicates it should be. Can you re-run applyPatches, and make a new build and test again?
Might have missed a step in the built, anyway the last built from this branch did not produce any problems besides the one I last posted, all controlled.
22085ea Properly cancel chunk load tasks that were not ... - Spottedleaf
94b1400 Optimise recalcBlockCounts() for empty sections - Spottedleaf
1128810 Always recalculate light list on protochunk des... - Spottedleaf
ed61eb3 Fix infinite loop in ChunkBasedPriorityTask#queue - Spottedleaf
f15f1ce Fix some bugs in ThreadedTicketLevelPropagator - Spottedleaf
Your server does not have enough memory to keep up with whatever stress test you're running.
I noticed some problems locally, but these are not caused by Folia but are fixed on latest master. If it doesn't resolve your issue, you need more memory or you need to tune things like view distance / simulation disstance to reduce chunk loading/unloading.
Thank you so much for the feedback!
I apologize for the previously incorrectly formatted code. I believe that I have made the changes requested.
Your server does not have enough memory to keep up with whatever stress test you're running.
I noticed some problems locally, but these are not caused by Folia but are fixed on latest master. If it doesn't resolve your issue, you need more memory or you need to tune things like view distance / simulation disstance to reduce chunk loading/unloading.
I will not try to refute the lack of memory on it, did it to force this situation reported that I had seen before in a situation with ...
- Seems to happen even if the player don't move, only on mob spawning
- Only affect 1 single player
Expected behavior
沙子等落到火把上会变成掉落物
Observed/Actual behavior
如标题所写,沙子等物品掉落到火把或者半如标题所写,沙子等物品掉落到火砖等上面会直接消失,而不是变成掉落物
Steps/models to reproduce
随便放一个火把,在火把上方高处放一个沙子让它掉落到火把上
Plugin and Datapack List
Folia version
Other
No response
Please reproduce your issue with no plugin installed.
请在未安装插件的情况下嘗試重现您的问题。
This is very likely caused by a plugin not Folia itself.
这很有可能是由插件而非 Folia 本身造成的。
Stack trace
https://paste.gg/p/anonymous/db8a584ccceb42499608c1e40518dc75
Caused by plugin join event (see below)
Plugin and Datapack List
My own plugin
Actions to reproduce (if known)
No response
Folia version
[01:11:05 INFO]: This server is running Folia version git-Folia-"be3c9e5" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: be3c9e5)
You are ...
To prevent a player from joining, cancel/set the appropriate result in the PlayerLoginEvent, Join is too late for preventing it but too early to kick
That's pretty weird because I tried on the latest and even on the version this issue was created and I haven't been able to reproduce it either. Yet I'm sure it was happening and I didn't touched the random tick speed, other people were able to reproduce the bug at the time, maybe they could help?
While testing this, if the world for any reason was to be unloaded then the players inside the world, they would get "soft locked". the server completely breaks as the players is attempted to be removed on join but fails and in doing so the server freaks out and breaks the commands and much more. "java.lang.IllegalStateException: Player is already removed from player chunk loader".
Best way i found a fix around it was leave the world offline and when the player rejoins after a restart then...
While testing this, if the world for any reason was to be unloaded then the players inside the world, they would get "soft locked". the server completely breaks as the players is attempted to be removed on join but fails and in doing so the server freaks out and breaks the commands and much more. "java.lang.IllegalStateException: Player is already removed from player chunk loader".
Best way i found a fix around it was leave the world offline and when the player rejoins after a restar...
if they went there while unloading then yes, that's something i work on right now (but didn't happen on testings)
this is how im unloading worlds, currently if the owner of the world leaves then the players are removed from the world, but if a random player leaves then they will glitch into a broken state. i have also included the method on how i am sending players to the worlds.
Maybe only load/generate worlds before players can join?
Seems like the safest for now
The issue probably also occurs with the
minecraft:reloadcommand. So if you just wanted to remove it, you'd want to remove both.
Will there be a replacement for it with the same behaviour (datapacks reloading)?
I confirm this still occur on latest master.
Error when using .teleportAsync to teleport someone to another world:
https://paste.gg/p/anonymous/f56e4421299a4456aee05bad603afc97
Expected behavior
On Paper Slime chunk
On Paper Swamp chunk
On Paper Nether Fortress Chunk
Observed/Actual behavior
On Folia slime chu...
On latest master. Sometimes happens
[12:36:44] [Region Scheduler Thread #4/INFO]: alan_banan228 tried to swim in lava
[12:36:47] [Region Scheduler Thread #4/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #5637 centered at chunk [-12, -27] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1698) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
at net.mine...
It seems that the enderpearl go through the portal but since the area isn't loaded, it doesn't trigger any teleportation
Expected behavior
according to the wiki https://minecraft.fandom.com/zh/wiki/下界传送门?so=search
Most entities can teleport through Nether Portals, including various creatures (except Withers and Ender Dragons), ships, minecarts, projectiles, and item entities, but if one creature rides the other, neither creature can pass through the portal. Since only the player can make a portal spawn in another dimension, none of the entities mentioned above can...
Expected behavior
Bukkit.getWorld() is supposed to return a World object
Observed/Actual behavior
On server init Bukkit.getWorld returns null
Steps/models to reproduce
On init try to get Bukkit.getWorld, or just plugin#getConfig#getLocation and World always equals null
` Location location = new Location(Bukkit.getWorld("world"), x, y, z, yaw, pitch);
System.out.println(location);
`
[10:22:19 INFO]: Location{world=null,x=-16.5,y=71.1,z=28.5,p...
Where on server init are you doing that? We need minimal reproduction code, as 99% chance you're causing stuff to be initialized before the worlds are loaded
Stack trace
[19:33:51] [Region Scheduler Thread #5/INFO]: JEPXWE issued server command: a nanfeng_123
[19:33:53] [Region Scheduler Thread #4/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #1675 centered at chunk [58, -202] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1698) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
at net.minecraft.server.dedica...
I report this problem to the author who developed a plugin called HuskHomes which can use'/tpa or /back'
https://github.com/WiIIiam278/HuskHomes2/issues/424
He asked me to report this issue to you.
And when player enter the nether portal, it occurs too.
[21:21:11] [Region Scheduler Thread #12/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #4909 centered at chunk [53, 28] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1698) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.j...
when starting the plugin, I take the locations from the config and put them in the hashmap, I don't know how it looks with other devs, but I've always done it on paper, do you have an idea how to replace it, or is there any ServerFullyLoadedEvent that I can use instead
Here's code, obviously i changed world to null due to this
`public RandomTeleport() {
for (String key : yamlData.getConfig().getConfigurationSection("tp").getKeys(false)) {
double x = yamlData.ge...
Is your feature request related to a problem?
My expertise is not kotlin or java, and I can't work with gradle and maven to compile the codes
Describe the solution you'd like.
If you can, like PaperMC, release the release earlier
Describe alternatives you've considered.
Or If you can, in the readme or document section, give a guide to compile the codes
Other
Most likely many people like me have this problem I would really appreciate it if you could give me more advice...
https://github.com/PaperMC/Paper/blob/master/README.md#how-to-compiling-jar-from-source
For this, you need Linux or another package, because when I run gradlew applyPatches in CMD, it gives me this error
Folia is still in active development and builds are not available yet. There are guidelines to building it but if you need help you’d have to join the Paper Discord. Please do not create Github issues or comments for this kind of support stuff.
I’d recommend joining the Discord and reading the information about Folia there to see if it’s something you’d need or able to use. Someone there might be able to help you with building also.
[PaperMC/Folia] New branch created: ver/1\.19
[PaperMC/Folia] New branch created: dev/1\.20
Expected behavior
When Player respawnes Repsawn Event is triggerd.
Observed/Actual behavior
When Player respawnes Repsawn Event not is triggerd.
Steps/models to reproduce
Register event listener, and have a listener for PlayerRespawnEvent
Plugin and Datapack List
Just a plugin to test the Respawn Event
Folia version
This server is running Folia version git-Folia-17 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: ca3b7ad on HEAD)
You are 22 vers...
Well missed the broken api menshion
Is your feature request related to a problem?
The problem is that the meaning of the spawned mob, if next to him is not a player, also without this patch does not work farms mobs
Describe the solution you'd like.
Add a patch from Paper to spawn mobs per player, not per region
Describe alternatives you've considered.
nope
Other
No response
@William278 Paperlib.asyncTeleport or player.asyncTeleport ?
PaperLib.
I should note, this worked last time I tested it (at least with my plugin?) :)
Possibly related to https://github.com/PaperMC/Folia/issues/45, if this occurs on 1.20 I can re-open
Expected behavior
no crash
Observed/Actual behavior
Steps/models to reproduce
This problem occurs when I open a 1.19.4 archive and use TP
Plugin and Datapack List
plugins
[16:55:48 INFO]: Server Plugins (20):
[16:55:48 INFO]: Bukkit Plugins:
[16:55:48 INFO]: - AnCDK, ArmorStandEditor, Chunky, ColoredAnvils, CoreProtect, CreeperConfetti, DeathMessage, Essentials, EssentialsChat, FreedomChat
[16:55:48 INFO]: GSit, InvSeePlusPlus, Kaii...
diff --git a/patches/server/0014-Block-reading-in-world-tile-entities-on-worldgen-thr.patch b/patches/server/0014-Block-reading-in-world-tile-entities-on-worldgen-thr.patch
index 2ba6b8f..8096f4a 100644
--- a/patches/server/0014-Block-reading-in-world-tile-entities-on-worldgen-thr.patch
+++ b/patches/server/0014-Block-reading-in-world-tile-entities-on-worldgen-thr.patch
@@ -7,7 +7,7 @@ The returned TE may be in the world, in which case it is unsafe
for the current thread to mod...
Stack trace
paste your stack trace or a paste.gg link here!
https://paste.gg/p/anonymous/a2f36906cb034da98d65e6a19067be58
Plugin and Datapack List
none
Actions to reproduce (if known)
Server crashes shortly after players load new chunks
Folia version
11.06 01:06:46 [Server] INFO This server is running Folia version git-Folia-"9b2ffd0" (MC: 1.20) (Implementing API version 1.20-R0.1-SNAPSHOT)...
still occur
[09:29:05 ERROR]: Thread Region Scheduler Thread #2 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.jar:git-Folia-"9dcd6c2"]
at net.minecraft.world.entity.Entity.setRemoved(Entity.java:5466) ~[folia-1.20.jar:git-Folia-"9dcd6c2"]
at io.papermc.paper.world.ChunkEntitySlices.unload(ChunkEntitySlices.java:122) ~[folia-1.20.jar:git-Folia-"...
That error is different to the one reported here.
i will create new issue thanks
Expected behavior
no crash like folia-1.19.4
Observed/Actual behavior
Steps/models to reproduce
just tp around
Plugin and Datapack List
plugins
[09:50:18 INFO]: Server Plugins (19):
[09:50:18 INFO]: Bukkit Plugins:
[09:50:18 INFO]: - AnCDK, ArmorStandEditor, Chunky, ColoredAnvils, CoreProtect, CreeperConfetti, DeathMessage, Essentials, EssentialsChat, GSit
[09:50:18 INFO]: InvSeePlusPlus, Kaiivoid, LuckPerms, NoFlightInEnd, PistonMO...
The paste link is invalid
another person in Discord
https://mclo.gs/hdl0hJc
My apologies, heres the correct one
https://paste.gg/p/anonymous/e89229d00fd64b6c868de24e613427ed
Can reproduce when a player unload a chunk.
Stack trace
paste your stack trace or a paste.gg link here!
Plugin and Datapack List
- AutoPay, BetterBoard, BetterEconomy, BetterRTP, BisectHosting-Folia, ChatFilter, Chunky, ClansLite, CrownSteal, DeluxeMenus, DisableBreeding, DiscordSRV, ElytraSpeed, EpicHomes, FastAsyncWorldEdit, floodgate, Geyser-Spigot, GlobalTrackedMaps, IllegalStack, LuckPerms
NoCheatPlus, PL-Hide, PlaceholderAPI, PlayerBountiesPlus, PlugManX, ProtocolLib, RedLimiterRelo...
Can you reproduce this without any plugins?
If you're encountering errors like this the first step is to eliminate plugins as a possible culprit. Remove plugins and reproduce the issue.
If you can't reproduce the issue: then start adding plugins until it happens - that plugin is probably the problem.
If you can reproduce the issue: post that newer error log.
like issue #90 and #91 'comment paste
It does occur on 1.20. Happened to me too
It does occur on 1.20. Happened to me too
nop please look #91 #90 #92
What do you mean nope? It literally happened to me and I was the one that gave you the paste for 91
What do you mean nope? It literally happened to me and I was the one that gave you the paste for 91
this issue was the different between #91
Thread Region Scheduler Thread #4 failed main thread check: Cannot remove entity off-main
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[kaiiju-1.20.jar:git-Kaiiju-"21321ab"]
at net.minecraft.world.entity.Entity.setRemoved(Entity.java:5477) ~[kaiiju-1.20.jar:git-Kaiiju-"21321ab"]
at io.papermc.paper.world.ChunkEntitySlices.unload(ChunkEntitySlices.java:122) ~[kaiiju-1.20.jar:git-Kaiiju-"21321ab"]
at io.papermc.paper.chunk.system....
Oh ok sorry. I thought it was the same because it also happened when I was teleporting
[09:43:15] [Region Scheduler Thread #1/ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Cannot unload entity section off-main
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.20.jar:git-Folia-"9b2ffd0"]
at io.papermc.paper.chunk.system.entity.EntityLookup.entitySectionUnload(EntityLookup.java:702) ~[folia-1.20.jar:git-Folia-"9b2ffd0"]
at io.papermc.paper.chunk.system.scheduling.NewChunkHolder.unloadStage2(Ne...
42c51aa Fix processUnloads trying to unload for all reg... - jpenilla
[PaperMC/Folia] New branch created: fix\-91
23b6f9e Fix processUnloads trying to unload for all reg... - jpenilla
[PaperMC/Folia] branch deleted: fix\-91
Can you add full debug info with that error message? In the same place in code, what you need to know? (Or maybe I can add in my local version.)
Player positions, players in regions, region positions, region sizes, latest switches players between regions,
regions by threads, chunk loads by threads/regions/players ...
What we can add easily(or not) to debug this case?
Who knows how to simulate low speed chunks loading for local players?
Stack trace
paste your stack trace or a paste.gg link here!
https://paste.gg/p/anonymous/bf31d18df645442eb16cbcddc10b8450
Plugin and Datapack List
No Plugins
Actions to reproduce (if known)
Walking in/out of a nether portal in survival mode (creative mode works fine)
Folia version
ver
[20:35:29 INFO]: Checking version, please wait...
[20:35:29 INFO]: This server is running Folia version git-Folia-"23b6f9e" (MC: 1.20) (Implementing API version 1.20-R0....
https://pastes.dev/a5En20k1s0
could reproduce in latest ver
[09:09:18 INFO]: Checking version, please wait...
[09:09:20 INFO]: This server is running Folia version git-Folia-"02c651d" (MC: 1.20) (Implementing API version 1.20-R0.1-SNAPSHOT) (Git: 02c651d on dev/1.20)
Error obtaining version information
[09:08:18] [Region Scheduler Thread #6/ERROR]: Thread Region Scheduler Thread #6 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.jar:git-Folia-"23b6f9e"]
at net.minecraft.server.level.ServerChunkCache.getChunkFutureMainThread(ServerChunkCache.java:311) ~[?:?]
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:239) ~[?:?]
at net.minecraft....
could reproduce in 1.20 Laster ver
version
[09:19:54 INFO]: Checking version, please wait...
[09:19:55 INFO]: This server is running Folia version git-Folia-"02c651d" (MC: 1.20) (Implementing API version 1.20-R0.1-SNAPSHOT) (Git: 02c651d on dev/1.20)
reproduce step
1.create a none-activated neither portal
2.throw entities or let entity go through it
Expected behavior
like paper
:
[19:08:50 INFO]: Paper Plugins:
[19:08:50 INFO]: - HuskHomes
[19:08:50 INFO]: Bukkit Plugins:
[19:08:50 INFO]: - AmazingBot, Attollo, BBeeChecker, BlockLocker, Chunky, CodFrame, CoreProtect, EditableSigns, FoliaFlow, GreenChunk
[19:08:50 INFO]: GSit, InvSeePlusPlus, InvSeePlusPlus_Clear, InvSeePlusPlus_Give, Kaiivoid, LuckPerms, MiniMOTD, Panilla, Placehold...
[PaperMC/Folia] branch deleted: ver/1\.19
[PaperMC/Folia] New branch created: ver/1\\\.19\\\.4
[PaperMC/Folia] branch deleted: dev/1\\\.20
https://pastes.dev/yNChC3aDer
Folia version
This server is running Folia version git-Folia-"7c6e251" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: https://github.com/PaperMC/Folia/commit/7c6e2514d2ecd9f5f7db911aab29bfe7f373eb9eon dev/1.20)
Error obtaining version information
Is your feature request related to a problem?
Yes, upstream removed the cached nms chunk from craftchunk, and every call to bukkit api chunks gets the chunk every time synchronously, which is redirected into a nms method which wasn't updated by folia, so it doesn't properly check for things and throw unsupported operation exceptions.
:
[09:50:18 INFO]: Bukkit Plugins:
[09:50:18 INFO]: - AnCDK, ArmorStandEditor, Chunky, ColoredAnvils, CoreProtect, CreeperConfetti, DeathMessage, Essentials, EssentialsChat, GSit
[09:50:18 INFO]: InvSeePlusPlus, ...
Please don't post on random tickets with offtopic questions, use the discord for support related stuff
In the Folia, the PlayerTeleportEvent is not triggered when entity.teleportAsync is called. This patch reinstates the triggering of PlayerTeleportEvent.
that should be part of the patch that adds the todo
This line might have been forgotten
Stack trace
My first shutdown after a week on Folia 1.20
https://paste.gg/p/anonymous/a764b78940154c6a801b4c8df7587a51
Plugin and Datapack List
[20:06:56 INFO]: Server Plugins (36):
[20:06:56 INFO]: Bukkit Plugins:
[20:06:56 INFO]: - AntiLavaCastM, AntiLogoutM, AntiNetherRoofM, AntiRaidFarmM, AppleCraftSpawn, AuctionHouseM, AuthMe, BedSpawn, BestTop, BetterRTP
[20:06:56 INFO]: ChatManager, ClanSystem, CommandWhitelist, CoreProtect, DecentHolograms, DiscordCommand, FarmC...
Expected behavior
I expected to get coordinates from chunk to chunk
Observed/Actual behavior
From Chunk return null
Steps/models to reproduce
in listener onPlayerMove try to get from chunk and to chunk
Plugin and Datapack List
Folia version
Other
No response
Refactored the fix for triggering PlayerTeleportEvent, integrating it into an existing patch instead of creating a new one.
Stack trace
[paste your stack trace or a paste.gg link here!](https://paste.gg/p/anonymous/d80c1290e4bc419e9342701f4874185c)
Plugin and Datapack List
Actions to reproduce (if known)
I do not know what it is, but the server often crashes because of it
Folia version
...
Please don't report Kaiiju crashes on Folia tracker. + That log is a crash that occurred on git-Paper-45
Strange, I had the same crash but with paper.
https://nekobin.com/davabijuqo
Expected behavior
https://medal.tv/games/minecraft/clips/1bJQaiVyOSMep2/d1337SMY4Bzd?invite=cr-MSxwQUIsMTg3MTY5MDgxLA
Observed/Actual behavior
https://medal.tv/games/minecraft/clips/1bJQaiVyOSMep2/d1337SMY4Bzd?invite=cr-MSxwQUIsMTg3MTY5MDgxLA
Steps/models to reproduce
https://medal.tv/games/minecraft/clips/1bJQaiVyOSMep2/d1337SMY4Bzd?invite=cr-MSxwQUIsMTg3MTY5MDgxLA
Plugin and Datapack List
no
Folia version
latest
Other
No response
The video is 25 days old, don't you have a recent one?
The video is 25 days old, don't you have a recent one?
same issues for 25.06.2023
The video is 25 days old, don't you have a recent one?
This is not my video, but it happened on my server. I looked on one discord server for mentions of it and found this video there and just added it here
Is your feature request related to a problem?
player.teleportAsync(location) - this method to teleport player (x,y,z) but not set yaw and pitch. What can do?
Describe the solution you'd like.
Describe alternatives you've considered.
Other
No response
I think it is intended that's why i didn't created a pr
Stack trace
[07:29:52] [Region Scheduler Thread #1/ERROR]: [io.papermc.paper.threadedregions.ThreadedRegionizer] Failed to acquire region ThreadedRegion{state=2,sectionCount=60,sections=[RegionSection{sectionCoordinate=[0, 0],chunkCount=187,chunksBitset=7fff7fff7fff7fff7fff7fff7fff7fff1fff1fff1fff7fff0000000000001fff,nonEmptyNeighbours=4,hash=89858455},RegionSection{sectionCoordinate=[-5, -3],chunkCount=0,chunksBitset=0000000000000000000000000000000000000000000000000000000000000000,...
Can you post more of the log? Do you have more info on what was happening to reproduce this?
How many cores do you have?
JVM parameter:
/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms32768M -Xmx32768M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:S...
Is your feature request related to a problem?
@EventHandler
public void onPlayerRespawn(PlayerRespawnEvent event) {
event.getPlayer().sendMessage(ChatColor.GREEN + "PlayerRespawnEvent executed");
}
@EventHandler
public void onPlayerTeleport(PlayerTeleportEvent event) {
event.getPlayer().sendMessage(ChatColor.GREEN + "PlayerTeleportEvent executed");
}
Describe the solution you'd like.
I did not receive any message in the chat, followi...
Did you register the events?
yes, I have other events, and they are in the 1st class, they work, but these do not
Those events aren't called by Folia, the API will be completed someday
Thank you, but what should I do to invent an analogue or wait?
I figured out how to get around this (PlayerRespawnEvent event)
Map<String, ScheduledTask> playerTasks = new HashMap<>();
@EventHandler
public void onEntityDeath(EntityDeathEvent event) {
if (event.getEntity().getType() == EntityType.PLAYER) {
ScheduledTask task = new FoliaTaskScheduler(plugin).runRepeating(player, () -> {
if (player.getHealth() != 0) {
//////////////////////////////////// Example ///////...
I don't understand how this crash could occur. I've made a fix in this area, but I don't think it is likely to have resolved the original issue. Can you update at least and see if it still occurs?
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.
Stack trace
[20:27:15] [Region Scheduler Thread #0/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #1545 centered at chunk [-958, -1] in world 'world' failed to tick:
[paste your stack trace or a paste.gg link here!](https://mclo.gs/aSrPK5Q)
Plugin and Datapack List
[04:14:51 INFO]: Server Plugins (12):
[04:14:51 INFO]: Bukkit Plugins:
[04:14:51 INFO]: - AnarchyExploitFixes, *BetterWorldStats, KillCommand, LuckPerms, NeroChat, NoCheatPlus, Pl...
@ImNotSoftik Closing this because it's not Folia, but a fork of Folia.
If you can reproduce this on Folia please re-post it and post more of the stack trace.
Exactly the same problem and very often
801cff1 Re-add dropped thread check for retrieving fall... - Spottedleaf
OK, I will run 3 day ~ 1 week to test.
Expected behavior
The player position should sync correctly,
Observed/Actual behavior
The player position should isn't synced correctly. You can't punch or do anything outside of the range.
Steps/models to reproduce
Need 2 players to join the server and the player will be desync
Plugin and Datapack List
A clean world with No plugins or Datapacks
Folia version
This server is running Folia version git-Folia-"801cff1" (MC: 1.20.1) (Implementing API version 1.20.1-R...
Expected behavior
players can login
Observed/Actual behavior
players cannot login, /tps show 100% util , mspt 1000+ and 20TPS for certain region
players inside the region (if they have already login before this problem happened) cannot leave the region, cannot interact with the region's block(break no drop item), is like the server is lagging, but server list show that they are online, commands can affect them but cannot teleport them away from the region
);
Other entities should be teleported to Vec3.atBottomCenterOf(targetPos);
And end-teleportation keep velocity (this.getDeltaMovement)
Spawning structures that contains spiders can cause crash if mobeffectlist != null
Expected behavior
Does not work revival button + funny animation respawn
Observed/Actual behavior
Steps/models to reproduce
Plugin and Datapack List
[01:39:15 INFO]: Server Plugins (12):
[01:39:15 INFO]: Bukkit Plugins:
[01:39:15 INFO]: - AnarchyExploitFixes, *BetterWorldStats, KillCommand, LuckPerms, NeroChat, NoCheatPlus, PlasmoVoice, ProtocolLib, TAB, Vault
[01:39:15 INFO]: ViaBackwards, ViaVersion
###...
It is reproductible without any anti cheat plugin ?
Trt to reproduce w/o plugins and on the latest commit 801cff15700625f5ab45c16fc5061b8db101feb0
Please send a spark profiler report, there is no context at all & the /version is sus
where can I get folia version of spark?
not working currently for 1.20.1
You can compile this :
https://github.com/kugge/spark/tree/feat/folia
If the jar above don't work.
Your jar doesn't work either
Is your feature request related to a problem?
When we can teleport player to another world (location) without crash?
Describe the solution you'd like.
none
Describe alternatives you've considered.
none
Other
No response
Stack trace
https://paste.gg/p/anonymous/5d1ff27978c1412d818f2f21067f4ee6
Plugin and Datapack List
[15:50:52 INFO]: Server Plugins (31):
[15:50:52 INFO]: Paper Plugins:
[15:50:52 INFO]: - HuskHomes
[15:50:52 INFO]: Bukkit Plugins:
[15:50:52 INFO]: - AmazingBot, Attollo, BBeeChecker, BetterRTP, BlockLocker, Chunky, CodFrame, CoreProtect, FastAsyncWorldEdit, FoliaFlow
[15:50:52 INFO]: FreedomChat, GreenChunk, GSit, InvSeePlusPlus, InvSeePlusPlus_Clear, InvSeePlusPlus_Give, ...
Closing this because it is a fork of Folia, not Folia.
If you can reproduce it on Folia please do so and create a new issue.
Expected behavior
dont crash
Observed/Actual behavior
[12:53:46] [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.1.jar:git-Folia-"302d7b7"]
at io.papermc.paper.chunk.system.entity.EntityLookup.moveEntity(EntityLookup.java:500) ~[folia-1.20.1.jar:git-Folia-"302d7b7"]
at io.papermc.paper.chun...
This crash was found by the players. They throw the pearl into the water and leave the region. After the pearl activate and the server crashes, but I tried to repeat it and I failed, but all 10 crashes I got pointed me to chunks with ender pearls
d1c9e63 Use teleportAsync for handling cancelled move e... - Spottedleaf
eb22317 Only update time for local players in time upda... - Spottedleaf
Please re-open this issue with more details, including the crash logs.
While it is a solution, it is better to resolve this issue by avoiding the thread check to minimize behavior differences.
See 6e317fd38a0ddf1ea373734564efb5e2d1e1bb02
Without the issues I laid out being resolved I'm going to close this PR.
6b978f2 Add Yaw and Pitch to CraftEntity.teleportAsync - kugge
The teleport function is a bit more broad and includes things such as the passengers. There needs to be a way to include this information in the teleport event. This is a major issue and needs to be resolved before any events are added in this section of code.
I see that the yaw/pitch handling is entirely incorrect here as well, and there is no check for any recursive action.
The changes were done to mirror the player teleportation logic for all entities. This is why the velocity is set to zero and why they are all teleported to the bottom. Is there any reason this behavior is bad?
Expected behavior
I do /restart and if settings.restart-script in spigot.yml has a valid script, it runs the script
Observed/Actual behavior
> restart
[19:38:15 INFO]: Unknown command. Type "/help" for help.
Steps/models to reproduce
Make folia server
Do /restart
Plugin and Datapack List
None
Folia version
> version
[19:38:55 INFO]: Checking version, please wait...
[19:38:55 INFO]: This server is running Folia version git-Folia-"801cff1" (...
Settings velocity to 0 & position to platform might break some wither / snowball obsidian farms
Stack trace
java.lang.IllegalStateException: Scheduling chunk load off-main
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:72) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at net.minecraft.server.level.ServerChunkCache.getChunkFutureMainThread(ServerChunkCache.java:311) ~[?:?]
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:239) ~[?:?]
at net.minecraft.world.level.Level.getChunk(Level.java:524) ~[?:?]
at net.minecraft.world.le...
Oh, sorry, i had older folia and i have a crash server when teleport player to another world, now i tried, allright work.
Is your feature request related to a problem?
How can i create and load own custom world. Bukkit.createWorld(new WorldCreator(CUSTOM_WORLD)) is UnsupportedOperationException
Describe the solution you'd like.
Describe alternatives you've considered.
Other
No response
Creating world's is currently unsupported, please read the documentation for this project
yea this says /reload is disabled i'm talking about /restart
I get that data packs won't really work, but why is /ride disabled? seems like the approach to folia could be flawed? can Players ride things? if so, does the command system run on a thread that can't ask other threads to do things?
Commands which mutate world state need to be updated to mutate world state correctly for the barriers
It has been running continuously for 4 days without this error.
The error has been fixed!
so it is a TODO not a won't work
/restart isn't on the roadmap for Folia. That might change someday in the future but for now closing this as not planned/won't fix.
Expected behavior
no fire (paper):
https://i.imgur.com/VUWVkM9.mp4
Observed/Actual behavior
catch fire (folia):
https://i.imgur.com/hPO7pB2.mp4
Steps/models to reproduce
Riding Strider, then walking on lava.
Plugin and Datapack List
none
Folia version
[12:48:27 INFO]: This server is running Folia version git-Folia-"6b978f2" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 6b978f2)
You are r...
seems like is a problem caused by residence https://github.com/Folium-MC/Residence-Maven/issues/7
however, the author of this fork version don't know how to solve it
Also no one can confirm whether this is a bug from here. But some of the error message do say it is caused by residence.
Is your feature request related to a problem?
Describe the solution you'd like.
enable SIMD on java 20
Describe alternatives you've considered.
Other
No response
Please send a spark profiler report, there is no context at all & the /version is sus
where can I get folia version of spark?
not working currently for 1.20.1
You can compile this :
https://github.com/kugge/spark/tree/feat/folia
If the jar above don't work.Your jar does...
Expected behavior
The villagers normally teleported to the Nether through the Hell Gate
Observed/Actual behavior
When destroying the minecart on which the villagers are riding, the villagers teleport from the Hell Gate to the Nether, but when the player travels to the Nether, the villagers cannot be found.
Steps/models to reproduce
I shipped several of them and this happened, but when I tried to fork it, it worked fine. I will continue to pay attention to the video as soon as...
I discovered this incident three times, but I tried many times but couldn't reproduce it, and I came to believe that it was an accident.
I discovered this incident three times, but I tried many times but couldn't reproduce it, and I came to believe that it was an accident.
I discovered this incident three times, but I tried many times but couldn't reproduce it, and I came to believe that it was an accident.
I've tried more than twenty times and still can't reproduce it, I don't think it's the core issue, I'll close the issue later.
Expected behavior
A player should not be brought back
Observed/Actual behavior
https://github.com/PaperMC/Folia/commit/d1c9e634703f9a414d5993c492fe44add90dd262
After this commit crashes disappeared, but there is a new problem. With some chance the player started to come back
https://youtu.be/hEJ9lRPYh9c
Steps/models to reproduce
Plugin and Datapack List
[06:20:55 INFO]: Server Plugins (12):
[06:20:55 INFO]: Bukkit Plugins:
[06:20:55 INFO...
It does not always return, but with some chance
Expected behavior
Normal bed animation
Observed/Actual behavior
Steps/models to reproduce
Plugin and Datapack List
[07:49:11 INFO]: Server Plugins (12):
[07:49:11 INFO]: Bukkit Plugins:
[07:49:11 INFO]: - AnarchyExploitFixes, *BetterWorldStats, *KumorioUtils, LuckPerms, NeroChat, NoCheatPlus, PlasmoVoice, ProtocolLib, TAB, Vault
[07:49:11 INFO]: ViaBackwards, ViaVersion
Folia version
Can you reproduce this with no plugins installed?
Expected behavior
Hello, On my paper server in the server.properties configuration file I have keepInventory=true enabled.
and when I die I don't lose the objects I have in my inventory
Observed/Actual behavior
In this Folia installation, even though in the server.properties configuration file I have keepInventory=true active
When it dies it does not preserve things :(
Do you have any other method to activate this feature?
I would appreciate any help you can give me.
Ste...
I don't think keepInventory ever was a server property to begin with. It's a gamerule so in order to enable it you need the /gamerule command.
Not work keep-inventory from code or set value in server.properties, but gamerule is working.
Expected behavior
Just kick player (like cancel PlayerJoinEvent)
Observed/Actual behavior
Server crash when player join server, and in PlayerJoinEvent he got kicked
Steps/models to reproduce
Kick player on PlayerJoinEvent
Plugin and Datapack List
[14:46:07 INFO]: Bukkit Plugins:
[14:46:07 INFO]: - Chunky, DecentHolograms, Essentials, JbwmLib, JbwmMarketing, LifeStealFolia, LuckPerms, NoCheatPlus, TAB, Vault
[14:46:07 INFO]: ViaBackwards, ViaVersion, WorldEdit, World...
Kicking a player in that event is pretty much unsupported and asking for issues, idk how much intent there is to keep fixing issues of people doing weird stuff in that event across the various platforms
keepInventory is a game rule that must be set for all worlds individually that you want to have it enabled for. You can use the /gamerule command to do this.
consider using one of the login events instead if you want to prevent the user from joining
Stack trace
[13:43:18 ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #1269 centered at chunk [394, -851] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1695) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
...
running server on commit 801cff1 prevents these crashes
Affects other mobs
[Region Scheduler Thread #1/ERROR]: Thread Region Scheduler Thread #1 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.1.jar:git-Folia-"6b978f2"]
at net.minecraft.server.level.ServerChunkCache.getChunkFutureMainThread(ServerChunkCache.java:311) ~[?:?]
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:239) ~[?:?]
a...
Also happens on go to hive goal
- [mer. 23:10:02 ERROR Server] Entity threw exception at world_nether:-97.87349335637828,132.06164135048164,-139.5
java.lang.IllegalStateException: Scheduling chunk load off-main
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:76)
at net.minecraft.server.level.ServerChunkCache.getChunkFutureMainThread(ServerChunkCache.java:311)
at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:239)
at...
Expected behavior
Villagers identify work blocks.
Observed/Actual behavior
When the work block is dropped in the correct position, the villagers succeed in becoming the corresponding occupation in an instant, but immediately return to the jobless state. Normal after repositioning the work block.
https://github.com/PaperMC/Folia/assets/70757024/0fe59f5c-0357-4aa8-bf5a-1c99a277497e
Steps/models to reproduce
Probabilistic triggering
Plugin and Datapack List
[Server]...
Addendum: Individual villagers need to place work blocks twice to recognize normally, but it seems that no instantaneous recognition phenomenon has been observed.
似乎是由居住Folium-MC / Residence-Maven#7引起的问题,但是,这个分叉版本的作者不知道如何解决它也没有人可以确认这是否是这里的错误。但一些错误消息确实说这是由居住引起的。
Not only is the problem of the residential plug-in, even if I remove the residential plug-in, the problem still exists, and the error is found that there may be a problem with the protoclib plug-in
Expected behavior
Observed/Actual behavior
Steps/models to reproduce
- Open a chest from a shipwreck or any structure that could hold a buried treasure map.
- The server may freeze for 5-10 seconds or for a brief 1 second. During this freeze, the buried treasure map may convert into a blank map. However, sometimes the buried treasure map appears normally.
Plugin and Datapack List
none
Folia ve...
This happens on CraftBukkit and above servers due to the move packet handler ignoring packets from sleeping players, which is intended and good behavior. However, the player position is not sync'd back to the player due to this, which means that it may appear to clients as if they can move - but they don't.
опиши проблему на русском @ImNotSoftik
I don't see anything wrong with the initialization order, as worlds are loaded before onEnable is called from what I can tell.
With only a vague reference to "server init" I don't think I can look into this, as I can't test that locally.
The TPS part is completely expected.
The treasure map will remain blank if the nearest buried treasure structure cannot be found within ~1100 blocks. You need to verify that there are no nearby buried treasures with the locate command.
Providing the world data (entity/poi/region) for the area shown in the video would be helpful.
The entity teleportation logic requires the entity to be removed from the current world. The portal logic requires that the portal search occurs asynchronously as the target region is not owned by the current thread. The end result is that in order to maintain the behavior that once an entity contacts a portal it is teleported, that the entity is first removed and then the portal search occurs. There isn't a sensible fallback to "the portal doesn't exist" other than to create it, as it does f...
Yeah I don't foresee reload being able to be implemented anytime.
I don't understand.
at 32 seconds the player was teleported with an ender purl, but he was brought back
https://youtu.be/hEJ9lRPYh9c?t=31
Providing the world data (entity/poi/region) for the area shown in the video would be helpful.
sure,I will send it tomorrow.
I don't understand.
at 32 seconds the player was teleported with an ender purl, but he was brought back https://youtu.be/hEJ9lRPYh9c?t=31
Yeah, this is the anticheat updating the move event result which teleports the player back. The anticheat is incorrectly re-positioning the player at their previous location.
Many things to express. This change implements the EntityTeleportEvent in a context thread safe way. The following are handled:
- Passengers have the event called properly
- Recursion is prevented by checking for the teleport status. Such status is revoked by overriding and chaining the teleport callback. It is manually removed when the event fails and henceforth the callback would call null, or when the entities are in the same chunk region, and hence don't call the callback.
- Teleportin...
It looks like my friend has upgraded all the classes of villagers to master, and if I encounter this problem next time, I will upload the data as soon as possible.
Expected behavior
Normal random teleportation to an uncreated chunk
Observed/Actual behavior
[02:24:37 INFO]: mani1232 issued server command: /rtp
[02:24:45 ERROR]: [ChunkTaskScheduler] Chunk system error at chunk (361,-2917), holder: NewChunkHolder{world=world, chunkX=361, chunkZ=-2917, entityChunkFromDisk=false, lastChunkCompletion={chunk_class=net.minecraft.world.level.chunk.ProtoChunk,status=minecraft:carvers}, currentGenStatus=minecraft:carvers, requestedGenStatus=minecr...
This should potentially prevent cases, where people, who don't know how to compile something, ask other people to do it and get a virus instead of the real version of Folia.
There is no need to change anything in docs, although it would be better for everyone, if you will set up build downloading same how it does Paper. But for now, it is just a shortcut and easier way to get this awesome core.
from papermc discord you can see why this is bad
folia is in development and should not be used in production, if they would want to give access to download they have a folia page on official website, but now it should only be used by developers, who would already know how to compile
That is correct, if you want to use Folia you currently have to build it yourself.
When builds are available they will be on the Paper website.
No one should be trusting prebuilt jars from other sources.
What if you do something like a command execution stack and only run the next vanilla command after the logic of the previous command is complete?
What if we do something like a command execution stack and only run the next vanilla command after the logic of the previous command is complete?
Because vanilla commands expect to be run within a global context, not a limited one
delaying execution of stuff would break behavior as now you'd have commands running across various ticks; teleport entity to Y, set flag on entity, etc, etc, would be spread across ticks and cause many dozens of issues.
Command functions are also generally replacable using plugins which offers a much more performant solution and allows them to deal with those issues on their own, as they won't need to del...
@Spottedleaf If you ever get time to discuss this proposal lmk. I’d love to put more effort into it, although I’d like to preferably see some sort of proper nod up so my efforts don’t end up being trashed yknow :)
They may ask you to follow paper conventions (dont change nms file imports & proper comments)
Is your feature request related to a problem?
When i will teleport player with armorstand to location, then i will get exception (java.lang.IllegalStateException: Accessing entity state off owning region's thread)
How i can fix that?
log:
[HawkTab] Location task for HawkTab v1.0.0 in world CraftWorld{name=world} at -1, -1 generated an exception
java.lang.IllegalStateException: Accessing entity state off owning region's thread
at io.papermc.paper.util.TickThread.ensureTickT...
No code for us to say anything useful here, but, if you teleport an entity to somewhere else, you wanna modify it after its teleported, i.e. by using the future teleportAsync returns
Not need code, i want to hear what can this call. Thanks
У нас нет кода, чтобы сказать здесь что-то полезное, но, если вы телепортируете сущность куда-то еще, вы хотите изменить ее после того, как она телепортируется, т.е. с помощью будущего телепортаАсинхронные возвращаются
They may ask you to follow paper conventions (dont change nms file imports & proper comments)
Duly noted, will make the appropriate changes to follow these
Profile link
http://1.15.172.154/config.zip
Description of issue
device:
CPU : AMD r9 7950x 16core 32thread
RAM : ddr5 c40 64g
Network: 100Mbps Upload
SSD:INTEL P4510 2T
[18:59:46 INFO]: Server Health Report
- Online Players: 172
- Total regions: 74
- Utilisation: 1,088.9% / 2,400.0%
- Load rate: 297.27, Gen rate: 0.60
- Lowest Region TPS: 11.22
- Median Region TPS: 12.29
- Highest Region TPS: 16.15
Highest 3 utilisation regions - Region around block [w:'world...
That's not folia, nor is this the place for support
Is it actual problem now or it was fixed?
Also happens with players if they enter the portal at the same time.
Is your feature request related to a problem?
Yes, I need to load worlds on startup from my plugin
Describe the solution you'd like.
Implement the current Bukkit API instead of throwing an exception
Describe alternatives you've considered.
- Patch folia and hardcode the worlds I need
- Not to use folia
Other
Thre's been a PR on this subject, but it was closed. I didn't find any issue tracking this matter.
Is your feature request related to a problem?
add /worldborder command please!
Describe the solution you'd like.
add /worldborder command please!
Describe alternatives you've considered.
add /worldborder command please!
Other
No response
Expected behavior
When I turned on the music record and the players were standing nearby - I killed one of them and he left our chunk, but then I broke the player with music and teleported him to us - his music was still playing, although the player was gone.
Observed/Actual behavior
When I turned on the music record and the players were standing nearby - I killed one of them and he left our chunk, but then I broke the player with music and teleported him to us - his music was stil...
I'm waiting too fix world API create/load
This is how vanilla works, if the player isn't nearby, the jukebox won't
stop the sound for them
On Fri, 21 Jul 2023, 10:53 GitJhopa, @.***> wrote:
Expected behavior
When I turned on the music record and the players were standing nearby - I
killed one of them and he left our chunk, but then I broke the player with
music and teleported him to us - his music was still playing, although the
player was gone.
Observed/Actual behaviorWhen I turned on the musi...
guys i think they want world border command
u need use packet world border
Expected behavior
Join player
Observed/Actual behavior
New player can not log in and in the console very many errors, as well as these errors are not saved in /logs
Only this saved logs
latest (2).log
Steps/models to reproduce
I don't know how it happened, but if you delete the broken world then everything works fine (if you run the broken world on paper it works fine)
Plugin and Datapack List
Tested ...
Please reproduce this on Folia and post a log. We do not and will not ever support forks of Folia.
Please reproduce this on Folia and post a log. We do not and will not ever support forks of Folia.
Yes but im test it with Folia
And it dont save logs
Read pls full bugreport
Expected behavior
Normal player first join
Observed/Actual behavior
message.txt
This error and timed out kick
Steps/models to reproduce
I do not know how to repeat it, it is connected precisely with my world (on paper it works fine)
Plugin and Datapack List
Tested with and without plugins
Folia version
Tested with paper, Folia and Kaiju
Works fine only on paper
All cores on latest versions
...
im create new world and move from old world region and playerdata folders, it works fine (with same seed)
Are you using any kind of custom world generation? I got the same error when trying to join a new player to a world without any blocks at all, then it just got stuck in a loop of seeking the safe location to spawn them on and stack overflowed, because there was none. Solved by adding a single block to the world. Not sure if your use case is similar
Are you using any kind of custom world generation? I got the same error when trying to join a new player to a world without any blocks at all, then it just got stuck in a loop of seeking the safe location to spawn them on and stack overflowed, because there was none. Solved by adding a single block to the world. Not sure if your use case is similar
No, im not use custom world generator
upload the world so we can reproduce
I think it's very important that if you are going to create a large PR that you do not write anything before having the concepts approved beforehand, as it is easiest to change things in design rather than in code. As it stands, the design concepts in this PR would not have been approved, which would have saved you a lot of effort on your part.
The reason the events for teleportation/spawning/other are absent is because the required implementation is requires an entirely different even...
@Spottedleaf i have the same issues on 6b6t server with folia
Is your feature request related to a problem?
support 1.20
Describe the solution you'd like.
support 1.20
Describe alternatives you've considered.
support 1.20
Other
1.20 has released for almost 2months!
Put folia on a 2b2t today and they have the exact same problem
i report this again . just ignoring devs.
Expected behavior
just see screenshot
Observed/Actual behavior
not my client issues, i see many people's report on 2b2t and my test server
Steps/models to reproduce
spam ...
3cf16ee Reset player before running place logic - Spottedleaf
Resolved by https://github.com/PaperMC/Folia/commit/3cf16eeaf2e9c2346b9825900e5eaab376654c36
I was not able to produce this issue locally. If you run a server that has this issue, you need to help out by debugging, as sometimes there are variables that occur on these servers that I can't introduce myself locally easily or that I'm not even aware of.
Stack trace
https://paste.gg/p/anonymous/00fa2d231fac42bfa4ee0c6901f22810
Plugin and Datapack List
No
Actions to reproduce (if known)
I moved the region file from 1.12.2 to 1.20.1 to another location and got this crash, however when I move the 1.20.1 region to another location this does not happen
Folia version
[17:46:52 INFO]: This server is running Folia version git-Folia-"3cf16ee" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 3cf16ee)
Other
...
more
[io.papermc.paper.threadedregions.TickRegionScheduler] Region #5 centered at chunk [coords, -coords] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1695) ~[folia-1.20.1.jar:git-folia-"1189edd"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:463) ~[folia-1.20.1.jar:git-folia-"1189edd"]
at net.minecraft.server.MinecraftServer.tic...
Does it works on paper ?
there's no problem on the last folia
Is your feature request related to a problem?
No
Describe the solution you'd like.
getTps(player) will return the player's tps in his region
Describe alternatives you've considered.
Describe alternatives you've considered.
Other
No response
Are you sure you're running build 3cf16ee?
The error in your log is a different git commit of "1189edd".
Stack trace
https://paste.gg/p/anonymous/d62cc22d4f6d488698b5b3d67b80544d
Plugin and Datapack List
no
Actions to reproduce (if known)
I moved the region file from 1.12.2 to 1.20.1 to another location and got this crash, however when I move the 1.20.1 region to another location this does not happen
Folia version
https://github.com/PaperMC/Folia/commit/9ae65d1b3e4f23e46fb65546276ff091ffeac951
Other
No response
Now when I go to the account that is there the server instantly shuts down
Just to clarify, are you saying that you moved the chunks from one part of
the world to another?
On Wed, 9 Aug 2023, 03:18 kumorio, @.***> wrote:
Now when I go to the account that is there the server instantly shuts down
—
Reply to this email directly, view it on GitHub
https://github.com/PaperMC/Folia/issues/143#issuecomment-1670556740, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJMAZHJHX3A6YP5IQGEFHTXULXONANCNFSM6AAAAAA3JJ2UWE
....
No, I moved an entire region to different coordinates
Just to clarify, are you saying that you moved the chunks from one part of the world to another?
…
On Wed, 9 Aug 2023, 03:18 kumorio, @.***> wrote: Now when I go to the account that is there the server instantly shuts down — Reply to this email directly, view it on GitHub <#143 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJMAZHJHX3A6YP5IQGEFHTXULXONANCNFSM6AAAAAA3JJ2UWE...
So, yes.
I'd imagine that that is the very issue, the chunks are pointing to block
locations out of the region and thus blowing up as it tries to schedule
ticks for them as part of the upgrade logic.
On Wed, 9 Aug 2023, 03:37 kumorio, @.***> wrote:
No, I moved an entire region to different coordinates
—
Reply to this email directly, view it on GitHub
https://github.com/PaperMC/Folia/issues/143#issuecomment-1670567939, or
unsubscribe
<https://github.com/not...
So, yes. I'd imagine that that is the very issue, the chunks are pointing to block locations out of the region and thus blowing up as it tries to schedule ticks for them as part of the upgrade logic.
…
On Wed, 9 Aug 2023, 03:37 kumorio, @.***> wrote: No, I moved an entire region to different coordinates — Reply to this email directly, view it on GitHub <#143 (comment)>, or unsubscribe <https://github.com...
Yes, because the chunk contains data which is related to the location in
the world, so when stuff falls out of bound, it blows up, 100% as expected
Paper also saves the position of the chunk to prevent an old bug where
chunks would end up being relocated and destroying the world, so that's
going to create issues.
This is basically 100% unsupported behaviour, and I'd be surprised if this
wasn't closed as a won't fix as a result, if you want to relocate chunks
safely, you'll actually...
Yes, because the chunk contains data which is related to the location in the world, so when stuff falls out of bound, it blows up, 100% as expected Paper also saves the position of the chunk to prevent an old bug where chunks would end up being relocated and destroying the world, so that's going to create issues. This is basically 100% unsupported behaviour, and I'd be surprised if this wasn't closed as a won't fix as a result, if you want to relocate chunks safely, you'll actually need to ...
@Spottedleaf
I deleted absolutely all entities in all regions, as well as scanned the world with https://github.com/Fenixin/Minecraft-Region-Fixer.
No errors are shown, also I do not write anything in the console just an error that was the same and remains the same
Resolved by 4179b8f3fa86437aa1d9742930fd8ca6d23515a0 in https://github.com/PaperMC/Folia/commit/f6e91e9a4cd5ba4eb5a1f89f71fd6b4f2bd0fbef
You should understand that Paper does other things when regionfiles are relocated like this:
- Regionfile recalculation will delete every single chunk in the regionfile
- Entities located outside of the deserialized chunk are deleted
- Tile entities located outside...
Expected behavior
Fix this issue as he affects the gaming experience a lot
Observed/Actual behavior
When the player goes offline there is a certain probability that the backpack will be completely emptied, it is determined that it is not caused by the plugin, and I have observed that other servers using the folia core will also have the problem of players losing their backpacks after going offline and then going online
Steps/models to reproduce
I've recently observed emptying...
Do you mean player inventory, or an actual backpack provided by a mod or plugin?
We also do not have a build #213, can you provide the output of /version for your server?
在吗,我的服务器也遇到了这个问题,但是不知道怎么解决,可以求教吗…
我的服务器也遇到了这个问题,但是不知道怎么解决,可以求教吗…
你说中文人家也听不懂
请使用ChatGPT或DeepL将您的信息翻译成英文,因为这里的程式员主要使用英语
Please use either ChatGPT or DeepL to translate your message to English as the maintainers largely speaks English here.
https://chat.openai.com
https://www.deepl.com/en/translator
Thank you for understanding!
Checking version, please wait...
[15:15:18 INFO]: This server is running Folia version git-Folia-"f6e91e9" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: f6e91e9)
The player's item list is missing. Recently, players often have their backpack items available before they go offline, but after a while, all the backpack items disappear. This happens randomly and not every player will appear. I did not add a plugin to modify backpack items, and I am using the latest Fol...
Expected behavior
server run normally
Observed/Actual behavior
server crash
Steps/models to reproduce
no clue
Plugin and Datapack List
[20:08:51 INFO]: Server Plugins (37):
[20:08:51 INFO]: Bukkit Plugins:
[20:08:51 INFO]: - AnnouncerPlus, AntiPopup, Attollo, BetterRTP, BlockLocker, BlueMap, Chunky, ChunkyBorder, CMILib, CodFrame
[20:08:51 INFO]: CoreProtect, DecentHolograms, DeluxeMenus, DiscordSRV, DragonDropElytra, Essentials, EssentialsChat, EssentialsGeoIP, Es...
How are you viewing these items?
This sounds like a potential issue with your InvSee plugins.
Expected behavior
Players can change sign
Observed/Actual behavior
When a player without OP privileges tries to change the sign, it doesn't work.
[15:32:06 WARN]: Player [Player] just tried to change non-editable sign
Steps/models to reproduce
When a player without OP privileges tries to change the sign
Plugin and Datapack List
[15:53:03 INFO]: Server Plugins (27):
[15:53:03 INFO]: Paper Plugins:
[15:53:03 INFO]: - CreeperRecover
[15:53:03 INFO]: Bukkit Plugins:
[...
I cannot reproduce this.
Please make sure the issue isn't caused by one of your plugins using the binary search method and that you're not inside the spawn-protection from server.properties.
Expected behavior
Items remain after reboot
Observed/Actual behavior
If a player is using an Enchanting Table or Anvil while the server is down, the item will disappear after restarting.
Steps/models to reproduce
Restarting the server while using the Enchanting Table or Anvil will cause the item to disappear after the restart.
Plugin and Datapack List
[03:44:21 INFO]: Server Plugins (26):
[03:44:21 INFO]: Bukkit Plugins:
[03:44:21 INFO]: - BetterGUI, BetterRTP, Block...
CMI is unsupport😘
what do you mean by CMI is unsupported?
Expected behavior
When /reload confirm is entered, the server is reloaded and the server responds.
Observed/Actual behavior
The server is not responding to all commands.
Steps/models to reproduce
When /reload confirm is executed, the server responds to some commands sent by the player, but even the stop command does not respond in the bucket console. To shut down the server, you must forcefully shut it down from the scheduler.
Plugin and Datapack List
nothing
F...
There's a handful of commands that are disabled on Folia and reload is one of those.
You can take a look here for the full list.
Additionally, this duplicates #44 and therefore I'll be closing it.
This cannot be a problem with Folia, but rather with a popular plugin. I have been using Folia since June 6th and have hardly added any third-party plugins. During this period, over 5000 players have played the server and there has never been a problem of player data loss.
I can still reproduce this without using any plugins. Are you sure it's been fixed?
No plans to resolve
@Spottedleaf excuse me? This is unacceptable given the large amount of plugins using the Conversation API. It breaks by merely blocking the input.
I was able to workaround this by using ProtocolLib. Here is a pseudocode:
this.addReceivingListener(PacketType.Play.Client.CHAT, event -> {
String message = event.getPacket().getStrings().read(0);
Player player = event.getPlayer();
if (player.isConversing()) {
player.acceptConversationInput(message...
For anyone interested in reproducing this on Folia here is the full Java code that makes Folia break:
Player player = getPlayer();
player.beginConversation(new Conversation(SimplePlugin.getInstance(), player, new ValidatingPrompt() {
@Override
public String getPromptText(ConversationContext context) {
context.getForWhom().sendRawMessage("Dopice");
return "Type anything";
}
@Override
protected boolean isInputValid(ConversationContext context, String input) {
...
No plans to resolve
@Spottedleaf excuse me? This is unacceptable given the large amount of plugins using the Conversation API. It breaks by merely blocking the input.
I was able to workaround this by using ProtocolLib. Here is a pseudocode:
this.addReceivingListener(PacketType.Play.Client.CHAT, event -> { String message = event.getPacket().getStrings().read(0); Player player = event.getPlayer(); if (player.isConversing()) { player.accep...
Thanks for clarification. I understand now. Sure, if I have time I'll try to make a pull request.
InvSee++ author here, perhaps I can shed some light on this issue. InvSee++ is architected in such a way that it tries to re-use spectator inventories as much as possible. I think this is one of its greatest strength; two admin players can modify the contents of a target player's inventories and they see their updates instaniously because they are sharing the same inventory instance. Also when a target player joins the server again, their inventory content is updated to whatever open content ...
I've tried logging onto an old Folia server I had for testing and couldn't reproduce, so I'm going to attribute it to what @Jannyboy11 said and consider it a plugin issue and close this.
Thanks for the report anyhow and if you need further help feel free to visit our Discord or forums.
If you can still reproduce this issue without plugins, reply here and we will reopen it.
Expected behavior
Be able to get block type.
Observed/Actual behavior
Error when using block.getType() :
java.lang.NullPointerException: Cannot read field "captureTreeGeneration" because the return value of "net.minecraft.world.level.World.getCurrentWorldData()" is null
at net.minecraft.world.level.World.a_(World.java:813)
at org.bukkit.craftbukkit.v1_20_R1.block.CraftBlock.getType(CraftBlock.java:242)
Steps/models to reproduce
Use `player.get...
lack of a useful stack trace, but judging from your message, and the error, you're tryna access world state outside of the region context, and thus this will not work
lack of a useful stack trace, but judging from your message, and the error, you're tryna access world state outside of the region context, and thus this will not work
Sorry but there is no other interesting line. The full error is this:
java.lang.NullPointerException: Cannot read field "captureTreeGeneration" because the return value of "net.minecraft.world.level.World.getCurrentWorldData()" is null
at net.minecraft.world.level.World.a_(World.java:813)
at org.bukkit...
No, you need to use the players scheduler in order to touch that stuff, accessing world state off the main thread has NEVER been supported, even moreso on folia
Stack trace
[https://paste.gg/p/anonymous/24f4f33fd25c4006830c8f51fe5929b6](https://paste.gg/p/anonymous/24f4f33fd25c4006830c8f51fe5929b6)
Plugin and Datapack List
[22:22:27 INFO]: Server Plugins (38):
[22:22:27 INFO]: Bukkit Plugins:
[22:22:27 INFO]: - AntiLavaCastM, AntiLogoutM, AntiNetherRoofM, AntiRaidFarmM, AppleCraftSpawn, AuctionHouseM, AuthMe, BedSpawn, BestTop, BetterRTP
[22:22:27 INFO]: CharitySystemM, ChatManager, ClanSystem, CommandWhitelist, CoreProtec...
Expected behavior
[08:51:09] [Region Scheduler Thread #1/ERROR]: Thread Region Scheduler Thread #1 failed main thread check: Cannot update owner state asynchronously
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[folia-1.20.1.jar:git-Folia-"372d479"]
at net.minecraft.world.entity.projectile.Projectile.getOwnerRaw(Projectile.java:78) ~[?:?]
at net.minecraft.world.entity.projectile.Projectile.getOwner(Projectile.java:71) ~[?...
No, you need to use the players scheduler in order to touch that stuff, accessing world state off the main thread has NEVER been supported, even moreso on folia
Hello, I'm trying to get the block type when I save/load some data, I don't use player.getLocation but this:
Block block = this.toBlock();
Location location = block.getLocation();
String blockType = block.getType().name();
I also need to use a specific scheduler to fix it or something ?
[PaperMC/Folia] New branch created: dev/optimisations
See the commit notes:
https://github.com/PaperMC/Folia/commit/c6950e2d08a047975930bd9a706f31b085707b9b
https://github.com/PaperMC/Folia/commit/3b16d8fc1925ad51958346dfb9e5b786d5bc3648
Please report any issues with the branch on this PR.
I have a concern that this pr could regress TNT cannon performance because of the removal of the cache in the optimize explosions patch. The TNT cannons used on Factions have large amounts of TNT and Sand upwards into the thousands in the same location. Cannon and Faction servers often disable random TNT spawn velocity as well to better utilise the cache when compressing TNT together.
I also had this exception
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.b...
+ return (float)missedRays / (float)totalRays;
This is different compared to vanilla getSeenPercent and could cause some issues with TNT cannons.
I have a concern that this pr could regress TNT cannon performance because of the removal of the cache in the optimize explosions patch. The TNT cannons used on Factions have large amounts of TNT and Sand upwards into the thousands in the same location. Cannon and Faction servers often disable random TNT spawn velocity as well to better utilise the cache when compressing TNT together.
I also had this exception
java.lang.NullPointerException: Cannot invoke "net.minecraft...
changed to adhere back to vanilla
I have a concern that this pr could regress TNT cannon performance because of the removal of the cache in the optimize explosions patch. The TNT cannons used on Factions have large amounts of TNT and Sand upwards into the thousands in the same location. Cannon and Faction servers often disable random TNT spawn velocity as well to better utilise the cache when compressing TNT together.
I also had this exception
java.lang.NullPointerException: Cannot invoke "net.minecraft...
I have a concern that this pr could regress TNT cannon performance because of the removal of the cache in the optimize explosions patch. The TNT cannons used on Factions have large amounts of TNT and Sand upwards into the thousands in the same location. Cannon and Faction servers often disable random TNT spawn velocity as well to better utilise the cache when compressing TNT together.
I also had this exceptionjava.lang.NullPointerException: Cannot invoke "net.minecraft...
Is your feature request related to a problem?
i want run Minecraft server on a old server,but it is too slow to run forge server,but folia is run well on this machine,so i want a core both have folia and forge .
Describe the solution you'd like.
add forge to folia or create a new core for forge and folia
Describe alternatives you've considered.
none
Other
No response
As the Folia readme stated, there will never be a Forge support version. (I am explaining the no JRoy mentioned above as he closed this as I was still typing ._.)
I have a concern that this pr could regress TNT cannon performance because of the removal of the cache in the optimize explosions patch. The TNT cannons used on Factions have large amounts of TNT and Sand upwards into the thousands in the same location. Cannon and Faction servers often disable random TNT spawn velocity as well to better utilise the cache when compressing TNT together.
I also had this exceptionjava.lang.NullPointerException: Cannot invoke "net.m...
I did end up testing your claims @Samsuik about it effecting TNT Cannons, and it seems to not be the case. A video is here if you want to see it. ( https://youtu.be/SVdl3NBXATM ) It seems to be fine.
I started building a cannon specifically for testing and I finished last night. Here are the results of my crude testing:
Paper (optimize-explosions): 8.39 tps
Folia (this pr/optimisations branch): 3.94 region tps
Folia: 1.84 region tps
If you would like to test the perform...
I did end up testing your claims @Samsuik about it effecting TNT Cannons, and it seems to not be the case. A video is here if you want to see it. ( https://youtu.be/SVdl3NBXATM ) It seems to be fine.
I started building a cannon specifically for testing and I finished last night. Here are the results of my crude testing:
Paper (optimize-explosions): 8.39 tps Folia (this pr/optimisations branch): 3.94 region tps Folia: 1.84 region tpsIf you would li...
After some deep testing I can see a x3-5 more performance on a instant heavy load with huge faction cannons (1000 tnt at a time) and after the first shot it stays at 20 tps, tested on a Intel® Core™ i9-13900 24 Core 64 GB DDR5 RAM compared to the old folia I get around 10-15 tps casually. (some paper config had to be changed in order to have all the tnt work)
Can't wait for chunk (un)load to get fixed !
Expected behavior
Server starting and loading all plugins with any issues
Observed/Actual behavior
errors loading most of the plugins:
container@pterodactyl~ java -version
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode, sharing)
container@pterodactyl~ java --add-modules=jdk.incubator.vector -Xms128M -Xmx61440M -Dterminal.jline=false -Dterminal.an...
Please report the plugins using the Report button on the website or contact their authors.
This is irrelevant for the issue tracker.
Merged to paper 1.20.2
I did end up testing your claims @Samsuik about it effecting TNT Cannons, and it seems to not be the case. A video is here if you want to see it. ( https://youtu.be/SVdl3NBXATM ) It seems to be fine.
I started building a cannon specifically for testing and I finished last night. Here are the results of my crude testing:
Paper (optimize-explosions): 8.39 tps Folia (this pr/optimisations branch): 3.94 region tps Folia: 1.84 region tps...
[PaperMC/Folia] branch deleted: dev/optimisations
I think you could have a synchronous context running for datapacks that's running on a single thread - while you can't really implement multithreading here, most servers that would use Folia for big server networks won't even use datapacks, while people who just want to get the most bang out of their server would still have compatibility with VanillaTweaks and whatever else they need to run. It's a bit complicated to act on things that are on different threads, you'd need some kind of localiz...
except now you'd need to have a tick thread which locks each region from ticking so that it itself can tick once per tick in a global state for the world, which would break the whole "you can have a region tanking performance without killing the entire server" 'feature'
I don't think that that would really be something that would be deemed acceptable to the project
Unable to redstone like on screenshot. Same problem with back side of piston
@Spottedleaf Unable to place redstone like on screenshot. Same problem with back side of piston
Resolved by https://github.com/PaperMC/Paper/commit/c207429b2135275a2c272b9932a2d8305329dd2f, will not be ported to this branch
With this update to the paperweight the dev/1.20.2 branch should now compile.
Just because it’s a Snapchat doesn’t mean it’s a bad PR
Closing this. We don't want to be using SNAPSHOT dependencies for the core build system. It needs to be a fixed release.
So, I'm uncommented "load world" function and it works perfectly. But I'm using it only on server startup. May be problems if use it during the game.
Uncommenting load world function probably works. I use https://github.com/Folia-Inquisitors/MoreFoWorld for now.
At least as a temporary solution, the world API should only be available from the start. The absence of this is still holding many plugins from moving to Folia.
Stack trace
[10:54:06 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Cannot read world asynchronously
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:57) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"] at org.bukkit.craftbukkit.v1_19_R3.block.CraftBlock.getNMS(CraftBlock.java:86) ~[folia-1.19.4.jar:git-Folia-"ca3b7ad"]
at org.bukkit.craftbukkit.v1_19_R3.block.CraftBlock.setTypeAndData(CraftBlock.java:20...
- 1.19.4 is no longer supported
- You teleported away, your entity is no longer in that region, and thus are no longer ticked in that region and thus no longer own it. If you wanna do mutations to the world, you need to use the region scheduler to safely do it
- 1.19.4 is no longer supported
- You teleported away, your entity is no longer in that region, and thus are no longer ticked in that region and thus no longer own it. If you wanna do mutations to the world, you need to use the region scheduler to safely do it
How to doing this? I use regionSheduler
I use RegionSheduler, but when I teleport, the old region (owning the blocks) is deleted and a new one is created in the place where I teleported, and I get this error
EntitySheduler attached to the player also does not help (the old region is deleted and an error occurs), GlobalRegionSheduler and AsyncSheduler also do not have access to blocks
Stack trace
[13:37:55 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Cannot read world asynchronously
java.lang.Throwable: null
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:57) ~[folia-1.20.1.jar:git-Folia-"edafbce"]
at org.bukkit.craftbukkit.v1_20_R1.block.CraftBlock.getNMS(CraftBlock.java:84) ~[folia-1.20.1.jar:git-Folia-"edafbce"]
at org.bukkit.craftbukkit.v1_20_R1.block.CraftBlock.getBlockData(CraftBlock.java:17...
Please don't open duplicate issues.
If you want development help we recommend joining our Discord server.
- 1.19.4 is no longer supported
- You teleported away, your entity is no longer in that region, and thus are no longer ticked in that region and thus no longer own it. If you wanna do mutations to the world, you need to use the region scheduler to safely do it
How to doing this? I use regionSheduler
I use RegionSheduler, but when I teleport, the old region (owning the blocks) is deleted and a new one is created in the place where I teleported, and I get this error
show th...
Is your feature request related to a problem?
Mods are a huge part of minecraft, mods like create can modify minecraft into a entire new game, having way more content and new experiences.
However since the base minecraft server is singlecore, more than a few players in a complex world is very hard even for the top hardware at the moment.
Describe the solution you'd like.
Since I know Folia won't support forge (already searched), what about fabric or quilt? Or maybe a custom framew...
Folia will not be ported to Fabric nor Forge nor Quilt or any other modding framework.
Expected behavior
Observed/Actual behavior
Steps/models to reproduce
use folia ver 1.20.2
join server
wait
...
Stack trace
[00:13:17] [Region Scheduler Thread #2/ERROR]: Thread Region Scheduler Thread #2 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.1.jar:git-Folia-"372d479"]
at net.minecraft.world.entity.Entity.setRemoved(Entity.java:5455) ~[folia-1.20.1.jar:git-Folia-"372d479"]
at net.minecraft.world.entity.Entity.remove(Entity.java:697) ~[folia-1.20.1.jar:git-Folia-"...
Please use the latest version
Please use the dev/1.20.2 latest version
Oh, it problematic for me, I will need to update a lot of other plugins, maybe is it possible to fix on 1.20.1? I just don’t see the point in switching to 1.20.2 now, because there is already 1.20.3 in snapshots
Please use the dev/1.20.2 latest version
Oh, it problematic for me, I will need to update a lot of other plugins, maybe is it possible to fix on 1.20.1? I just don’t see the point in switching to 1.20.2 now, because there is already 1.20.3 in snapshots
Yes, I remember Folia 1.20.2 fixed this issue, but I'm not very sure
Expected behavior
Able to run Server#dispatchCommand with a CommandSender provided by Server#createCommandSender(Consumer) and have it succeed
Observed/Actual behavior
Unable to do so,
[14:50:15 WARN]: [example-plugin] Global task for example-plugin v1.0 generated an exception
java.lang.UnsupportedOperationException: Dispatching command for io.papermc.paper.commands.FeedbackForwardingSender@1d47f198
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(C...
@DxrkCat @MineSunshineone @andreypfau Please refrain from spamming the issue page if you do not have any additional materials to add.
This patch can limit the spawning of animals. You can try it.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Sattera <wujiaxin752@icloud.com>
Date: Sat, 11 Nov 2023 14:57:57 +0800
Subject: [PATCH] Try fixing animals spawning issue
diff --git a/src/main/java/net/minecraft/world/level/NaturalSpawner.java b/src/main/java/net/minecraft/world/level/NaturalSpawner.java
index 5caca2a34849189ea42d2699f6d8672e0d7251cb..131dc763c2daee0919f23dc59e0c195e86da29...
Is your feature request related to a problem?
New regions are only created after enormous distances between the players. This is not a huge problem, but we host our Minecraft server on an aarch64 (ARM) system. It's not slow, but it's no longer the fastest hardware in terms of single-core performance. There are times when the TPS drops below 15. Until the threshold for a new region is reached, performance problems usually occur beforehand.
Describe the solution you'd like.
A possibi...
This patch can limit the spawning of animals. You can try it:
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Sattera <wujiaxin752@icloud.com> Date: Sat, 11 Nov 2023 22:20:46 +0800 Subject: [PATCH] Try fixing animals spawning issue diff --git a/src/main/java/net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java b/src/main/java/net/minecraft/world/level/levelgen/NoiseBasedChunkGenerator.java index 58609a0911c4e32b6f...
Configurable minimum regions are not on the roadmap for Folia. If you have a map or use case that would require smaller areas you may want to consider using Paper instead.
Can't produce this locally at all.
Please make sure that when you run git pull to build newer versions of folia that you also run gradlew applypatches, as this looks exactly like a bug that was fixed during the 1.20.2 update
Stack trace
https://paste.gg/p/anonymous/270e834a3a084d999399605cb7a1dc06
Plugin and Datapack List
[21:10:55 INFO]: Paper Plugins:
[21:10:55 INFO]: - eco, EcoEnchants, HuskHomes, Talismans
[21:10:55 INFO]: Bukkit Plugins:
[21:10:55 INFO]: - AlchemicalArrows, Alchemy, AntiShulkPotion, Astro, AutoMineReset, BetterRTP, BlueSlimeCore, BottledExp, Buyers, ChatEx
[21:10:55 INFO]: Chunky, ChunkyBorder, CmdBlock, CMILib, CombatLogX, CommandPanels, CooldownsX, CrossplatCommands, Cros...
i can confirm that this problem is still not resolved after the 7aacf90 . I compiled the latest folia jar by cloning the dev/1.20.2 branch after 7aacf90 , still , mobs alot
:
[01:48:14 INFO]: Server Plugins (40):
[01:...
I can't produce locally still. Can you provide your server.properties as well?
Hello!
Our server has been running on Folia since 1.20.1, and when we updated it to 1.20.2, we had an issue similar to this problem. I would like to share my investigation about that issue.
Checking the changes from 1.20.1 to 1.20.2, I noticed that "Per Player Mob Spawning" feature is back.
Our server was originally running on Paper and that feature was still enabled in paper-world-defaults.yml.
Looking at the mob spawning process (in ServerChunkCache#tickChunks), it resets the ...
Hello!
Our server has been running on Folia since 1.20.1, and when we updated it to 1.20.2, we had an issue similar to this problem. I would like to share my investigation about that issue.
Checking the changes from 1.20.1 to 1.20.2, I noticed that "Per Player Mob Spawning" feature is back. Our server was originally running on Paper and that feature was still enabled in
paper-world-defaults.yml.Looking at the mob spawning process (in
ServerChunkCache#tickChunks), i...
Thanks for quick reply.
Okay, I'll prepare PR :)
spigot.yml https://paste.denizenscript.com/View/117831 bukkit.yml https://paste.denizenscript.com/View/117833 paper-world-defaults.yml https://paste.denizenscript.com/View/117834 paper-global.yml https://paste.denizenscript.com/View/117835
For extra reference plugins are (non of them affect animal spawning and same plugin jars are using in 1.20.1 folia with 372d479, extra mob spawn only occur when upd...
This will happen when a plugin teleports a player during the move event handling.
I could add a check for when this happens, but it's improper to invoke teleportations during these events as it's possible that other plugins listening will not be aware of the teleport. It would be inappropriate to try and support such behavior.
The event itself supports setting the destination location as well as cancellation (for about as long as the event has existed!), so there is no reason for plugins...
spigot.yml https://paste.denizenscript.com/View/117831 bukkit.yml https://paste.denizenscript.com/View/117833 paper-world-defaults.yml https://paste.denizenscript.com/View/117834 paper-global.yml https://paste.denizenscript.com/View/117835
For extra reference plugins are (non of them affect animal spawning and same plugin jars are using in 1.20.1 folia with 372d479, extra mob spawn only occur when upd...
Same issue on https://github.com/PaperMC/Folia/commit/d58fab2cceeabe47b2f0925bb0bde551c46029e9
This server is running Folia version git-Folia-"3843340" (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 3843340 on dev/1.20.2)
Expected behavior
docker exec -ti mc-test rcon-cli list should run the /list command on the console
Observed/Actual behavior
$ docker exec -ti mc rcon-cli list
Error executing: list (null)
Steps/models to reproduce
Run itzg/minecraft-server:latest image with TYPE: FOLIA, wait for the server to come up and execute above command.
Plugin and Datapack List
No plugins or datapacks. Executing mentions commands not possible due to bug mentioned in this report.
Fo...
rcon functionality is not currently planned for Folia. That may change in the future but for now this is as expected.
Thanks @ocelotpotpie ! Is this documented anywhere and does the regular paper release support rcon?
Thanks @ocelotpotpie ! Is this documented anywhere and does the regular paper release support rcon?
[PaperMC/Folia] New branch created: build-updates
1e5e215 Implement command execution support for RCON - Spottedleaf
https://github.com/PaperMC/Folia/commit/1e5e2154c9f88d788cecf0b9fcc77ece7d1f8663 May resolve the issue, can you re-test?
[PaperMC/Folia] branch deleted: build-updates
Stack trace
https://paste.gg/p/anonymous/2a88d7d07f4649069c6fd898bea3c231
Plugin and Datapack List
Server Plugins (42):
Paper Plugins:
- HuskHomes
Bukkit Plugins:
- AllMusic, BedrockPlayerManager, BetterGUI, BetterItemFrame, BetterRTP, CMI, *CMIEInjector, CMILib, CommandWhitelist, CoreProtect
CrazyCrates, ExtraContexts, FarmControl, floodgate, FramedImage, FreedomChat, GSit, Guilds, LotterySix, LuckPerms
Marriage, Matrix, MinePay, MultiLogin, PixelVip, Pl...
Any news about this problem?
I'm not very certain that screenshot is indicative of anything... does /paper mobcaps or /paper entity list indicate the counts are too high?
My players have night time now, I can repeat this action with more online.
I don't think that it is ok
Were these creatures spawned after updating to https://github.com/PaperMC/Folia/commit/3843340cba3aac68f5ab54bd8a0cafd2670a9458? (In other words, the creatures that spawned before the fix are not there?)
I created a new server/world and checked out the mob spawn. (with multiple players/regions in the world)
In https://github.com/PaperMC/Folia/commit/7aacf902b0fc917b2874a67f4ebc77077936355d, a large number of creatures spawned such as squids and bats in a short time.
On the other hand, I ...
Oh, yes much better, but I have another problem. when player hit Zombiefied Piglin they start spawning from all sides as if unlimited
I can also confirm mobs spawning is becoming normal now. I don't see that many mobs in chunks that I have cleared the mobs
However, there is no plugin in folia that can directly show and tp admins to chunks that have alot of mobs, the /tps command in folia in only give a region tp, in most of the cases it cannot tp the admin to the mob's location.
After the fix, no more new region have mobs more than 2000, but i still have 2 old folia region with mob number 8000+ and i still unable to fi...
I can also confirm mobs spawning is becoming normal now. I don't see that many mobs in chunks that I have cleared the mobs However, there is no plugin in folia that can directly show and tp admins to chunks that have alot of mobs, the /tps command in folia in only give a region tp, in most of the cases it cannot tp the admin to the mob's location.
After the fix, no more new region have mobs more than 2000, but i still have 2 old folia region with mob number 8000+ and i still unable t...
There is a plugin called MobStack that supports Folia
Closing this issue as the spawning problem appears to be solved in https://github.com/PaperMC/Folia/commit/3843340cba3aac68f5ab54bd8a0cafd2670a9458
For any other issues, please open a new ticket. Thanks!
I can also confirm mobs spawning is becoming normal now. I don't see that many mobs in chunks that I have cleared the mobs However, there is no plugin in folia that can directly show and tp admins to chunks that have alot of mobs, the /tps command in folia in only give a region tp, in most of the cases it cannot tp the admin to the mob's location.
After the fix, no more new region have mobs more than 2000, but i still have 2 old folia region with mob number 8000+ and i still unable t...
There is a plugin called MobStack that supports Folia
I can't find it on modrinth, paper hanger or google. Do you have link? thx
There is a plugin called MobStack that supports Folia
I can't find it on modrinth, paper hanger or google. Do you have link? thx
I tried the plugin and I dont recommend using that plugin because there is console spam issue, and I think in general many dev say its useless to use stacking mob plugin.
but if you want to try it anyway you can check it here https://github.com/Nathat23/StackMob-5/tree/folia
Expected behavior
Mobs spawn evenly, balanced
Observed/Actual behavior
When you beat a zombie penlin, an unlimited number of them begin to spawn, since all the zombie piglins begin to run up to you, in the locations where they stood before, new zombie piglins spawn cyclically and run to you
Steps/models to reproduce
Go the nether in survival mode
Hit the zombified piglin, in open areas
Plugin and Datapack List
It can be reproduce without plugins, on the clear folia
...
Is your feature request related to a problem?
Mods are a huge part of minecraft, mods like create can modify minecraft into a entire new game, having way more content and new experiences. However since the base minecraft server is singlecore, more than a few players in a complex world is very hard even for the top hardware at the moment.
Describe the solution you'd like.
Since I know Folia won't support forge (already searched), what about fabric or quilt? Or maybe a cu...
There is a upstreamed version that supports Folia 1.20.2 https://github.com/Folia-Inquisitors/StackMob-5-Folia
Is your feature request related to a problem?
There are many scenarios, such as incompatible plugins, bugs, etc., that can lead to MSPT 1000+, 100% util in a region. The players within the region are unresponsive.
Describe the solution you'd like.
Can we detect and unload these abnormal regions in some way to enhance the stability of Folia?
Describe alternatives you've considered.
An Api or an existing command?
Other
No response
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.
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 bug and needing to restart the entire server
Expected behavior
teleportAsync teleports display entities to exactly the coordinates I specify as soon as the teleport is done
Observed/Actual behavior
teleportAsync teleports display entities to a random offset from the location, and then an ineterminate amount of time later the display entity has the possibility to snap to to the actual location without me attempting to teleport it again (in fact, another teleportAsync does nothing wrt the display entity being offset wrong...
Some prodding at internals with a debugger seems to indicate this is some sort of networking issue? The state I can observe in the server w/ a debugger doesn't match up with what I'm seeing on a client.
Hello, I see that rcon support is marked as not planned. I have only recently started playing with folia, but the lack of rcon immediately makes folia unusable for my regular needs when hosting an MC server.
Especially considering Folia is intended as a higher performance implementation, remote server management seems it would be essential.
Expected behavior
When player build Map art on Minecraft world and use map item to take a picture of the chunk, the map should keep the same at any time.
Observed/Actual behavior
During running of folia server without restart, the art get corrupted and showing some random and wired chunk map images.
Steps/models to reproduce
build map art on folia server, wait.
Plugin ...
A lot of commands schedule now onto different contexts, which means when the command finishes synchronously it may not have the resulting command response available - as it has not actually finished execution.
This is a more general problem with the command system, as there is no way to signal and asynchronous completion.
Not sure what I can do to fix that, as it's always been an issue with RCON but it's certainly more noticeable now.
I recall lucko created a PR to spigot years ago to try to add a means to control buffering and releasing the rcon response, it is something I've wanted to look into for paper, just, rcon is not something that deems any priority
The compiling did not pass properly - were these missed out?
Is your feature request related to a problem?
When using some CDNs (TCP load balancers), I need to use the proxy-protocol-v2 protocol to obtain the real IP address of the client during reverse proxying in order to succeed.
Describe the solution you'd like.
Hopefully, proxy-protocol-v2 compatibility can be achieved through plug-ins or other methods.
Describe alternatives you've considered.
I tried to enable proxy access and install the solution previously used on the Paper p...
Expected behavior
hopper inventory created and opened
Observed/Actual behavior
[20:04:08 WARN]: [MvndiMMO] Entity task for MvndiMMO v1.0 generated an exception
java.lang.IllegalStateException: Scheduling chunk load off-main
at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:72) ~[folia-1.20.2.jar:git-Folia-"1e5e215"]
at net.minecraft.server.level.ServerChunkCache.getChunkFutureMainThread(ServerChunkCache.java:310) ~[?:?]
at net.min...
Because createInventory tries to create "real" inventories for an item, and thus, you created an inventory for a hopper at 0, 0, 0, in which it expects to exist and be able to open, thus, boom; you would need to pass in an InventoryHolder in order to surpress the real inventory creation
Expected behavior
I got a map with datapacks (bingo) and expect it to work on folia server.
Observed/Actual behavior
The map get loaded but it doesn't work fine on folia server. The server failed to load mcfunctions like this in the logfile:
`[11:51:13] [ServerMain/ERROR]: Failed to load function flytre:full_init
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on l...
Folia does not support all vanilla commands. The disabled commands include the /datapack, /schedule and /function commands. Your datapack looks like its using those and other disabled commands as well as command functions which also do not work on Folia.
As such, this is expected behaviour and not a bug
Vanilla commands expect to be run within a global context, not a limited one like Folia. Its unlikely that command f...
