Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when adding Sensor Kit to non-complete Lapotronic Super Capacitor #16383

Closed
2 of 3 tasks
Loreili opened this issue May 26, 2024 · 2 comments
Closed
2 of 3 tasks

NPE when adding Sensor Kit to non-complete Lapotronic Super Capacitor #16383

Loreili opened this issue May 26, 2024 · 2 comments
Labels
Crash Status: Triage Issue awaiting triage. Remove once this issue is processed

Comments

@Loreili
Copy link

Loreili commented May 26, 2024

Your GTNH Discord Username

loreili

Your Pack Version

2.6.0

Your Server

Private Server

Java Version

Java 21

Type of Server

Vanilla Forge

Your Actions

  • Half-build a lapotronic super capacitor
  • Add a Gregtech Sensor Kit to the controller
  • Put the data card in to an Information Panel (I used non-advanced)

If the panel is in range, the server will crash - crash occurred for me after adding some range upgrades to the panel.

Crash Report

java.lang.ArithmeticException: / by zero
at java.base/java.math.BigDecimal.divideAndRound(Unknown Source) ~[?:?]
at java.base/java.math.BigDecimal.divide(Unknown Source) ~[?:?]
at java.base/java.math.BigDecimal.divide(Unknown Source) ~[?:?]
at java.base/java.math.BigDecimal.divide(Unknown Source) ~[?:?]
at RFB-Launch//util.Util.toPercentageFrom(Util.java:72) ~[Util.class:?]
at RFB-Launch//common.tileentities.GTMTE_LapotronicSuperCapacitor.getInfoData(GTMTE_LapotronicSuperCapacitor.java:918) ~[GTMTE_LapotronicSuperCapacitor.class:?]
at RFB-Launch//gregtech.api.metatileentity.BaseMetaTileEntity.getInfoData(BaseMetaTileEntity.java:2292) ~[BaseMetaTileEntity.class:?]
at RFB-Launch//gregtech.common.items.GT_SensorCard_Item.update(GT_SensorCard_Item.java:71) ~[GT_SensorCard_Item.class:?]
at RFB-Launch//gregtech.common.items.GT_SensorCard_Item.update(GT_SensorCard_Item.java:61) ~[GT_SensorCard_Item.class:?]
at RFB-Launch//shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.processCard(TileEntityInfoPanel.java:729) ~[TileEntityInfoPanel.class:?]
at RFB-Launch//shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.func_70296_d(TileEntityInfoPanel.java:752) ~[TileEntityInfoPanel.class:?]
at RFB-Launch//net.minecraft.inventory.Slot.func_75218_e(Slot.java:83) ~[aay.class:?]
at RFB-Launch//net.minecraft.inventory.Slot.func_75215_d(Slot.java:78) ~[aay.class:?]
at RFB-Launch//net.minecraft.inventory.Container.func_75144_a(SourceFile:222) ~[zs.class:?]
at RFB-Launch//net.minecraft.network.NetHandlerPlayServer.func_147351_a(NetHandlerPlayServer.java:883) ~[nh.class:?]
at RFB-Launch//net.minecraft.network.play.client.C0EPacketClickWindow.func_148833_a(SourceFile:32) ~[ix.class:?]
at RFB-Launch//net.minecraft.network.play.client.C0EPacketClickWindow.func_148833_a(SourceFile:10) ~[ix.class:?]
at RFB-Launch//net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) ~[ej.class:?]
at RFB-Launch//net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) [nc.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) [MinecraftServer.class:?]
at RFB-Launch//net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) [lt.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?]

net.minecraft.util.ReportedException: Ticking block entity
at RFB-Launch//net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:642) ~[MinecraftServer.class:?]
at RFB-Launch//net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) ~[lt.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) ~[MinecraftServer.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?]
Caused by: java.lang.ArithmeticException: / by zero
at java.base/java.math.BigDecimal.divideAndRound(Unknown Source) ~[?:?]
at java.base/java.math.BigDecimal.divide(Unknown Source) ~[?:?]
at java.base/java.math.BigDecimal.divide(Unknown Source) ~[?:?]
at java.base/java.math.BigDecimal.divide(Unknown Source) ~[?:?]
at RFB-Launch//util.Util.toPercentageFrom(Util.java:72) ~[Util.class:?]
at RFB-Launch//common.tileentities.GTMTE_LapotronicSuperCapacitor.getInfoData(GTMTE_LapotronicSuperCapacitor.java:918) ~[GTMTE_LapotronicSuperCapacitor.class:?]
at RFB-Launch//gregtech.api.metatileentity.BaseMetaTileEntity.getInfoData(BaseMetaTileEntity.java:2292) ~[BaseMetaTileEntity.class:?]
at RFB-Launch//gregtech.common.items.GT_SensorCard_Item.update(GT_SensorCard_Item.java:71) ~[GT_SensorCard_Item.class:?]
at RFB-Launch//gregtech.common.items.GT_SensorCard_Item.update(GT_SensorCard_Item.java:61) ~[GT_SensorCard_Item.class:?]
at RFB-Launch//shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.processCard(TileEntityInfoPanel.java:729) ~[TileEntityInfoPanel.class:?]
at RFB-Launch//shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.func_70296_d(TileEntityInfoPanel.java:752) ~[TileEntityInfoPanel.class:?]
at RFB-Launch//shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.func_145845_h(TileEntityInfoPanel.java:402) ~[TileEntityInfoPanel.class:?]
at RFB-Launch//net.minecraft.world.World.func_72939_s(World.java:1939) ~[ahb.class:?]
at RFB-Launch//net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489) ~[mt.class:?]
at RFB-Launch//net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636) ~[MinecraftServer.class:?]
... 4 more

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the crash still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this crash consistently by following the exact steps I described above.
  • I have asked other people and they confirm they also crash by following the exact steps I described above.
@Loreili Loreili added Status: Triage Issue awaiting triage. Remove once this issue is processed Crash labels May 26, 2024
@chochem
Copy link
Member

chochem commented May 26, 2024

duplicate of #16167 and a few others

@chochem chochem closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
@Loreili
Copy link
Author

Loreili commented May 26, 2024

Agh, failed on my search-fu before I opened. Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash Status: Triage Issue awaiting triage. Remove once this issue is processed
Projects
None yet
Development

No branches or pull requests

2 participants