Entering certain chunks causes instant "exception ticking world" crashes. Seemingly related to leaves - as I was flying around, I would notice random leaf breaking particles appearing on the edge of my render distance when a chunk that were being reloaded. Crashes happened in areas with dense foliage, test cases reported below:
-Player who tried spawning into a jungle would instantly cause server to crash (render distance 10)
-Player flying towards a normal forest would crash the server (render distance 10)
-Regular forests and the edge of jungle was fine at render distance 4, but going into the jungle would cause immense lag for the client (60+% CPU usage in the client alone for my machine mentioned above) and had high likelihood of crash.
-Even when I didn't see the particles upon chunk loading, I noticed many natural trees I wandered into had obvious missing leaves, but no new decay would occur.
Map was created in an earlier snapshot and upgraded directly from 18w21b to 1.13 pre-1.
It seems to me as though it's an issue with chunk loading where every leaf block does a decay check upon the initial load.
Server log and associated crash report below, all other tests had exact same crash report.
[13:33:38] [Server thread/ERROR]: Encountered an unexpected exception
h: Exception ticking world
at net.minecraft.server.MinecraftServer.w(SourceFile:697) ~[113.jar:?]
at rx.w(SourceFile:365) ~[113.jar:?]
at net.minecraft.server.MinecraftServer.v(SourceFile:626) ~[113.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:531) [113.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]
Caused by: java.lang.StackOverflowError
at bog.f(SourceFile:85) ~[113.jar:?]
at bqm.a(SourceFile:46) ~[113.jar:?]
at bql.a(SourceFile:445) ~[113.jar:?]
at bbi.a(SourceFile:270) ~[113.jar:?]
at bfx.a(SourceFile:225) ~[113.jar:?]
at bfx.a(SourceFile:195) ~[113.jar:?]
at bog.a(SourceFile:209) ~[113.jar:?]
at bbi.a(SourceFile:304) ~[113.jar:?]
at bfx.a(SourceFile:225) ~[113.jar:?]
at bfx.a(SourceFile:195) ~[113.jar:?]
at bog.a(SourceFile:209) ~[113.jar:?]
at bbi.a(SourceFile:304) ~[113.jar:?]
at bfx.a(SourceFile:225) ~[113.jar:?]
at bfx.a(SourceFile:195) ~[113.jar:?]
at bog.a(SourceFile:209) ~[113.jar:?]
Linked issues
duplicates 1
Attachments
Comments 9
Map was created in an earlier snapshot
Do the errors persist when you re-create the world in 1.13-pre1 or restore a backup prior 18w16 ?
Regenerating a clean copy of the map in 1.13-pre1 using the seed is fine.
Loading a backup of the map into 18w21b (the snapshot we've been using) is also fine.
Generating a clean copy of the map in 18w21b using the seed, and then opening it in 1.13-pre1 causes all the errors reported.
18w21b itself ran fine, but it did some nasty things to the world files, so that later versions will decay the leaves (MC-130521).
The stack overflow and lagging is most probably coming from the leaves decaying.
Can you please re-run the test with 18w20 -> 1.13-pre1?
Still working on confirmation with my friend who was assisting in some tests, but I myself just created the map in 18w20 and transferred it to 1.13-pre1. No crashes yet but I'm still noticing some natural leaves decaying, especially along the jungle floor but also some in the canopies themselves.
Thanks for the help. Any advice for how to update our server to a newer version and keep it playable?
Well, if you don't want to wait for 1.13, then use the -pre1, load the world from a backup before 18w16, because that was even more nasty than 18w20..18w22.
Maybe for the future: Don't ever use snapshots on production servers!
I keep getting this...
Minecraft Crash Report ----
// Oh - I know what I did wrong!
Time: 5/7/19 6:30 PM
Description: Exception ticking world
java.lang.ClassCastException: com.mrcrayfish.furniture.tileentity.TileEntityBin cannot be cast to net.geforcemods.securitycraft.tileentity.TileEntityAlarm
at net.geforcemods.securitycraft.blocks.BlockAlarm.playSoundAndUpdate(BlockAlarm.java:295)
at net.geforcemods.securitycraft.blocks.BlockAlarm.func_149674_a(BlockAlarm.java:189)
at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:391)
at WorldServerOF.func_147456_g(WorldServerOF.java:477)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:183)
at WorldServerOF.func_72835_b(WorldServerOF.java:234)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:625)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
– Head –
Stacktrace:
at net.geforcemods.securitycraft.blocks.BlockAlarm.playSoundAndUpdate(BlockAlarm.java:295)
at net.geforcemods.securitycraft.blocks.BlockAlarm.func_149674_a(BlockAlarm.java:189)
at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:391)
at WorldServerOF.func_147456_g(WorldServerOF.java:477)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:183)
at WorldServerOF.func_72835_b(WorldServerOF.java:234)
– Affected level –
Details:
Level name: Im Not a Pheonix
All players: 1 total; [EntityPlayerMP['BEASTY42'/268, l='Im Not a Pheonix', x=-165.32, y=66.43, z=213.31]]
Chunk stats: ServerChunkCache: 744 Drop: 0
Level seed: 8386864988633794114
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: World: (-132,64,256), Chunk: (at 12,4,0 in -9,16; contains blocks -144,0,256 to -129,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 361679 game time, 117195 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 4363 (now: true), thunder time: 38971 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:625)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:186)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 380532472 bytes (362 MB) / 939524096 bytes (896 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 Optifine OptiFine_1.7.10_HD_U_D3 29 mods loaded, 29 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA se{0.4.1} [Super Enchants] (minecraft.jar)
UCHIJAAAA TooManyItems{1.7.10} [TooManyItems] (minecraft.jar)
UCHIJAAAA furnace3d{1.4.0} [Furnace 3D] ([1.7.10] 3D Furnace-1.4.jar)
UCHIJAAAA securitycraft{v1.8.0} [SecurityCraft] ([1.7.10] SecurityCraft v1.8.0.jar)
UCHIJAAAA AnyDimensionMod{beta3.1} [AnyDimensionMod] (AnyDimensionMod.jar)
UCHIJAAAA babymobs{1.0} [Baby Mobs] (Baby Mobs.jar)
UCHIJAAAA betterstorage{0.9.2.107} [BetterStorage] (BetterStorage.jar)
UCHIJAAAA cfm{3.4.8} [§9MrCrayfish's Furniture Mod] (cfm-3.4.8-mc1.7.10.jar)
UCHIJAAAA DamageIndicatorsMod{3.3.2} [Damage Indicators] (Damage Indicators.jar)
UCHIJAAAA jawser{1.0.0} [Decorative Videogame Systems] (Decorative Videogame Systems.jar)
UCHIJAAAA elementalcreepers{4.3.0} [Elemental Creepers] (Elemental Creepers.jar)
UCHIJAAAA frsm{0.5.30c} [Fex's Random Stuff Mod] (Fex's Random Stuff Mod.jar)
UCHIJAAAA ihouse{2.3} [iHouse Mod] (iHouse Mod.jar)
UCHIJAAAA instahouse{8.0} [Insta House] (Insta House.jar)
UCHIJAAAA imsm{1.7.10} [Instant Massive Structures Mod] (Instant Massive Structures Mod.jar)
UCHIJAAAA MinecraftDonalds{v6.0} [MinecraftDonalds] (MinecraftDonalds.jar)
UCHIJAAAA MoarFood{V5.6.1} [MoarFood] (MoarFood.jar)
UCHIJAAAA mp3Jukebox{1.0.3} [mp3 Jukebox Mod] (mp3 Jukebox Mod.jar)
UCHIJAAAA newfoods2{2.2} [New Foods 2] (New Foods 2.jar)
UCHIJAAAA nomorerain{0.0.1} [No More Rain] (No More Rain.jar)
UCHIJAAAA RentServer{1.0} [§l§2Rent Server Mod] (RentServerMod.jar)
UCHIJAAAA schoolmod{2.5} [School Mod] (School Mod.jar)
UCHIJAAAA TooMuchTNT{2.9} [TooMuchTNT] (TooMuchTNT v2.9.jar)
UCHIJAAAA svm{1.7.10-2.0.4} [Saracalia's Vehicle Mod] (Vehicle-Mod-1.7.10.jar)
UCHIJAAAA youtubers{1.7.1} [Youtubers+ Mod] (Youtubers+ Mod.jar)
UCHIJAAAA explosives_pp{1.7b} [§6Explosives§4++] (§6Explosives§4++.jar)
GL info: ~ERROR~ RuntimeException: No OpenGL context found in the current thread.
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['BEASTY42'/268, l='Im Not a Pheonix', x=-165.32, y=66.43, z=213.31]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
It all happened because i changed versions...
Update:
Found this change from 18w22a.
Version exclusive: Naturally-generated leaves now survive at a distance of up to 6 blocks from logs, instead of 4.
The block state for leaves changed from a check_decay and decayable Booleans to distance (ranging from 1 to 7) and a persistent Boolean.
Ran some tests generating the map fresh from the seed in 1.13pre-1 and compared it to a copy of the map transferred from 18w21b to 1.13pre-1 and many natural leaves were broken or otherwise messed up in the latter case. It definitely seems as though the change from the old to new systems upon chunk reload is causing the issues.