Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Crashes when serving video file #5569

Closed
pocheng opened this issue May 27, 2013 · 2 comments
Closed

Crashes when serving video file #5569

pocheng opened this issue May 27, 2013 · 2 comments

Comments

@pocheng
Copy link

pocheng commented May 27, 2013

I'm serving static video files (.ogv and .mov) with node.js and video.js plugin. However, node.js keeps crashing with below error message:

node: ../deps/uv/src/unix/stream.c:1319: uv_read_stop: Assertion `!uv__io_active(&stream->io_watcher, 4) || !(&stream->write_completed_queue == (&stream->write_completed_queue)->prev) || !(&stream->write_queue == (&stream->write_queue)->prev) || stream->shutdown_req != ((void *)0) || stream->connect_req != ((void *)0)' failed.

My codes:

app.configure (function () {
    app.set ('views', path.join (__dirname, 'templates'));
    app.set ('view engine', 'jade');

    app.use (express.favicon (path.join (__dirname, '/img/favicon.ico')));

    app.use ('/video', express.static (path.join (__dirname, 'public')));
    app.use (express.static (path.join (__dirname, 'public'))); 

    //bodyParser, methodOverride, cookieParser and session calls here

    app.use (app.router);
});

My intended .ogv file size is 14MB, .mov is 58MB.

node.js version 0.10.8
Ubuntu 12.04 LTS 32 bits.

I tested with 1MB .ogv, it run just fine though. Thanks.

@aphix
Copy link

aphix commented May 27, 2013

I can confirm that I get the same error (followed by "Aborted (core dumped)") with a 4.89MB .mp4 video file; served in an HTML5 video element via Jade & Express.

Strangely, the error is not thrown when visited via a LAN IP (a VirtualBox in my tests), but is thrown when visited via a FQDN (same app/VirtualBox).

Also running Node 0.10.8 (Same code wasn't having the issue with prior version- unsure which)
Ubuntu 13.04

Looking into the crash dump now for more info.

@tjfontaine
Copy link

dup of #5562 fixed in joyent/libuv@b38c9c1 will be in the next 0.10 release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants