How to remove TileEntity


I have a problem in the console after creating a OpenComputer’s robot.

I don’t know if it’s a Sponge or OpenComputer’s issue, but it’s not why I am opening this topic.

I can’t break the robot (it seems to break but it’s still here)

Here are the console logs:

The PhaseState having an exception: TileEntityTickPhase
The PhaseContext:

  • Source: RobotProxy{tileType=oc:robot, world=WorldServer{Name=world, DimensionId=0, DimensionType=minecraft:overworld, DimensionTypeId=0}, pos=BlockPos{x=7438, y=65, z=6816}, blockMetadata=-1}
    java.lang.ArrayIndexOutOfBoundsException: null
    Phases Remaining:

Minecraft : 1.12.2
SpongeAPI : 7.1.0-fb496dbf0
Sponge : 1.12.2-7.1.7-SNAPSHOT
SpongeForge : 1.12.2-2825-7.1.7-RC3774
Minecraft Forge :

I tried with NBT Explorer to open the region file, and I removed the tile entity searching for “oc:robot”, saved and uploaded to the server, but the error is still here.

How can I remove this definetely?

Could you post a full log? I think there should be more details above or below the part you posted.

Here it is, it’s this error repeating many times per seconds. The full server log is about 1,5gb for 3 playtime hours…

And here’s the startup log, from the boot to the first time the error occours. it’s about 800kb, so pastebin does not accept it

Found a few other errors:

It seems like a corrupt tile entity

