Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when seeding Caminandes 2 video on Instant.io #984

Closed
Chocobozzz opened this issue Nov 22, 2016 · 6 comments
Closed

TypeError when seeding Caminandes 2 video on Instant.io #984

Chocobozzz opened this issue Nov 22, 2016 · 6 comments

Comments

@Chocobozzz
Copy link
Contributor

@Chocobozzz Chocobozzz commented Nov 22, 2016

Hi,

When I want to seed Caminandes 2: Gran Dillama (http://www.caminandes.com/) on Instant.io I have an error and the video never plays on the video html tag:

bundle.js:2838 Uncaught TypeError: "list" argument must be an Array of Buffers(…)

Steps to reproduce:

Media info output: http://pastebin.com/r4MCrsxW

Thanks

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Nov 22, 2016

Could you share the bundle.js part around line 2838?

@Chocobozzz

This comment has been minimized.

Copy link
Contributor Author

@Chocobozzz Chocobozzz commented Nov 22, 2016

Sure.

Here the stacktrace: http://pastebin.com/HwF9pzyt

JS bundle part arount line 2838:

Buffer.concat = function concat (list, length) {
  if (!isArray(list)) {
    /* line 2838 -> */ throw new TypeError('"list" argument must be an Array of Buffers')
  }

  if (list.length === 0) {
    return Buffer.alloc(0)
  }

  var i
  if (length === undefined) {
    length = 0
    for (i = 0; i < list.length; ++i) {
      length += list[i].length
    }
  }

  var buffer = Buffer.allocUnsafe(length)
  var pos = 0
  for (i = 0; i < list.length; ++i) {
    var buf = list[i]
    if (!Buffer.isBuffer(buf)) {
      throw new TypeError('"list" argument must be an Array of Buffers')
    }
    buf.copy(buffer, pos)
    pos += buf.length
  }
  return buffer
}

The instant.io js complete bundle: bundle.txt

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Nov 23, 2016

I figured out the source of the bug. It originates many dependencies deep:

render-media > videostream > mp4-stream

PR to fix it: mafintosh/mp4-stream#15

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Nov 23, 2016

WOW, the PR literally got merged and released to npm before I left this comment. Nice, @mafintosh

@Chocobozzz

This comment has been minimized.

Copy link
Contributor Author

@Chocobozzz Chocobozzz commented Nov 23, 2016

You're awesome guys, big thanks to all of you 🎉

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.