How to remove TileEntity

Hello,

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}
    org.spongepowered.asm.util.PrettyPrinter@c87b7df
    ****************************************************************************************************************************************************************************************************************/
    StackTrace:
    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 : 14.23.5.2825

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

https://we.tl/t-HELtXyFU8Z

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(Class.java:2130) ~[?:1.8.0_161]
at net.minecraftforge.fml.common.network.internal.NetworkModHolder.<init>(NetworkModHolder.java:246) [NetworkModHolder.class:?]
at net.minecraftforge.fml.common.network.NetworkRegistry.register(NetworkRegistry.java:299) [NetworkRegistry.class:?]
at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:606) [FMLModContainer.class:?]
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [minecraft_server.1.12.2.jar:?]
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:217) [minecraft_server.1.12.2.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219) [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197) [LoadController.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [minecraft_server.1.12.2.jar:?]
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [minecraft_server.1.12.2.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:217) [minecraft_server.1.12.2.jar:?]
at net.minecraftforge.fml.common.LoadController.redirect$onPost$zza000(LoadController.java:568) [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136) [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593) [Loader.class:?]
at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98) [FMLServerHandler.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333) [FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125) [nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) 

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: li.cil.repack.com.naef.jnlua.LuaRuntimeException: 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 li.cil.oc.common.tileentity.RobotProxy.li$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(TileEntity.java:120) ~[avj.class:?]
at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:494) ~[aye.class:?]
at net.minecraftforge.common.chunkio.ChunkIOProvider.syncCallback(ChunkIOProvider.java:101) ~[ChunkIOProvider.class:?]
at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:94) ~[ChunkIOExecutor.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118) ~[on.class:?]
at net.minecraft.world.gen.ChunkProviderServer.func_186028_c(ChunkProviderServer.java:89) ~[on.class:?]
at net.minecraft.world.gen.ChunkProviderServer.redirect$onProvideChunkHead$zmn000(ChunkProviderServer.java:679) ~[on.class:?]
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:135) ~[on.class:?]
at net.minecraft.world.World.func_72964_e(World.java:310) ~[amu.class:?]
at net.minecraftforge.common.ForgeChunkManager.lambda$getPersistentChunksIterableFor$0(ForgeChunkManager.java:146) ~[ForgeChunkManager.class:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_161]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_161]
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812) ~[?:1.8.0_161]
at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294) ~[?:1.8.0_161]
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206) [?:1.8.0_161]
at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169) [?:1.8.0_161]
at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300) [?:1.8.0_161]
at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681) [?:1.8.0_161]
at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:436) [minecraft_server.1.12.2.jar:?]
at com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:534) [minecraft_server.1.12.2.jar:?]
at net.minecraftforge.common.ForgeChunkManager.getPersistentChunksIterableFor(ForgeChunkManager.java:146) [ForgeChunkManager.class:?]
at net.minecraft.world.World.getPersistentChunkIterable(World.java:3931) [amu.class:?]
at org.spongepowered.common.SpongeImplHooks.getChunkIterator(SpongeImplHooks.java:1582) [SpongeImplHooks.class:1.12.2-2825-7.1.7-RC3774]
at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:1983) [oo.class:?]
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:225) [oo.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]

Caused by: li.cil.repack.com.naef.jnlua.LuaRuntimeException: could not read data
at li.cil.repack.com.naef.jnlua.LuaStateFiveThree.lua_pcall(Native Method) ~[LuaStateFiveThree.class:?]
at li.cil.repack.com.naef.jnlua.LuaState.call(LuaState.java:681) ~[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