GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

Crash when reception hatch connecting with transmission hatch in network switch

KingHorin opened this issue ยท 0 comments

commented

GregTech CEu Version

2.7.3

Modpack Used

No response

Addons Installed

No response

Environment

Singleplayer

Side Crashed

Server

New Worlds

Unsure

Steps to Reproduce

  1. Build research station, network switch, HPCA and connect them
  2. Add a reception hatch and a transmission hatch to the network switch. Don't use them
  3. Let research station work. Now the network switch will be distributing CWU and everything seems fine
  4. Once you connect the transmission hatch and recption hatch, the game will crash

Crash Report

Time: 2023-09-02 13:57:03 CST
Description: Ticking block entity

java.lang.StackOverflowError
at java.util.HashMap.hash(HashMap.java:339)
at java.util.HashMap.containsKey(HashMap.java:596)
at gregtech.api.pipenet.PipeNet.containsNode(PipeNet.java:75)
at gregtech.common.pipelike.optical.tile.TileEntityOpticalPipe.getOpticalPipeNet(TileEntityOpticalPipe.java:100)
at gregtech.common.pipelike.optical.tile.TileEntityOpticalPipe.checkNetwork(TileEntityOpticalPipe.java:86)
at gregtech.common.pipelike.optical.tile.TileEntityOpticalPipe.getCapabilityInternal(TileEntityOpticalPipe.java:78)
at gregtech.api.pipenet.tile.TileEntityPipeBase.getCapability(TileEntityPipeBase.java:311)
at gregtech.common.metatileentities.multi.multiblockpart.MetaTileEntityComputationHatch.getOpticalNetProvider(MetaTileEntityComputationHatch.java:118)
at gregtech.common.metatileentities.multi.multiblockpart.MetaTileEntityComputationHatch.canBridge(MetaTileEntityComputationHatch.java:106)
at gregtech.api.capability.IOpticalComputationProvider.canBridge(IOpticalComputationProvider.java:59)
at gregtech.common.pipelike.optical.net.OpticalNetHandler.traverseCanBridge(OpticalNetHandler.java:110)
at gregtech.common.pipelike.optical.net.OpticalNetHandler.canBridge(OpticalNetHandler.java:65)
at gregtech.common.metatileentities.multi.multiblockpart.MetaTileEntityComputationHatch.canBridge(MetaTileEntityComputationHatch.java:108)
at gregtech.api.capability.IOpticalComputationProvider.canBridge(IOpticalComputationProvider.java:59)
at gregtech.common.pipelike.optical.net.OpticalNetHandler.traverseCanBridge(OpticalNetHandler.java:110)
at gregtech.common.pipelike.optical.net.OpticalNetHandler.canBridge(OpticalNetHandler.java:65)
at
... (repeated)

Additional Information

According to the crash report, I think there is an infinite recursion or something causing stack overflow.