Morph

Morph

22M Downloads

Crash when loading Villager NBT

thebloxxer11 opened this issue ยท 23 comments

commented

An Entity minecraft:villager(Villager) has thrown an exception during loading, its state cannot be restored. Report this to the mod author
net.minecraft.util.ReportedException: Loading entity NBT
at net.minecraft.entity.Entity.func_70020_e(Entity.java:1874)
at net.minecraft.entity.EntityList.func_75615_a(EntityList.java:220)
at me.ichun.mods.morph.common.morph.MorphVariant.createEntityInstance(MorphVariant.java:84)
at me.ichun.mods.morph.common.morph.MorphState.getEntInstance(MorphState.java:28)
at me.ichun.mods.morph.client.core.EventHandlerClient.onClientTick(EventHandlerClient.java:829)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_1026_EventHandlerClient_onClientTick_ClientTickEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
at net.minecraftforge.fml.common.FMLCommonHandler.onPostClientTick(FMLCommonHandler.java:347)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1909)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1096)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.RuntimeException: Attempted to set villager profession to unregistered profession: 6 null
at net.minecraftforge.fml.common.registry.VillagerRegistry.onSetProfession(VillagerRegistry.java:334)
at net.minecraft.entity.passive.EntityVillager.func_184206_a(EntityVillager.java:457)
at net.minecraft.network.datasync.EntityDataManager.func_187227_b(SourceFile:125)
at net.minecraft.entity.passive.EntityVillager.func_70938_b(EntityVillager.java:423)
at net.minecraft.entity.passive.EntityVillager.func_70037_a(EntityVillager.java:359)
at net.minecraft.entity.Entity.func_70020_e(Entity.java:1862)
... 18 more

MC Version: 1.12.2
Morph Version: 7.1.0
iChunUtil Version: 7.1.2
Comments: This crash is repeatable, multiple times occurred in the same day as this issue was submitted. This error was in the MC Console (Need it open to find errors in modpacks being a modpack dev.). This will somewhat lock my survival world until fixed. Also, I was crossing dimensions (Aroma1997's Mining Dim to Overworld) when this occurred. Can you set this as a high priority so I can continue my world quickly? Thanks for the reply.

commented

Wait, it's not crashing now is it? Because Forge catches the exception.

commented

Did you have any mods that had villager professions at first but then eventually removed them?

commented

Not that I know of.

commented

The exception should have been handled and the Morph would have been marked as invalid.

commented

Are you actually crashing or is this just being printed out to the console?

commented

are you sure the crash afterwards is a Morph crash? Wouldn't that be a different stack trace? I'd like to see your full log

commented

It is printing out in the console and crashes soon after.

commented

QQ: is there any way to delete morphs in a world?

commented

/morph clear is the only way

commented

yes I want the full log.

commented

through the files? (Not In Game, but through file explorer)

commented

Unable to find a crash log in the crash logs folder.

commented

for 11/22/2017.

commented

You shouldn't be crashing. If this prints out to the console then you get a crash shortly afterwards, I doubt it's Morph's fault.

commented

I think a recommendation is to add an external way to delete morphs.

commented

If you can't find me the logs then I cannot help you out with this issue. I'm fairly sure you shouldn't be crashing from this error.

commented

Errornous morphs should be handled without crashing. Again, I don't think you're crashing because of this and if you can't show me the logs I can't tell you what's causing it.

commented

Boss morphs mean nothing to me. I need logs.

commented

ok.

commented

Boss morphs are turned off.

commented

If you want to delete the morphs without going ingame go edit the player's NBT. There are tools for that out there already.

commented

You can now close this issue, this is now apparently gone since I updated mods.

commented

The crash is not associated with this mod, too.