Uncaught RangeError: "value" argument is out of bounds
See original GitHub issueThe browser example seems to give an exception when opened from more than one browser windows.
To reproduce this just clone the master branch and run commands below:
git clone https://github.com/AxisCommunications/media-stream-library-js.git .
npm install
yarn build
yarn examples
yarn rtsp
Then open the http://localhost:8080/test/h264.html
address from two browser sessions.
The error message at the console:
isom.ts:1345 Uncaught RangeError: "value" argument is out of bounds
at checkInt (index.js:1259)
at Uint8Array.writeUInt32BE (index.js:1369)
at UInt32BE.eval [as copy] (isom.ts:343)
at Box.copy (isom.ts:1333)
at Container.copy (isom.ts:1333)
at Container.copy (isom.ts:1333)
at Transform.transform [as _transform] (index.ts:147)
at Transform._read (_stream_transform.js:184)
at Transform._write (_stream_transform.js:172)
at doWrite (_stream_writable.js:428)
I know the Docker RTSP streaming is meant for testing only but this message may be related to an generic issue not specific to the test stream.
![exc1](https://user-images.githubusercontent.com/6176664/69787960-8b866f80-11ce-11ea-84b2-840dcb210303.png)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
RangeError - JavaScript - MDN Web Docs
A RangeError is thrown when trying to pass a value as an argument to a function that does not allow a range that...
Read more >Cassandra - TypeError: "value" argument is out of bounds
You are trying to set a value to something > 2^31-1 which is the max represented value in signed 32 bit integer.
Read more >RangeError: precision is out of range - JavaScript
The JavaScript exception "precision is out of range" occurs when a number that's outside of the range of 0 and 20 (or 21)...
Read more >JavaScript RangeErrors and How to Prevent Them
A RangeError is used to convey to a user that a value was passed into a function that does not accept an input...
Read more >10.2 Exceptions - Racket Documentation
The lower-bound and upper-bound arguments specify the valid range of indices, inclusive; if upper-bound is below lower-bound, the value is characterized as “ ......
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
Thank you @ramoncaldeira for detailed debug information.
First I thought I could fix by just modifying the test stream generation, but experienced same issue consistently with a live stream from internet (a broadcast tv station) which I have no control of. Unfortunately the live stream appears to be not public anymore.
What I understand is as you point out non-monotonic timestamp although should not happen but at the same time can be expected.
@steabert , Yes, with the main branch as of today as can be seen on the screen capture: Screen capture