question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HttpDataAccessHelper.js fails to load .vti file on Firefox

See original GitHub issue

Firefox 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
florystcommented, Jul 24, 2019

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=1269101

I 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.

1reaction
jourdaincommented, Jul 19, 2019

By Vue, I don’t mean vue.js but a view of a TypedArray like

const bytes = new Uint8Array(...);
const float = new Float32Array(bytes, 3, 10); // <-- this is a vue of the data
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found