[BUG] crash and freeze #526

Closed
opened 2023-09-27 10:50:02 +00:00 by ShaniMad · 19 comments
ShaniMad commented 2023-09-27 10:50:02 +00:00 (Migrated from github.com)

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Minecraft freezes and crashes for me

Expected Behavior

fix the crash please

Steps To Reproduce

I'm just playing and it happens randomly
I'm guessing there's something wrong with the pipes

Environment

- OS: Windows
- Java version: 17
- Minecraft version: 1.20.1
- Version: Forge 47.1.46

Anything else?

log

java.lang.NullPointerException: Supplier should not return null value
at net.minecraftforge.common.util.LazyOptional.getValue(LazyOptional.java:101) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?]
at net.minecraftforge.common.util.LazyOptional.getValueUnsafe(LazyOptional.java:110) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?]
at net.minecraftforge.common.util.LazyOptional.resolve(LazyOptional.java:210) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?]
at com.enderio.api.conduit.ticker.CapabilityAwareConduitTicker.lambda$tickColoredGraph$0(CapabilityAwareConduitTicker.java:28) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at java.util.Optional.flatMap(Optional.java:289) ~[?:?]
at com.enderio.api.conduit.ticker.CapabilityAwareConduitTicker.tickColoredGraph(CapabilityAwareConduitTicker.java:28) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at com.enderio.api.conduit.ticker.IIOAwareConduitTicker.tickGraph(IIOAwareConduitTicker.java:41) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at com.enderio.api.conduit.ticker.ILoadedAwareConduitTicker.tickGraph(ILoadedAwareConduitTicker.java:27) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at com.enderio.conduits.common.network.ConduitSavedData.tick(ConduitSavedData.java:278) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at com.enderio.conduits.common.network.ConduitSavedData.onLevelTick(ConduitSavedData.java:262) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at com.enderio.conduits.common.network.ConduitSavedData_onLevelTick_LevelTickEvent.invoke(.dynamic) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2384!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:318) ~[eventbus-6.0.5.jar%2384!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:298) ~[eventbus-6.0.5.jar%2384!/:?]
at net.minecraftforge.event.ForgeEventFactory.onPostLevelTick(ForgeEventFactory.java:957) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?]
at net.minecraft.server.MinecraftServer.m_5703
(MinecraftServer.java:1106) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703
(DedicatedServer.java:342) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:1043) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:900) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?]
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:275) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]

### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Minecraft freezes and crashes for me ### Expected Behavior fix the crash please ### Steps To Reproduce I'm just playing and it happens randomly I'm guessing there's something wrong with the pipes ### Environment ```markdown - OS: Windows - Java version: 17 - Minecraft version: 1.20.1 - Version: Forge 47.1.46 ``` ### Anything else? log java.lang.NullPointerException: Supplier should not return null value at net.minecraftforge.common.util.LazyOptional.getValue(LazyOptional.java:101) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?] at net.minecraftforge.common.util.LazyOptional.getValueUnsafe(LazyOptional.java:110) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?] at net.minecraftforge.common.util.LazyOptional.resolve(LazyOptional.java:210) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?] at com.enderio.api.conduit.ticker.CapabilityAwareConduitTicker.lambda$tickColoredGraph$0(CapabilityAwareConduitTicker.java:28) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at java.util.Optional.flatMap(Optional.java:289) ~[?:?] at com.enderio.api.conduit.ticker.CapabilityAwareConduitTicker.tickColoredGraph(CapabilityAwareConduitTicker.java:28) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at com.enderio.api.conduit.ticker.IIOAwareConduitTicker.tickGraph(IIOAwareConduitTicker.java:41) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at com.enderio.api.conduit.ticker.ILoadedAwareConduitTicker.tickGraph(ILoadedAwareConduitTicker.java:27) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at com.enderio.conduits.common.network.ConduitSavedData.tick(ConduitSavedData.java:278) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at com.enderio.conduits.common.network.ConduitSavedData.onLevelTick(ConduitSavedData.java:262) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at com.enderio.conduits.common.network.__ConduitSavedData_onLevelTick_LevelTickEvent.invoke(.dynamic) ~[EnderIO-1.20.1-6.0.20-alpha.jar%23273!/:6.0.20-alpha] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2384!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:318) ~[eventbus-6.0.5.jar%2384!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:298) ~[eventbus-6.0.5.jar%2384!/:?] at net.minecraftforge.event.ForgeEventFactory.onPostLevelTick(ForgeEventFactory.java:957) ~[forge-1.20.1-47.1.76-universal.jar%23336!/:?] at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:1106) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?] at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:342) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?] at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:1043) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?] at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:900) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?] at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:275) ~[server-1.20.1-20230612.114412-srg.jar%23331!/:?] at java.lang.Thread.run(Thread.java:833) [?:?]
justliliandev commented 2023-09-27 10:50:54 +00:00 (Migrated from github.com)

urgh, another one of those

urgh, another one of those
justliliandev commented 2023-09-27 10:56:23 +00:00 (Migrated from github.com)

there is something wrong with the thing the pipes are connecting to.
How often is "happens randomly"?
How many conduit systems do you have in that world? Is it small enough to figure out which blocks you are connecting them to by hand or should I create a debug build?

there is something wrong with the thing the pipes are connecting to. How often is "happens randomly"? How many conduit systems do you have in that world? Is it small enough to figure out which blocks you are connecting them to by hand or should I create a debug build?
ShaniMad commented 2023-09-27 11:04:57 +00:00 (Migrated from github.com)

We play with a huge group of friends, it crashes every day 6 times, there are a lot of pipes for everything, unfortunately I can’t say exactly what causes the crash

