CyclopsMC / IntegratedDynamics

A Minecraft mod to take full and automated control of your appliances.
http://cyclopsmc.github.io/IntegratedDynamics/
MIT License
135 stars 62 forks source link

op_by_name crashes server #1381

Closed kirjorjos closed 3 months ago

kirjorjos commented 3 months ago

Issue type:


Short description:

Using the op_by_name operator caused a server crash, after reboot, display panel behaves inconsistently (as shown in 1378) even if card is taken out and put back in. In order to cause a 2nd crash, network must be updated by placing any network part on it or destroying any part of the network.

Steps to reproduce the problem:

  1. Get "Concat" as a string card
  2. Put it in the op_by_name "tab" in the LP
  3. Put the result in a display panel and "Concat" anywhere in the network

Expected behaviour:

If op_by_name isn't expecting that particular string, it should just display an X in the display panel.


Versions:

Log file:

crash-2024-08-14_06.18.56-server.txt

rubensworks commented 3 months ago

Thanks for reporting!

rubensworks commented 3 months ago

Note to self:

java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.toString()" because "uniqueName" is null
    at org.cyclops.integrateddynamics.core.evaluate.operator.OperatorRegistry.getOperator(OperatorRegistry.java:112) ~[IntegratedDynamics-1.19.2-1.23.0.jar%23116!/:1.23.0] {re:classloading}
    at org.cyclops.integrateddynamics.core.evaluate.operator.Operators.lambda$static$197(Operators.java:2942) ~[IntegratedDynamics-1.19.2-1.23.0.jar%23116!/:1.23.0] {re:classloading}
    at org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase.evaluate(OperatorBase.java:214) ~[IntegratedDynamics-1.19.2-1.23.0.jar%23116!/:1.23.0] {re:classloading}