dmpstats / stochCRM

Graphical User Interface (GUI) developed for a stochastic avian Collision Risk Model (CRM)
7 stars 1 forks source link

Disconnected from server on simulation runs #2

Closed grwhumphries closed 5 years ago

grwhumphries commented 6 years ago

Getting a 'disconnected from server' error when simulations are run.

bcaneco commented 6 years ago

Hi Grant. Are you allowing the app to populate all the fields in each species-specific tab before hitting the simulation button? If you jump straight to the simulation tab before the species features are defined (i.e. activating their panels), it will crash.

There is a shiny option to populate all fields automatically at launching (as opposed to only when the panel is viewed, as it is currently), but that will probably result in an even slower rendering at launch.

Cheers

grwhumphries commented 6 years ago

Aye - I am, but a potential solution might be to not allow access to the simulation tab until after the species features are defined. Or grey out the selection functions in the simulation tab until conditions are met - otherwise, set a warning message.

bcaneco commented 6 years ago

So, is it still crashing if you go through the species tabs before starting the simulation?

Thanks for the suggestions - a warning device of that sort was already under consideration for the next coding iteration.