PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 234 forks source link

GlobalSensitivity Shiny Loading Error - VM #2053

Open tonygardella opened 6 years ago

tonygardella commented 6 years ago

image To Reproduce Steps to reproduce the behavior:

  1. Open Web GUI with pecan VM running by going to http://localhost:6480/ in local browser
  2. Click on 'Output Visualization'
  3. Click on "GlobalSensitivity"
  4. See error when loading.
tonygardella commented 6 years ago

Loads Fine once I disabled add-ons in my browser.

mdietze commented 6 years ago

How would a user know that they need to disable add-ons in their browser for this app to work? Is there a way to make our app work without requiring users to turn off their browser add-ons? I'm not sure I agree that this issue can be considered fixed at this point

robkooper commented 6 years ago

@tonygardella do you know what addon was the one that made it fail? Does it fail for other people?

serbinsh commented 6 years ago

@tonygardella @tonygardella @mdietze My Shiny apps are working without doing any sort of disabling of add ons, however this app is crashing for other reasons

2018-08-27 09:09:41 INFO   [read.output] :
   GPP NPP TotalResp AutoResp HeteroResp SoilResp NEE AbvGrndWood
   leaf_carbon_content TotLivBiom TotSoilCarb Qle Transp SoilMoist
   SoilMoistFrac SWE litter_carbon_content LAI fine_root_carbon_content
   coarse_root_carbon_content GWBI AGB Mean: 1.09e-07 5.23e-09 1.51e-07
   1.04e-07 4.77e-08 5.34e-08 4.25e-08 13.1 0.149 17.9 16.1 62.2 5.19e-05
   75.4 0.628 0.29 0.28 2.44 0.724 3.91 NaN 13.2 Median: 9.26e-10 -1.94e-09
   8.57e-08 7.36e-09 3.56e-08 4.09e-08 3.33e-08 12.6 0.00797 16.8 16.5 49.9
   3.24e-07 86.6 0.721 0 0.28 0.131 0.318 3.81 NA 12.6