We play with a huge group of friends, it crashes every day 6 times, there are a lot of pipes for everything, unfortunately I can’t say exactly what causes the crash
justliliandev commented 2023-09-27 11:07:14 +00:00 (Migrated from github.com)

do you have access to the server? I'm creating a version that names the blockentity and capability that is broken, it would be nice if you could switch out the mod and send the crash report the next time this happens

do you have access to the server? I'm creating a version that names the blockentity and capability that is broken, it would be nice if you could switch out the mod and send the crash report the next time this happens
justliliandev commented 2023-09-27 11:51:57 +00:00 (Migrated from github.com)

https://cloud.hstin.de/public/a998d1bb9c9f
I tried to get the gh runner to build the jar, so you can download it from github, but this is just the code change in #527 build locally by me

https://cloud.hstin.de/public/a998d1bb9c9f I tried to get the gh runner to build the jar, so you can download it from github, but this is just the code change in #527 build locally by me
ShaniMad commented 2023-09-27 12:07:02 +00:00 (Migrated from github.com)
[crash-2023-09-27_12.03.02-server (1).txt](https://github.com/Team-EnderIO/EnderIO/files/12738341/crash-2023-09-27_12.03.02-server.1.txt)
ShaniMad commented 2023-09-27 12:08:31 +00:00 (Migrated from github.com)

Possibly a problem due to interaction with Flux Network
Item.of('fluxnetworks:flux_point', '{FluxData:{buffer:0L,customName:"",limit:800000L,networkID:42,priority:0}}')

Possibly a problem due to interaction with Flux Network Item.of('fluxnetworks:flux_point', '{FluxData:{buffer:0L,customName:"",limit:800000L,networkID:42,priority:0}}')
justliliandev commented 2023-09-27 12:14:16 +00:00 (Migrated from github.com)

eh, sorry, used the wrong exception: https://cloud.hstin.de/public/81fa8c6d1923
this should work now, sorry for that

eh, sorry, used the wrong exception: https://cloud.hstin.de/public/81fa8c6d1923 this should work now, sorry for that
ShaniMad commented 2023-09-27 12:18:06 +00:00 (Migrated from github.com)
[crash-2023-09-27_12.17.45-server.txt](https://github.com/Team-EnderIO/EnderIO/files/12738442/crash-2023-09-27_12.17.45-server.txt)
justliliandev commented 2023-09-27 12:39:12 +00:00 (Migrated from github.com)

ic3 violates the forge capability contract, you might be able to prevent this crash by putting a cap bank between the electric bat box and the conduit or just not connecting the bat box using conduits at all

ic3 violates the forge capability contract, you might be able to prevent this crash by putting a cap bank between the electric bat box and the conduit or just not connecting the bat box using conduits at all
lMozGl commented 2023-09-27 12:41:49 +00:00 (Migrated from github.com)

Oops.. In the "IC3" modification, some blocks work to determine the side and if the side does not have a connection, then it returns LazyOptional.empty(). Basically it is a "Charging Plate (BatBox)".
image

Oops.. In the "IC3" modification, some blocks work to determine the side and if the side does not have a connection, then it returns LazyOptional.empty(). Basically it is a "Charging Plate (BatBox)". ![image](https://github.com/Team-EnderIO/EnderIO/assets/62904709/bbe49fd2-4e45-473f-b433-dd16b5fc77c6)
justliliandev commented 2023-09-27 12:44:16 +00:00 (Migrated from github.com)

i can't even find industrial craft 3, is there a repo somewhere or a cf/modrinth page?

i can't even find industrial craft 3, is there a repo somewhere or a cf/modrinth page?
justliliandev commented 2023-09-27 12:45:21 +00:00 (Migrated from github.com)

LazyOptional.empty is not a problem, lazyoptional.of when the supplier returns null on query is the problem

LazyOptional.empty is not a problem, lazyoptional.of when the supplier returns null on query is the problem
ShaniMad commented 2023-09-27 13:03:17 +00:00 (Migrated from github.com)

thank you very much for your help!

thank you very much for your help!
justliliandev commented 2023-09-27 13:11:54 +00:00 (Migrated from github.com)

well, I guess I don't get any answers to my question

well, I guess I don't get any answers to my question
ShaniMad commented 2023-09-27 13:17:56 +00:00 (Migrated from github.com)

This is a private development of my friend, unfortunately we cannot provide links
and my friend found the problem on our side and fixed it, thanks to your hint

This is a private development of my friend, unfortunately we cannot provide links and my friend found the problem on our side and fixed it, thanks to your hint
lMozGl commented 2023-09-27 13:19:42 +00:00 (Migrated from github.com)

image

![image](https://github.com/Team-EnderIO/EnderIO/assets/62904709/069874d3-4f39-4767-a265-fce1b62f30ca)
justliliandev commented 2023-09-27 13:23:28 +00:00 (Migrated from github.com)

ah, okay, makes a lot of sense then how mozgi came in the comments 2 minutes after mentioning ic3, good luck with your port!

ah, okay, makes a lot of sense then how mozgi came in the comments 2 minutes after mentioning ic3, good luck with your port!
lMozGl commented 2023-09-28 17:37:34 +00:00 (Migrated from github.com)

Well, it's not really a port. You can consider this to be “improved” using the IC2 mod (in my opinion) + adding functionality from versions 1.18.2/1.19.2 (this mod has not yet been fully ported and has many flaws)

Well, it's not really a port. You can consider this to be “improved” using the IC2 mod (in my opinion) + adding functionality from versions 1.18.2/1.19.2 (this mod has not yet been fully ported and has many flaws)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Team-EnderIO/EnderIO#526
No description provided.