rafradek / Mods

HomePage
Other
5 stars 5 forks source link

Issue with structures (ticking entity) #10

Open atyrode opened 6 years ago

atyrode commented 6 years ago

Hi,

I've made this pretty heavy RAM-usage modpack and I've had an issue with your mod multiple times and I couldn't figure out why so I thought I'd crash (hehe) here and share the report https://pastebin.com/jZW5pYgg

The crash happens when I'm logging on my server running the "rafradek_tf2_weapons-1.10.2-1.0.8.4" version of the mod. The crash only happens client-side and the server keeps running just fine. It seems that /kill @e partially fixes the issues

The exact same issue

-- Entity being ticked -- Details: Entity Type: rafradek_tf2_weapons.sentry (rafradek.TF2weapons.building.EntitySentry) Entity ID: 1732 Entity Name: Sentry gun

happens with the Engineer's Teleporter too.

Would you have an idea why?

rafradek commented 6 years ago

Its a real bizzare thing. It might be due to some mod conflict, not sure, also i cant tell if this mod will ever receive updates for 1.10.2. Try removing foam fix

atyrode commented 6 years ago

Though it was a tempting solution, unfortunately it seems like it didn't change anything. I also get this other similar bug: https://pastebin.com/UgUQ57HG Everything seems to be around ticking/rendering the structures in your mod. The weird thing is, another player on my server doesn't encounter the same issues though he renders/get close to the same entity structures.

What could possibly cause this? Could it be some settings in Optifine? Could it /possibly/ be Java args? BetterFPS algo? In the two pastebin, the error seems to be really close (though I admit I don't know sh*t about java)

  1. java.lang.ClassCastException: com.google.common.base.Absent cannot be cast to java.lang.Byte
  2. java.lang.ClassCastException: com.google.common.base.Absent cannot be cast to java.lang.Boolean

Could that possibly give you a hint on the issue? Could it be related to a RAM issue? I have this general feeling of being borderline out of ram all the time, and especially when connecting to the server, where the game freezes few times and then crashes to this.

Please note that those crash (seems to) happen exclusively when I connect to the server. I've already rendered/ticked structures just fine when I was in game and actually got pretty asskicked by those red team sentries.

I love your mod and I really don't want removing it from the modpack being the only solution. I'd rather even delete another faulty mod. Thank you very much for considering my problem!

(NB: The second pastebin states a different problem than the first and Foamfix is disabled but it's worth noting that I get the exact same issue with Foamfix on: https://pastebin.com/jdbDJ9KC)

EDIT: I've found these in my logs file too

[Client thread/ERROR]: A severe problem occurred during the spawning of an entity at ( -1554.6001904429847,86.3, -642.7241844562828)
java.lang.ClassCastException: com.google.common.base.Absent cannot be cast to java.lang.Byte
    at rafradek.TF2weapons.building.EntityBuilding.getLevel(EntityBuilding.java:274) ~[EntityBuilding.class:?]
    at rafradek.TF2weapons.building.EntitySentry.adjustSize(EntitySentry.java:74) ~[EntitySentry.class:?]
    at rafradek.TF2weapons.building.EntityBuilding.func_184206_a(EntityBuilding.java:82) ~[EntityBuilding.class:?]
    at net.minecraft.network.datasync.EntityDataManager.func_187218_a(SourceFile:241) ~[kk.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:128) [EntitySpawnHandler.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler.process(EntitySpawnHandler.java:73) [EntitySpawnHandler.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler.access$000(EntitySpawnHandler.java:48) [EntitySpawnHandler.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler$1.run(EntitySpawnHandler.java:63) [EntitySpawnHandler$1.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_25]
    at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?]
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1045) [bcx.class:?]
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371) [bcx.class:?]
    at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
[Client thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.ClassCastException: com.google.common.base.Absent cannot be cast to java.lang.Byte
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_25]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_25]
    at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1045) [bcx.class:?]
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371) [bcx.class:?]
    at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
    at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.lang.ClassCastException: com.google.common.base.Absent cannot be cast to java.lang.Byte
    at rafradek.TF2weapons.building.EntityBuilding.getLevel(EntityBuilding.java:274) ~[EntityBuilding.class:?]
    at rafradek.TF2weapons.building.EntitySentry.adjustSize(EntitySentry.java:74) ~[EntitySentry.class:?]
    at rafradek.TF2weapons.building.EntityBuilding.func_184206_a(EntityBuilding.java:82) ~[EntityBuilding.class:?]
    at net.minecraft.network.datasync.EntityDataManager.func_187218_a(SourceFile:241) ~[kk.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:128) ~[EntitySpawnHandler.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler.process(EntitySpawnHandler.java:73) ~[EntitySpawnHandler.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler.access$000(EntitySpawnHandler.java:48) ~[EntitySpawnHandler.class:?]
    at net.minecraftforge.fml.common.network.internal.EntitySpawnHandler$1.run(EntitySpawnHandler.java:63) ~[EntitySpawnHandler$1.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_25]
    at net.minecraft.util.Util.func_181617_a(SourceFile:45) ~[h.class:?]
    ... 9 more

If there's a way I could simply disable structure completely, let me know!

rafradek commented 6 years ago

This is some corruption of an unknown origin. Track all coremods, one of them could be responsible. The only way to disable engineer structures is to ban the spawning items and disable engineer from spawning, by using server plugins

Murdermancer commented 6 years ago

Got a similar crash, with a different set of mods. (Maybe with enough of these they can be cross-referenced to pin down the offending mod.)

https://pastebin.com/MNcHnams