Esri / Esri/oriented-imagery

JavaScript error related to MRF reader

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
41
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I am testing a set of 'T' (terrestrial frame camera) images with depth maps on v2.4. The depth maps are in MRF format with LERC compression.

How to reproduce:
(Chrome v83)
1. Make sure the OIC window is small enough (e.g. 300x300)
2. Click to open an image (no need to click the 'Depth map' button)
3. Resize the browser window (e.g. 600x600)
4. Maximize the browser window

Upon maximizing the browser, the height of the OIC floating window becomes this:

Here is the browser log:
```
Uncaught TypeError: Cannot read property '0' of undefined
at Object.httpRangeRequest (mrfDataset.js:1)
at Object.readEntireImage (mrfDataset.js:1)
at Object.readEntireImage (dojo.js:42)
at Object.getNewDepthMRF (viewer.js:1)
at Object.getNewDepthImage (viewer.js:1)
at Object.resize (viewer.js:1)
at main.js:1
```

Then the app freezes, we are not able to interact with the map again.

Thanks.

Contributor guide

Open the contributing guide

Research direction

Reproduce the resize and maximize sequence in Chrome with a 300x300 OIC window and an image containing an LERC-compressed MRF depth map. Start with mrfDataset.js and follow the readEntireImage, getNewDepthMRF, and viewer.js resize call chain; done means maximizing no longer raises the undefined-property error or freezes the map.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.