Rbind ensemble output...
Load parameter values...
Get run samples...
Cbind ensemble samples...
Cbind ensemble output and samples...
plotEnsemble x:
plotEnsemble y:
Error in `[.data.frame`(ensemble.out, , x) : undefined columns selected
Error in `[.data.frame`(ensemble.out, , y) : undefined columns selected
Warning: Error in parse: <text>:2:0: unexpected end of input
1:  ~
   ^
  169: parse
  166: formula.character
  164: plotEnsemble
  163: renderPlot [/data/software/pecan_dev/shiny/global-sensitivity/server.R#72]
  161: func
  121: drawPlot
  107: <reactive:plotObj>
   91: drawReactive
   78: origRenderFunc
   77: output$ensemble_plot
    1: runApp
Ensemble out names: GPP, NPP, TotalResp, AutoResp, HeteroResp, SoilResp, NEE, AbvGrndWood, leaf_carbon_content, TotLivBiom, TotSoilCarb, Qle, Transp, SoilMoist, SoilMoistFrac, SWE, litter_carbon_content, LAI, fine_root_carbon_content, coarse_root_carbon_content, GWBI, AGB, runid, temperate.deciduous.ALL.growth_resp_factor, temperate.deciduous.ALL.root_respiration_rate, temperate.deciduous.ALL.root_turnover_rate, temperate.deciduous.ALL.SLA, temperate.deciduous.ALL.Amax, temperate.deciduous.ALL.leafC, temperate.deciduous.ALL.leaf_respiration_rate_m2, temperate.deciduous.ALL.psnTOpt, temperate.deciduous.ALL.stem_respiration_rate, temperate.deciduous.ALL.extinction_coefficient, temperate.deciduous.ALL.half_saturation_PAR, temperate.deciduous.ALL.dVPDSlope, temperate.deciduous.ALL.dVpdExp, temperate.deciduous.ALL.veg_respiration_Q10, temperate.deciduous.ALL.fine_root_respiration_Q10, temperate.deciduous.ALL.coarse_root_respiration_Q10, temperate.deciduous.ALL.fracLeafFall, temperate.deciduous.ALL.leafGrowth, temperate.deciduous.ALL.leaf_allocation_fraction, temperate.deciduous.ALL.root_allocation_fraction, temperate.deciduous.ALL.Vm_low_temp, temperate.deciduous.ALL.AmaxFrac, temperate.deciduous.ALL.wood_allocation_fraction, temperate.deciduous.ALL.leaf_turnover_rate, temperate.deciduous.ALL.wood_turnover_rate
fitSummary x:
fitSummary y:
Warning: Error in parse: <text>:2:0: unexpected end of input
1:  ~
   ^
  115: parse
  112: formula.character
  110: fitSummary
  109: <reactive:lm_fit> [/data/software/pecan_dev/shiny/global-sensitivity/server.R#83]
   93: lm_fit
   92: renderTable
   91: func
   78: origRenderFunc
   77: output$coef_table
    1: runApp
Warning: Error in parse: <text>:2:0: unexpected end of input
1:  ~
   ^
  96: <Anonymous>
plotEnsemble x: temperate.deciduous.ALL.growth_resp_factor
plotEnsemble y: GPP
Ensemble out names: GPP, NPP, TotalResp, AutoResp, HeteroResp, SoilResp, NEE, AbvGrndWood, leaf_carbon_content, TotLivBiom, TotSoilCarb, Qle, Transp, SoilMoist, SoilMoistFrac, SWE, litter_carbon_content, LAI, fine_root_carbon_content, coarse_root_carbon_content, GWBI, AGB, runid, temperate.deciduous.ALL.growth_resp_factor, temperate.deciduous.ALL.root_respiration_rate, temperate.deciduous.ALL.root_turnover_rate, temperate.deciduous.ALL.SLA, temperate.deciduous.ALL.Amax, temperate.deciduous.ALL.leafC, temperate.deciduous.ALL.leaf_respiration_rate_m2, temperate.deciduous.ALL.psnTOpt, temperate.deciduous.ALL.stem_respiration_rate, temperate.deciduous.ALL.extinction_coefficient, temperate.deciduous.ALL.half_saturation_PAR, temperate.deciduous.ALL.dVPDSlope, temperate.deciduous.ALL.dVpdExp, temperate.deciduous.ALL.veg_respiration_Q10, temperate.deciduous.ALL.fine_root_respiration_Q10, temperate.deciduous.ALL.coarse_root_respiration_Q10, temperate.deciduous.ALL.fracLeafFall, temperate.deciduous.ALL.leafGrowth, temperate.deciduous.ALL.leaf_allocation_fraction, temperate.deciduous.ALL.root_allocation_fraction, temperate.deciduous.ALL.Vm_low_temp, temperate.deciduous.ALL.AmaxFrac, temperate.deciduous.ALL.wood_allocation_fraction, temperate.deciduous.ALL.leaf_turnover_rate, temperate.deciduous.ALL.wood_turnover_rate
fitSummary x: temperate.deciduous.ALL.growth_resp_factor
fitSummary y: GPP
serbinsh commented 6 years ago

I take that back, I am getting those errors BUT the app is running and generating the plots.

serbinsh commented 6 years ago

For example

screen shot 2018-08-27 at 9 11 04 am

screen shot 2018-08-27 at 9 12 09 am

serbinsh commented 6 years ago

One request I would make for this app is to not automatically load the last workflow ID when loading the app but instead ask which workflow to load before loading any outputs. Auto loading is bad if the last workflow ID in the list crashed. @tonygardella

serbinsh commented 6 years ago

That said, with MAAT I am getting these errors?

Warning: Error in eval: object 'GPP' not found
  118: eval
  117: eval
  116: model.frame.default
  111: fitSummary
  110: <reactive:lm_fit> [/data/software/pecan_dev/shiny/global-sensitivity/server.R#83]
   94: lm_fit
   92: renderText [/data/software/pecan_dev/shiny/global-sensitivity/server.R#89]
   91: func
   78: origRenderFunc
   77: output$r2
    1: runApp
Warning: Error in eval: object 'GPP' not found
  95: <Anonymous>
plotEnsemble x: temperate.deciduous.leaf_respiration_Q10
plotEnsemble y: leaf_respiration
Error in `[.data.frame`(ensemble.out, , y) : undefined columns selected
Warning: Error in eval: object 'leaf_respiration' not found
  172: eval
  171: eval
  170: <Anonymous>
  164: plotEnsemble
  163: renderPlot [/data/software/pecan_dev/shiny/global-sensitivity/server.R#72]
  161: func
  121: drawPlot
  107: <reactive:plotObj>
   91: drawReactive
   78: origRenderFunc
   77: output$ensemble_plot
    1: runApp
Ensemble out names: Simulation.Year, Fraction.of.Julian.Date, Gross.Primary.Productivity, Leaf.Respiration.Rate, Leaf.Stomatal.Conductance, Leaf.Internal.CO2.Concentration, Leaf.Mesophyll.CO2.Concentration, runid, temperate.deciduous.leaf_reflect_vis, temperate.deciduous.Hd_Modified_Arrhenius_Vcmax, temperate.deciduous.Ha_Modified_Arrhenius_Vcmax, temperate.deciduous.leaf_respiration_Q10, temperate.deciduous.f_frac, temperate.deciduous.Hd_Modified_Arrhenius_Jmax, temperate.deciduous.Ha_Modified_Arrhenius_Jmax, temperate.deciduous.theta, temperate.deciduous.leaf_width, temperate.deciduous.leaf_trans_vis, temperate.deciduous.leaf_respiration_rate_m2, temperate.deciduous.Jmax, temperate.deciduous.Vcmax, temperate.deciduous.stomatal_slope.BB
fitSummary x: temperate.deciduous.leaf_respiration_Q10
fitSummary y: leaf_respiration
Warning: Error in eval: object 'leaf_respiration' not found
  118: eval
  117: eval
  116: model.frame.default
  111: fitSummary
  110: <reactive:lm_fit> [/data/software/pecan_dev/shiny/global-sensitivity/server.R#83]
   94: lm_fit
   92: renderText [/data/software/pecan_dev/shiny/global-sensitivity/server.R#89]
   91: func
   78: origRenderFunc
   77: output$r2
    1: runApp
Warning: Error in eval: object 'leaf_respiration' not found
  95: <Anonymous>

despite those showing up as options?

screen shot 2018-08-27 at 9 15 44 am

serbinsh commented 6 years ago

Also seeing this in the log for ED2


   AbvGrndWood AutoResp CO2CAS CropYield GPP HeteroResp NEE NPP TotalResp
   TotLivBiom TotSoilCarb Fdepth SnowDepth SnowFrac Tdepth CO2air LWdown
   Psurf Qair Rainf SWdown Tair Wind LWnet Qg Qh Qle SWnet RootMoist TVeg
   WaterTableD fPAR LAI SMFrozFrac SMLiqFrac SoilMoist SoilTemp SoilWet
   Albedo SnowT SWE VegT Evap Qs Qsb SoilResp Mean: NaN NaN NaN NaN NaN NaN
   NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
   NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
   NaN NaN NaN NaN Median: NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
   NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
   NA NA NA NA NA NA```
github-actions[bot] commented 4 years ago

This issue is stale because it has been open 365 days with no activity.