Closed BobBooth closed 6 years ago
@kgonzago - ERG issue found testing for solutions-erg-widget/issues/87
Perhaps it has something to do with having "IDNum": 0, That seems to be something the ones that failed share. https://github.com/Esri/solutions-erg-widget/blob/dev/EmergencyResponseGuide/guide/materials.json
@kgonzago - I had one tab lock up to the point that I had to kill it from Task Manager. If a chrome.DMP file would be useful to you I can share.
@adgiles - FYI
I suspect that it is the "IDNum":0 issue. There are 63 instances in the https://github.com/Esri/solutions-erg-widget/blob/dev/EmergencyResponseGuide/guide/materials.json file that match this pattern. I went to the next one on the list (line 947) and tried Molten Aluminum... it locked up the app too.
Adding showstopper since application becomes unresponsive.
This is the Firefox Console output starting at the CreateERGButtonClicked event to where I terminated it after it hung.
Error: Script terminated by timeout at: m</g.gf@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:171:194 m</g.Ph@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:177:323 b</a.prototype.tS@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:492:347 b</a.buffer@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:479:484 m</g.prototype.oN@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:667:22 m</g.prototype.next@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:666:417 m</b.prototype.$@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:665:408 m</g.buffer@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:532:3 d.geodesicBuffer@https://jsdev.arcgis.com/3.24/esri/geometry/geometryEngine.js:1093:163 _CreateERGButtonClicked@https://username.esri.com:3344/webappbuilder/apps/7/widgets/EmergencyResponseGuide/Widget.js?wab_dv=2.8:1038:28 hitch/<@https://jsdev.arcgis.com/3.24/init.js:63:335
I thought it was only materials that contained the word substances that had a guide number of 0, but it looks like this is incorrect. This is a fairly quick fix. Line 1005 just needs changing from:
if(this._selectedMaterial.Material.includes('Substances') || this._selectedMaterial.BLEVE) {
to:
if(this._selectedMaterial.IDNum === 0 || this._selectedMaterial.BLEVE) {
@kgonzago - would you give this a shot? Thanks, Bob
@BobBooth Working on an existing issue with D&D and will pivot to this issue when done.
@BobBooth Is this issue in Devtopia as well? If not, would you mind creating one? Thank you.
Issue submitted and fix addressed in this PR. Should be in tomorrow's build for testing.
removed automated checklist test labels because we are not doing automated testing on the widgets
the fix suggested by @adgiles works, however it did not make it into the daily snapshot for 8Mar2018. I tested with Carbon monoxide (refrigerated liquid), Galium and Mercury, and Lithium Ion Batteries
I checked and the correct code is currently in the develop branch, so I'm leaving this here until someone can test from the daily snapshot
This is not happening on DevExt (9March2018 1142)
updated checklist test to account for materials that have no ID number
updated checklist test to make sure materials with BLEVE isolation zones are working correctly.
removed G-QA Create checklist
verified the issue does not happen on DevExt DevExt (9March2018 1142) also @topowright observed that it does not on his own account on DevExt as well -removing G-QC Verify checklist
Bug: I used the ERG widget to make a series of outputs, testing various of the material types.
Most types worked well, but some froze the app, made the tab go unresponsive.
Repro steps: Add widget to web app, save, launch. Open widget, zoom to a test area, Add a point by clicking on the map. Select a material type. Specify large or small, time of day, wind direction, fire isolation on. Click Create Zones.
Of 21 materials tested, 3 caused app to lock up. Fails: Organic Peroxide (Heat, contamination, and Friction) Adsorbed Gasses Toxic Adsorbed Gasses Toxic (may also be flammable)
Works: Heavy Crude LPG AC (Weaponized Hydrogen Cyanide) Acetyl bromide Aluminum Bromide Boron Tribromide Boron Tribromide- land Bromine Bromine Chloride Acetyl iodide (when spilled in water) Acetyl Chloride admasite Arsenic CL Arsenic 3CL Arsine DA (weaponized) 2-Chloroethanol 3,5-Dichloro-2,4,6-trifluoropyridine
It would be interesting to compare the items that fail to the ones that work - is there some difference in the table they reference?
Repo Steps or Enhancement details
Testing on arcgis-web-appbuilder-2.8-snapshot from 3/5/18 Chrome
Screenshots