Closed MichaelRoesner closed 9 years ago
How do you actually reproduce this problem? Normally you should not be able to teleport if it has no destination. Can you give me the steps need to get this crash?
I had them linked up, then broke them while active. Placed them at a later time again and the Transmitters still had the "dialed"-glow.
Hmm rftools 2.53 is alrady rather old (we're at 2.75 now). So it is possible this is already fixed. If it is possible for you then upgrading might be a good idea.
As of 2.71, bad destinations can still cause server crashes (well, I assume that's what happened). In my case this issue was caused by #144 and having a matter transmitter linked to one of the missing worlds (I assumed the issue was that the world failed to load or something, but it likely fits in here).
I'm not exactly sure why it is wrong but in any case I will add a test to avoid the crash and make the code more robust. This will be in the next version (2.76). Thanks for reporting.
---- Minecraft Crash Report ---- // Ooh. Shiny.
Time: 4/10/15 5:44 AM Description: Ticking block entity
java.lang.NullPointerException: Ticking block entity at com.mcjty.rftools.blocks.teleporter.TeleportationTools.calculateRFCost(TeleportationTools.java:76) at com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity.startTeleportation(MatterTransmitterTileEntity.java:459) at com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity.searchForNearestPlayer(MatterTransmitterTileEntity.java:378) at com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity.checkStateServer(MatterTransmitterTileEntity.java:260) at com.mcjty.entity.GenericTileEntity.func_145845_h(GenericTileEntity.java:44) at net.minecraft.world.World.func_72939_s(World.java:1939) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head -- Stacktrace: at com.mcjty.rftools.blocks.teleporter.TeleportationTools.calculateRFCost(TeleportationTools.java:76) at com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity.startTeleportation(MatterTransmitterTileEntity.java:459) at com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity.searchForNearestPlayer(MatterTransmitterTileEntity.java:378) at com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity.checkStateServer(MatterTransmitterTileEntity.java:260) at com.mcjty.entity.GenericTileEntity.func_145845_h(GenericTileEntity.java:44)
-- Block entity being ticked -- Details: Name: MatterTransmitterTileEntity // com.mcjty.rftools.blocks.teleporter.MatterTransmitterTileEntity Block type: ID #2119 (tile.matterTransmitterBlock // com.mcjty.rftools.blocks.teleporter.MatterTransmitterBlock) Block data value: 0 / 0x0 / 0b0000 Block location: World: (-552,46,-444), Chunk: (at 8,2,4 in -35,-28; contains blocks -560,0,-448 to -545,255,-433), Region: (-2,-1; contains chunks -64,-32 to -33,-1, blocks -1024,0,-512 to -513,255,-1) Actual block type: ID #2119 (tile.matterTransmitterBlock // com.mcjty.rftools.blocks.teleporter.MatterTransmitterBlock) Actual block data value: 0 / 0x0 / 0b0000 Stacktrace: at net.minecraft.world.World.func_72939_s(World.java:1939) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
-- Affected level -- Details: Level name: world All players: 4 total; [EntityPlayerMP['kye73'/423872, l='world', x=861.95, y=75.00, z=-2507.54], EntityPlayerMP['Kaiden'/4319, l='world', x=-551.50, y=47.14, z=-443.21], EntityPlayerMP['awade'/1904827, l='world', x=-2651.50, y=75.10, z=-535.05], EntityPlayerMP['canilsen'/980997, l='world', x=-2656.31, y=87.60, z=-515.84]] Chunk stats: ServerChunkCache: 3108 Drop: 0 Level seed: 4723636470132641431 Level generator: ID 04 - ATG, ver 0. Features enabled: true Level generator options: Level spawn location: World: (206,73,-425), Chunk: (at 14,4,7 in 12,-27; contains blocks 192,0,-432 to 207,255,-417), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Level time: 45790869 game time, 16330 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 67629 (now: false), thunder time: 93363 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
-- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Linux (amd64) version 2.6.32-431.el6.x86_64 Java Version: 1.7.0_72, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1563074088 bytes (1490 MB) / 3583508480 bytes (3417 MB) up to 3817865216 bytes (3641 MB) JVM Flags: 3 total; -Xmx4096M -Xms128M -XX:MaxPermSize=256M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 4096 FML: MCP v9.05 FML v7.10.88.1307 Minecraft Forge 10.13.2.1307 206 mods loaded, 205 mods active mcp{9.05} Minecraft Coder Pack Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.88.1307} Forge Mod Loader Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1307} Minecraft Forge Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available AM2-Preloader{0.0.2} AMCore Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available appliedenergistics2-core{rv2-beta-8} AppliedEnergistics2 Core Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Aroma1997Core{1.0.2.13} Aroma1997Core Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available CodeChickenCore{1.0.4.35} CodeChicken Core Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available InfiniBows{1.3.0 build 20} InfiniBows Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ivtoolkit{IvToolkit} 1.0.3 Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available MobiusCore{1.2.3} MobiusCore Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available NotEnoughItems{1.0.4.94} Not Enough Items Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available OpenComputers|Core{1.0.0} OpenComputers (Core) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available OpenEye{0.6} OpenEye Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ThaumicTinkerer-preloader{0.1} Thaumic Tinkerer Core Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available OpenModsCore{0.6} OpenModsCore Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available