Reputation: 687
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.
This is node.js code:
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 node.js version is "v0.10.4"
Directory structure:
A pretty straight forward static file serving. Tried placing express.static after app.router, and above favicon, no such luck.
Appreciate any advice render.
Upvotes: 4
Views: 617
Reputation: 4141
So, for the sake of completeness: This is a known bug in libuv
which has been solved since 0.10.9
. There has been a similar issue which is resolved since 0.10.11
.
Upvotes: 1