Pixelmon server crashing randomly

I’ve made a Pixelmon server for some friends and i. and its been crashing randomly but never crashes when i’m playing on it myself. i don’t know if one of the other users is doing something specifically that’s causing the crash or if its random and can be fixed. The mods i play with are: Pixelmon 6.3.2. Gameshark 5.2.0. NEI 4.11 + prerequisites and journeymap 5.5.2. the other plays pretty much have the same but one user uses xaerominimap 1.15.3 instead of journeymap. here is the crash report; every crash has produced identical reports.

---- Minecraft Crash Report ----

WARNING: coremods are present:
  SpongeCoremod (spongeforge-1.12.2-2705-7.1.0-BETA-3206.jar)
Contact their authors BEFORE contacting forge

// Uh... Did I do that?

Time: 7/17/18 9:17 PM
Description: Exception in server tick loop

java.lang.NullPointerException: Exception in server tick loop
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.StructureSnapshot.getBlockAt(StructureSnapshot.java:65)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.GeneralScattered.func_74875_a(GeneralScattered.java:125)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.GeneralScattered.generateImpl(GeneralScattered.java:381)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.StructureScattered.generate(StructureScattered.java:71)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.worldGen.WorldGenGym.onTick(WorldGenGym.java:135)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_65_WorldGenGym_onTick_WorldTickEvent.invoke(.dynamic)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:662)
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:597)
	at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:273)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:776)
	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
	at java.lang.Thread.run(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.StructureSnapshot.getBlockAt(StructureSnapshot.java:65)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.GeneralScattered.func_74875_a(GeneralScattered.java:125)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.GeneralScattered.generateImpl(GeneralScattered.java:381)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.util.StructureScattered.generate(StructureScattered.java:71)
	at com.pixelmonmod.pixelmon.worldGeneration.structure.worldGen.WorldGenGym.onTick(WorldGenGym.java:135)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_65_WorldGenGym_onTick_WorldTickEvent.invoke(.dynamic)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:662)
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:597)
	at net.minecraftforge.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:273)

-- Sponge PhaseTracker --
Details:
	Phase Stack: [Empty stack]
Stacktrace:
	at net.minecraft.server.MinecraftServer.handler$onCrashReport$zjf000(MinecraftServer.java:3997)
	at net.minecraft.server.MinecraftServer.func_71230_b(MinecraftServer.java:889)
	at net.minecraft.server.dedicated.DedicatedServer.func_71230_b(DedicatedServer.java:370)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:558)
	at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_181, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 717787160 bytes (684 MB) / 3185049600 bytes (3037 MB) up to 3185049600 bytes (3037 MB)
	JVM Flags: 2 total; -Xms1024M -Xmx3072M
	IntCache: cache: 12, tcache: 94, allocated: 0, tallocated: 0
	FML: MCP 9.42 Powered by Forge 14.23.4.2705 12 mods loaded, 12 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

	| State     | ID          | Version                     | Source                                      | Signature                                |
	|:--------- |:----------- |:--------------------------- |:------------------------------------------- |:---------------------------------------- |
	| UCHIJAAAA | minecraft   | 1.12.2                      | minecraft.jar                               | None                                     |
	| UCHIJAAAA | mcp         | 9.42                        | minecraft.jar                               | None                                     |
	| UCHIJAAAA | FML         | 8.0.99.99                   | forge-1.12.2-14.23.4.2705-universal.jar     | e3c3d50c7c986df74c645c0ac54639741c90a557 |
	| UCHIJAAAA | forge       | 14.23.4.2705                | forge-1.12.2-14.23.4.2705-universal.jar     | e3c3d50c7c986df74c645c0ac54639741c90a557 |
	| UCHIJAAAA | spongeapi   | 7.1.0-SNAPSHOT-d453c3e      | spongeforge-1.12.2-2705-7.1.0-BETA-3206.jar | None                                     |
	| UCHIJAAAA | sponge      | 1.12.2-2705-7.1.0-BETA-3206 | spongeforge-1.12.2-2705-7.1.0-BETA-3206.jar | 6729a677746f8cf63ef31881f913ed15d431b7f0 |
	| UCHIJAAAA | pixelmon    | 6.3.2                       | Pixelmon-1.12.2-6.3.2-universal (1).jar     | None                                     |
	| UCHIJAAAA | gameshark   | 5.2.0                       | Gameshark-1.12.2-5.2.0b-universal.jar       | None                                     |
	| UCHIJAAAA | luckperms   | 4.2.49                      | LuckPerms-Sponge-4.2.49.jar                 | None                                     |
	| UCHIJAAAA | mycommands  | 1.12.2-01                   | MyCommands-1.12.2-01.jar                    | None                                     |
	| UCHIJAAAA | pixelextras | 2.3.9                       | PixelExtras-1.12.2-2.3.9-universal.jar      | None                                     |
	| UCHIJAAAA | wondertrade | 4.5.1                       | WonderTrade-1.12.2-4.5.3-universal.jar      | None                                     |

	Loaded coremods (and transformers): 
SpongeCoremod (spongeforge-1.12.2-2705-7.1.0-BETA-3206.jar)
  org.spongepowered.common.launch.transformer.SpongeSuperclassTransformer
	Profiler Position: N/A (disabled)
	Player Count: 3 / 20; [EntityPlayerMP['Allenone'/9996, l='world', x=-185.09, y=67.00, z=-1210.89], EntityPlayerMP['Sytres'/3010, l='world', x=-884.30, y=67.75, z=2379.14], EntityPlayerMP['Gypsy1101'/8585, l='world', x=4932.68, y=80.00, z=3318.69]]
	Is Modded: Definitely; Server brand changed to 'fml,forge,sponge'
	Type: Dedicated Server (map_server.txt)

Any assistance would be nice! :slight_smile:

My guess is you have external structure JSONs turned on, have not pregenerated your world, and haven’t refreshed the external structure JSONs since before 6.3. The solution is to go to ./pixelmon/ and delete the structures folder. Alternatively, and probably more wisely, you should turn off external structure JSONs in the pixelmon.hocon config.

You should be heading to the Pixelmon Support discord for this issue though (reforged.gg/discord), as it is a Pixelmon issue. Ostensibly, at least.

EDIT: You could confirm my theory by checking startup logs and seeing if things like the grassGym cause a great deal of JSON errors when loading.

I do have external JSONs turned on for NPCs because i set up some custom shop keepers. but this problem occurred before i turned external JSON’s on which i just did yesterday. i have not pre-generated the world which ill look into and the server was never on pixelmon 6.3. as for the startup logs, there are surprisingly no errors or warnings that occur during start up.

Hmm, in that case my guess is that we broke one of our gym structures recently and most people simply haven’t encountered it. You might like to use the /struc command to generate as many gyms as you can and see at which the whole thing falls apart with that crash.