[BUG] crash and freeze #526
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#526
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there an existing issue for this?
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
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) [?:?]
urgh, another one of those
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?
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
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
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
crash-2023-09-27_12.03.02-server (1).txt
Possibly a problem due to interaction with Flux Network
Item.of('fluxnetworks:flux_point', '{FluxData:{buffer:0L,customName:"",limit:800000L,networkID:42,priority:0}}')
eh, sorry, used the wrong exception: https://cloud.hstin.de/public/81fa8c6d1923
this should work now, sorry for that
crash-2023-09-27_12.17.45-server.txt
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
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)".

i can't even find industrial craft 3, is there a repo somewhere or a cf/modrinth page?
LazyOptional.empty is not a problem, lazyoptional.of when the supplier returns null on query is the problem
thank you very much for your help!
well, I guess I don't get any answers to my question
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
ah, okay, makes a lot of sense then how mozgi came in the comments 2 minutes after mentioning ic3, good luck with your port!
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)