Open-Systems-Pharmacology / MoBi

MoBi® is a software tool for multiscale physiological modeling and simulation
Other
31 stars 10 forks source link

Adding of reaction parameter to the list of references fails #1466

Closed PavelBal closed 3 months ago

PavelBal commented 3 months ago

The project here https://github.com/esqLABS/bug-reports/tree/cannot-open-simulation-294 was created with MoBi build 294.

image

Application: MoBi® 12.0.299

Object reference not set to an instance of an object.

Stack trace:

at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.refreshDisplayedSimulation(IMoBiSimulation simulation)
   at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.Handle(SimulationStatusChangedEvent eventToHandle)
   at OSPSuite.Utility.Events.EventPublisher.<>c__DisplayClass4_1`1.<PublishEvent>b__1()
   at OSPSuite.Utility.Exceptions.ExceptionManagerBase.Execute(Action action)

shown like 5 times or so.

rwmcintosh commented 3 months ago

This is caused by a previous bug reported https://github.com/Open-Systems-Pharmacology/MoBi/issues/1464 https://github.com/Open-Systems-Pharmacology/MoBi/issues/1476

Because we had allowed modules to be removed while still in use by simulations, the loading of simulations is stopped when a simulation could not be loaded due to a missing module.

Even though this specific simulation was intact, the simulation did not have a node in the Simulation Explorer window because not all simulations were fully loaded due to the previous error.