Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entering 00 for breakpoint value causes errors in map. #28

Open
jmelott opened this issue Jan 21, 2022 · 1 comment
Open

Entering 00 for breakpoint value causes errors in map. #28

jmelott opened this issue Jan 21, 2022 · 1 comment
Labels
2.20.2 bug Something isn't working failed_retest

Comments

@jmelott
Copy link
Contributor

jmelott commented Jan 21, 2022

Resulting JavaScript errors in console:
Uncaught SyntaxError: Unexpected number in JSON at position 783
at JSON.parse ()
at ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:157:258
at ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:48:46
at FileReader.g.onload (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39:502)
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:157
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:48
g.onload @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
load (async)
getData @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
q @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:48
q @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:43
setTimeout (async)
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:43
writeUint8Array @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:43
f.onload @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
load (async)
b.readUint8Array @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
q @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:43
u @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:44
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:49
init @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:48
f.onload @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
load (async)
b.readUint8Array @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
g.getData @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:48
N @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:157
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:179
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:51
f.onload @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
load (async)
b.readUint8Array @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:49
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:47
f.onload @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
load (async)
b.readUint8Array @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
c @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:47
f @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:47
getEntries @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:49
NgChm.MMGR.getTileCache @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:179
y @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:51
(anonymous) @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:60
b.init @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:39
createReader @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:60
NgChm.MMGR.HeatMap @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:179
getHeatMap @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:139
NgChm.UTIL.displayFileModeCHM @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:214
b.onreadystatechange @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:210
XMLHttpRequest.send (async)
NgChm.UTIL.loadLocalModeCHM @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:210
NgChm.UTIL.onLoadCHM @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:207
NgChm.UTIL.embedCHM @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:232
req.onreadystatechange @ NGCHM_GUI_Util.js?v=NG-CHM GUI 2.20.2:324
XMLHttpRequest.send (async)
NgChmGui.UTIL.loadHeatMapView @ NGCHM_GUI_Util.js?v=NG-CHM GUI 2.20.2:333
NgChmGui.FORMAT.loadFormatView @ FormatOutput.js?v=NG-CHM GUI 2.20.2:1049
NgChmGui.FORMAT.applyComplete @ FormatOutput.js?v=NG-CHM GUI 2.20.2:80
req.onreadystatechange @ NGCHM_GUI_Util.js?v=NG-CHM GUI 2.20.2:203
XMLHttpRequest.send (async)
NgChmGui.UTIL.setHeatmapProperties @ NGCHM_GUI_Util.js?v=NG-CHM GUI 2.20.2:210
NgChmGui.UTIL.applySettings @ NGCHM_GUI_Util.js?v=NG-CHM GUI 2.20.2:252
onclick @ Format_Display.html?adv=N:50
2ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:169 Uncaught TypeError: Cannot read properties of null (reading 'data_configuration')
at NgChm.MMGR.HeatMap.getMapInformation (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:169:324)
at Object.NgChm.UTIL.mapHasGaps (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:230:157)
at Object.NgChm.SUM.resetBoxCanvas (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:392:204)
at Object.NgChm.SUM.drawLeftCanvasBox (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:396:128)
at Object.NgChm.SEL.updateSelection (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:301:51)
at HTMLCanvasElement.NgChm.SUM.onMouseOut (ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:379:229)
getMapInformation @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:169
NgChm.UTIL.mapHasGaps @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:230
NgChm.SUM.resetBoxCanvas @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:392
NgChm.SUM.drawLeftCanvasBox @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:396
NgChm.SEL.updateSelection @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:301
NgChm.SUM.onMouseOut @ ngchmWidget-min.js?v=NG-CHM GUI 2.20.2:379

@jmelott
Copy link
Contributor Author

jmelott commented Apr 20, 2023

Unexplained breaking error is gone, but should change error message to say:
ERROR: Color Thresholds contain an entry(s) with extra leading zero(s).
rather than
ERROR: Color Thresholds contain an entry(s) with leading zero(s).
As 1 leading zero such as 0.1 is allowed, but 00.1 isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.20.2 bug Something isn't working failed_retest
Projects
None yet
Development

No branches or pull requests

1 participant