Simulation with plotviz crashes on models with uninitialized input variables
Consider the following CIF specification:
input bool test;
Simulating this model with the plot visualizer on results in a crash. The output printed is
Using seed 902710006 for random automatic mode choice algorithm.
WARNING: No initial value provided for input variable "test", via the simulation option.
Simulation ended due to initialization failure.
ERROR: The application has crashed. Please always report crashes to the Eclipse ESCET development team.
REPORT: A crash report was generated in file <redacted>
The crash_report_2025-08-12_16-28-55-348_14350805855366805446.log points to
[Exception]
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "this.varDatas" is null
at org.eclipse.escet.cif.simulator.output.plotviz.PlotVisualizer.postUpdate(PlotVisualizer.java:175)
...
So something seems to be going wrong in properly terminating the application.