Open Gbergz opened 3 years ago
... it's been a while; no response though?
Seems like both cables have no capacitance and instantly transfer from source to destination. Both mods can fix this by having a network wide lock when simulating/actually transfering energy to prevent recursion.
Powah cables probably need a rework though due to the O(n^2)
memory usage where n is the cables in a network.
Versions:
Issue description:
This is from a user in my discord his description of the crash: (On a server) Just discovered an interaction between Powah energy cables and Pipez energy cable A Pipez energy cable was connected to a Powah energy cable, and when going to configure it to break the cable, it instead tried to pull energy in a loop? and crashed the server.
Steps to reproduce:
(SETUP EXAMPLE & VIDEO BELOW)
Setup
Video of the crash:
https://user-images.githubusercontent.com/26634554/116085951-9ed98b00-a69f-11eb-9008-af801af37e2c.mp4
Crash Report
https://gist.github.com/Gbergz/6c96f3c370e3ad180156e74c51e2556c
More Info:
Had a conversation with HenkelMax the Author / Creator of the Pipez Mod on their issue tracker about this issue. That issue can be found here: https://github.com/henkelmax/pipez/issues/33 | It contains more info on this crash.
Hopefully I've included enough info. - Gbergz