HttpDataAccessHelper.js fails to load .vti file on Firefox
See original GitHub issueFirefox v68 (Mac) and v67 (Windows) are failing to load .vti files with HttpDataAccessHelper, with the following message:
RangeError: attempting to construct out-of-bounds TypedArray on ArrayBuffer HttpDataAccessHelper.js:84
onreadystatechange HttpDataAccessHelper.js:84
The same files work fine on Chrome, Safari, and Edge.
Example: https://vue-vtkjs-viewport.netlify.com/#/example/basic
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Unable to Load big VTI files in VTK.JS - Web
Hi, I'm trying to load VTI files with size around 700MB. The error screenshot is attached for reference. The loading is tried with...
Read more >My javascript is not working on Firefox - Mozilla Support
When I follow the links to this cache entry, and I can see that the corresponding cache file does not exist. This is...
Read more >Only on Firefox "Loading failed for the <script> with source"
I just had the same issue on an application that is loading a script with a relative path. It appeared the script was...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This looks like a bug in Firefox. The netlify server is sending
Content-Encoding: gzip, but firefox isn’t decoding the data as it should be doing. If you pop into the debugger and check out the data, firefox is giving you the gzipped version of “0edblahblahblah.gz” (so two gzip layers). I think this is the relevant bug report for firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1269101I have a PoC demonstrating this issue. Chrome works just fine, but firefox fails to decompress when the received content has MIME gzip and the Content-Encoding is gzip. There also seems to be a size trigger, where datasets under 500 or so bytes will decompress just fine.
By Vue, I don’t mean vue.js but a view of a TypedArray like