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.

Uncaught RangeError: "value" argument is out of bounds

See original GitHub issue

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


Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

akermencommented, Apr 23, 2020

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.

akermencommented, Apr 15, 2021

@steabert , Yes, with the main branch as of today as can be seen on the screen capture: Screen capture

Read more comments on GitHub >

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

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 Post

No results found

github_iconTop Related Hashnode Post

No results found