node.js Unable to allocate ArrayBuffer
PHPz
PHPz 2017-04-17 11:37:43
[Node.js讨论组]

nodejs中创建arraybuffer失败,我的node版本是0.10.28,以下是代码:
代码只有一行

new ArrayBuffer(0)

这是错误信息:

Error: Unable to allocate ArrayBuffer.
at repl:1:2
at REPLServer.self.eval (repl.js:110:21)
at Interface. (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.EventEmitter.emit (events.js:98:17)
at emitKey (readline.js:1095:12)

PHPz
PHPz

学习是最好的投资!

全部回复(2)
大家讲道理

代码在哪?代码和报错信息都不全。
实测没有问题。是不是你的nodejs内存已满无法分配了

怪我咯

代码贴粗来~

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号