java.lang.NoSuchMethodException: crazypants.enderio.base.EnderIO.checkModLists(java.util.Map, net.minecraftforge.fml.relauncher.Side)
at java.lang.Class.getDeclaredMethod( ~[?:1.8.0_161]
at<init>( [NetworkModHolder.class:?]
at [NetworkRegistry.class:?]
at net.minecraftforge.fml.common.FMLModContainer.constructMod( [FMLModContainer.class:?]
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke( ~[?:1.8.0_161]
at [minecraft_server.1.12.2.jar:?]
at$SynchronizedSubscriber.invokeSubscriberMethod( [minecraft_server.1.12.2.jar:?]
at$ [minecraft_server.1.12.2.jar:?]
at$DirectExecutor.execute( [minecraft_server.1.12.2.jar:?]
at [minecraft_server.1.12.2.jar:?]
at$PerThreadQueuedDispatcher.dispatch( [minecraft_server.1.12.2.jar:?]
at [minecraft_server.1.12.2.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer( [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage( [LoadController.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke( ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke( ~[?:1.8.0_161]
at [minecraft_server.1.12.2.jar:?]
at$SynchronizedSubscriber.invokeSubscriberMethod( [minecraft_server.1.12.2.jar:?]
at$ [minecraft_server.1.12.2.jar:?]
at$DirectExecutor.execute( [minecraft_server.1.12.2.jar:?]
at [minecraft_server.1.12.2.jar:?]
at$PerThreadQueuedDispatcher.dispatch( [minecraft_server.1.12.2.jar:?]
at [minecraft_server.1.12.2.jar:?]
at net.minecraftforge.fml.common.LoadController.redirect$onPost$zza000( [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage( [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.loadMods( [Loader.class:?]
at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading( [FMLServerHandler.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart( [FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b( [nz.class:?]
at [MinecraftServer.class:?]

And this

19:06:21] [Server thread/ERROR] [opencomputers]: Unexpected error loading a state of computer at (7438.5, 65.5, 6816.5). State: Paused. Unless you're upgrading/downgrading across a major version, please report this! Thank you.

And this

java.lang.Exception: could not read data
at li.cil.oc.server.machine.luac.NativeLuaArchitecture.load(NativeLuaArchitecture.scala:351) ~[NativeLuaArchitecture.class:?]
at li.cil.oc.server.machine.Machine.liftedTree1$1(Machine.scala:746) ~[Machine.class:?]
at li.cil.oc.server.machine.Machine.load(Machine.scala:745) ~[Machine.class:?]
at li.cil.oc.common.tileentity.traits.Computer$class.readFromNBTForServer(Computer.scala:152) ~[Computer$class.class:?]
at$cil$oc$common$tileentity$traits$RotatableTile$$super$readFromNBTForServer(RobotProxy.scala:34) ~[RobotProxy.class:?]
at li.cil.oc.common.tileentity.traits.RotatableTile$class.readFromNBTForServer(RotatableTile.scala:38) ~[RotatableTile$class.class:?]
at li.cil.oc.common.tileentity.RobotProxy.readFromNBTForServer(RobotProxy.scala:178) ~[RobotProxy.class:?]
at li.cil.oc.common.tileentity.traits.TileEntity$class.readFromNBT(TileEntity.scala:90) ~[TileEntity$class.class:?]
at li.cil.oc.common.tileentity.RobotProxy.func_145839_a(RobotProxy.scala:34) ~[RobotProxy.class:?]
at net.minecraft.tileentity.TileEntity.func_190200_a( ~[avj.class:?]
at ~[aye.class:?]
at net.minecraftforge.common.chunkio.ChunkIOProvider.syncCallback( ~[ChunkIOProvider.class:?]
at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad( ~[ChunkIOExecutor.class:?]
at ~[on.class:?]
at ~[on.class:?]
at$onProvideChunkHead$zmn000( ~[on.class:?]
at ~[on.class:?]
at ~[amu.class:?]
at net.minecraftforge.common.ForgeChunkManager.lambda$getPersistentChunksIterableFor$0( ~[ForgeChunkManager.class:?]
at$3$1.accept( ~[?:1.8.0_161]
at$2$1.accept( ~[?:1.8.0_161]
at java.util.Spliterators$IteratorSpliterator.tryAdvance( ~[?:1.8.0_161]
at$WrappingSpliterator.lambda$initPartialTraversalState$0( ~[?:1.8.0_161]
at$AbstractWrappingSpliterator.fillBuffer( [?:1.8.0_161]
at$AbstractWrappingSpliterator.doAdvance( [?:1.8.0_161]
at$WrappingSpliterator.tryAdvance( [?:1.8.0_161]
at java.util.Spliterators$1Adapter.hasNext( [?:1.8.0_161]
at$Builder.addAll( [minecraft_server.1.12.2.jar:?]
at$Builder.addAll( [minecraft_server.1.12.2.jar:?]
at net.minecraftforge.common.ForgeChunkManager.getPersistentChunksIterableFor( [ForgeChunkManager.class:?]
at [amu.class:?]
at org.spongepowered.common.SpongeImplHooks.getChunkIterator( [SpongeImplHooks.class:1.12.2-2825-7.1.7-RC3774]
at [oo.class:?]
at [oo.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q( [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q( [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p( [MinecraftServer.class:?]
at [MinecraftServer.class:?]
at [?:1.8.0_161]

Caused by: could not read data
at Method) ~[LuaStateFiveThree.class:?]
at ~[LuaState.class:?]
at li.cil.oc.server.machine.luac.PersistenceAPI.unpersist(PersistenceAPI.scala:164) ~[PersistenceAPI.class:?]
at li.cil.oc.server.machine.luac.NativeLuaArchitecture.load(NativeLuaArchitecture.scala:356) ~[NativeLuaArchitecture.class:?]

yes, that’s the corrupted entity. how the hell can I remove it? :frowning:

You can refresh the chunk. I have a small program that can detect and refresh the chunk if you want. Its still in alpha so not sure how good it is at detecting all issues

The chunk is chunkloaded, but the error is still present after a reboot. i don’t think it’s a corrupted chunk, it is an entity problem that is not recognized properly by sponge or something else. I simply have to remove it, if there’s a way

A TileEntity is a block that has some extra information, such as a chest or a furnace. The reason why i said refresh the chunk is because you can not remove a single block without loading the chunk … As your server crashes when the block is loaded you won’t be able to delete just the block.

So i agree its not a corrupt chunk but its essentially acting as one.
According the the dinnerbone website the chunk is X: 464 Z: 426

do you think I can remove it with MCEdit?

Possibly, ive never needed to use MCEdit, I know it modifies the world files without loading the full file, so your able to replace blocks, save schematics, etc. Not sure if your able to remove a tile entity and then replace the block it is connected to. But by all means try it. Just back up your world before hand.

Oh and “TileEntity” has had many different names over the years, including “BlockEntity” (the current name - sponge is a little behind for continuity reasons), “BlockState” (Bukkits name for them - these arnt directly tile entities, more data wrappers) so if you can not find TileEntity in MCEdit, look for those names

i have the same issue here exactly. the problem come from robots from opencomputer i search a lot and find an isue on the open computer git hub with this issue. the dev seam to say the problem is the compatibility betwen open computer and sponge. i’m steal looking for a solution if someone find the solution please help :sob:

If its a “compatibility issue” between the two mods then a the solution would be for either computer craft to update code to make it compatible with sponge or the other way around