Hwyla

Hwyla

86M Downloads

NPE Console spam

MrNinja93 opened this issue ยท 6 comments

commented

This was present in base Waila and seems to have carried over to here, Some blocks/tile entities throw NPE's in server console when viewed, No crashes but if there's a load of players on the server I imagine that console log might get large.

Using B11

Small sample log

09.11 12:51:21 [Server] INFO [12:51:21] [Netty Server IO #3/WARN] [Waila]: mcp.mobius.waila.network.Message0x01TERequest.channelRead0:117
09.11 12:51:21 [Server] INFO [12:51:21] [Netty Server IO #3/WARN] [Waila]: elec332.core.compat.handlers.WailaCompatHandler$CapabilityProvider.getNBTData:107
09.11 12:49:29 [Server] INFO [12:49:29] [Netty Server IO #3/WARN] [Waila]: Catched unhandled exception : [class mcjty.rftools.blocks.endergen.EndergenicTileEntity] java.lang.NullPointerException
09.11 12:49:29 [Server] INFO [12:49:29] [Netty Server IO #3/WARN] [Waila]: mcp.mobius.waila.network.Message0x01TERequest.channelRead0:117
09.11 12:49:29 [Server] INFO [12:49:29] [Netty Server IO #3/WARN] [Waila]: elec332.core.compat.handlers.WailaCompatHandler$CapabilityProvider.getNBTData:107
09.11 12:49:29 [Server] INFO [12:49:29] [Netty Server IO #3/WARN] [Waila]: Catched unhandled exception : [class crazypants.enderio.conduit.TileConduitBundle] java.lang.NullPointerException
09.11 12:49:29 [Server] INFO [12:49:29] [Netty Server IO #3/WARN] [Waila]: mcp.mobius.waila.network.Message0x01TERequest.channelRead0:117
09.11 12:49:29 [Server] INFO [12:49:29] [Netty Server IO #3/WARN] [Waila]: elec332.core.compat.handlers.WailaCompatHandler$CapabilityProvider.getNBTData:107
09.11 12:49:28 [Server] INFO [12:49:28] [Netty Server IO #3/WARN] [Waila]: Catched unhandled exception : [class crazypants.enderio.machine.capbank.TileCapBank] java.lang.NullPointerException
09.11 12:49:28 [Server] INFO [12:49:28] [Netty Server IO #3/WARN] [Waila]: mcp.mobius.waila.network.Message0x01TERequest.channelRead0:117
09.11 12:49:28 [Server] INFO [12:49:28] [Netty Server IO #3/WARN] [Waila]: elec332.core.compat.handlers.WailaCompatHandler$CapabilityProvider.getNBTData:107```
commented

This seems to be an issue in ElecCore. I'll poke through and see what's up.

commented

Aha turns out elec core was the issue apologies, newest version doesn't seem to cause it (don't see why eleccore is calling NBT tags for everything in the first place but yeah...)

commented

Sweet, thanks for checking that.

don't see why eleccore is calling NBT tags for everything in the first place

In order to get any Tile Entity data for use in the Waila tooltip, you need to write all the data to an NBT tag with IWailaDataProvider#getNBTData(...). That gets called on the server to collect the necessary data, then sent to the client for use.

commented

If it is ElecCore I'm on an outdated version on the server so bare that in mind (updating everything in like 2/3 days)

commented

Could you try with at least an updated Eleccore so I can get the correct line numbers?

commented

Also does it ever print the same tile class more than once? The line starting with "Catched"