起風了
起風了
  • 发布:2021-04-29 09:53
  • 更新:2021-05-12 14:57
  • 阅读:1469

【报Bug】uni-app打包失败,提示: API fatal error handler returned after process out of memory

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10

HBuilderX类型: 正式

HBuilderX版本号: 3.1.12

浏览器平台: QQ内置浏览器

浏览器版本: 10.7

项目创建方式: HBuilderX

操作步骤:

直接发行h5

预期结果:

打包成功

实际结果:

[广告] 09:27:40.762 DCloud 2021新春招聘开启,欢迎前端、Android、C++/QT来投简历! 详情点击
[HBuilder] 09:27:40.769 项目 'erpv6mobile' 开始发布h5...
[HBuilder] 09:27:40.798 项目 'erpv6mobile' 开始编译...
[HBuilder] 09:27:44.881 正在编译中...
[HBuilder] 09:31:26.957 INFO Build optimizing...
[HBuilder] 09:31:26.957 DONE Build complete.
[HBuilder] 09:31:26.962 项目 'erpv6mobile' 编译成功。
[HBuilder] 09:31:27.598 开始差量编译...
[HBuilder] 09:43:19.372 #
[HBuilder] 09:43:19.374 # Fatal error in , line 0
[HBuilder] 09:43:19.381 # API fatal error handler returned after process out of memory
[HBuilder] 09:43:19.382 #
[HBuilder] 09:43:19.391 项目 'erpv6mobile' 发布h5失败.

bug描述:

关闭重启HbuilderX还是一样,尝试了很多次了,系统内存占用是50%,还有8G内存空间的.

[广告] 09:27:40.762 DCloud 2021新春招聘开启,欢迎前端、Android、C++/QT来投简历! 详情点击
[HBuilder] 09:27:40.769 项目 'erpv6mobile' 开始发布h5...
[HBuilder] 09:27:40.798 项目 'erpv6mobile' 开始编译...
[HBuilder] 09:27:44.881 正在编译中...
[HBuilder] 09:31:26.957 INFO Build optimizing...
[HBuilder] 09:31:26.957 DONE Build complete.
[HBuilder] 09:31:26.962 项目 'erpv6mobile' 编译成功。
[HBuilder] 09:31:27.598 开始差量编译...
[HBuilder] 09:43:19.372 #
[HBuilder] 09:43:19.374 # Fatal error in , line 0
[HBuilder] 09:43:19.381 # API fatal error handler returned after process out of memory
[HBuilder] 09:43:19.382 #
[HBuilder] 09:43:19.391 项目 'erpv6mobile' 发布h5失败.

2021-04-29 09:53 负责人:无 分享
已邀请:
gege22

gege22

请问这个问题现在解决了吗,我也遇到了一样的问题

  • 起風了 (作者)

    目前一次解决的方法是替换HbuilderX/plugins/node.exe (替换成node v8.17这个版本的)

    2021-05-25 15:50

  • 3***@qq.com

    回复 起風了: 哪里有这个版本的node

    2021-06-06 12:31

  • 起風了 (作者)

    回复 3***@qq.com: node官网

    2021-06-07 08:53

  • 3***@qq.com

    回复 起風了: 可以了,非常感谢

    2021-06-07 09:36

  • 3***@qq.com

    回复 3***@qq.com: 请问你是怎么解决的,能具体说说吗?

    2021-06-30 19:59

  • 3***@qq.com

    回复 3***@qq.com: 按楼主说的,用官网的nodev8.17替换了HbuilderX/plugins/node.exe就可以了

    2021-07-05 17:49

该问题目前已经被锁定, 无法添加新回复