我正在使用node.js和video.js插件提供静态视频文件(.ogv和.mov)。但是,node.js一直崩溃,出现以下错误消息:
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.
这是node.js代码:
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);
});
我的node.js版本是“ v0.10.4 ”
目录结构:
非常直接的静态文件服务。尝试在app.router之后放置express.static,并且在favicon之上,没有这样的运气。
欣赏任何建议。
答案 0 :(得分:1)
所以,为了完整起见:这是libuv
known bug has been solved is resolved以来0.10.9
。自0.10.11
以来{{3}}出现了类似的问题。