易软
易软
  • 发布:2023-03-15 15:22
  • 更新:2024-11-14 10:17
  • 阅读:1878

uniAPP 打包失败 版本 3.7.6

分类:uni-app

用的alpha版本 现在进行自定义基座的打包(云打包)提示
[HBuilder] 15:11:47.719 <--- Last few GCs --->
[HBuilder] 15:11:47.719 [21040:04EF0BC8] 134054 ms: Mark-sweep 809.0 (869.6) -> 804.0 (871.8) MB, 1296.2 / 0.0 ms (average mu = 0.438, current mu = 0.024) allocation failure scavenge might not succeed
[HBuilder] 15:11:47.725 [21040:04EF0BC8] 135190 ms: Mark-sweep 811.8 (871.8) -> 806.8 (874.8) MB, 1117.5 / 0.0 ms (average mu = 0.263, current mu = 0.016) allocation failure scavenge might not succeed
[HBuilder] 15:11:47.728 <--- JS stacktrace --->
[HBuilder] 15:11:47.729 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
[HBuilder] 15:11:47.731 1: 0119A38F v8::internal::Heap::AllocateExternalBackingStore+1551

提示内存溢出 ?工程大没的发啊!怎么解决呢

2023-03-15 15:22 负责人:DCloud_HB_WKP 分享
已邀请:
易软

易软 (作者)

我现在测试 用的aplhaba版本 直接改成10000就可以了 打包就用正式的版本打

5***@qq.com

5***@qq.com - 哈哈哈

我今天也遇到这个问题了,请问你这个问题解决了吗?

[HBuilder] 17:03:46.273 <--- Last few GCs --->
[HBuilder] 17:03:46.287 [1389:0x7fa581a00000] 685856 ms: Mark-sweep 2013.0 (2082.7) -> 1998.3 (2083.7) MB, 1757.0 / 0.1 ms (average mu = 0.097, current mu = 0.023) allocation failure scavenge might not succeed
[HBuilder] 17:03:46.319 [1389:0x7fa581a00000] 687472 ms: Mark-sweep 2014.3 (2083.9) -> 1999.5 (2085.2) MB, 1567.1 / 0.1 ms (average mu = 0.065, current mu = 0.030) allocation failure scavenge might not succeed
[HBuilder] 17:03:46.335 <--- JS stacktrace --->
[HBuilder] 17:03:46.351 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[HBuilder] 17:03:46.380 1: 0x105edf205 node::Abort() (.cold.1) [/Applications/HBuilderX.app/Contents/HBuilderX/plugins/node/node]
[HBuilder] 17:03:46.391 2: 0x104be04d9 node::Abort() [/Applications/HBuilderX.app/Contents/HBuilderX/plugins/node/node]
[HBuilder] 17:03:46.392 3: 0x104be064f node::OnFatalError(char const, char const) [/Applications/HBuilderX.app/Contents/HBuilderX/plugins/node/node]
[HBuilder] 17:03:46.405 4: 0x104d53b07 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [/Applications/HBuilderX.app/Contents/HBuilderX/plugins/node/node]

  • 易软 (作者)

    设置改 之前默认是5000 改成10000

    2023-04-04 11:42

1***@qq.com

1***@qq.com

你好,这个问题解决了吗,我也遇到这个问题了

npm install -g increase-memory-limit 我安装了这个 不行
在环境变量那里增加node内存 也不行
uniapp里面运行配置那里 运行大小也增大了都不行
还想问下有啥办法吗

2***@qq.com

2***@qq.com

本地运行类似问题:3.7.9,也是各种方法都试了

15:47:59.609 <--- Last few GCs --->  
15:47:59.614 [29216:046BA560]   123445 ms: Scavenge 1332.0 (1397.7) -> 1326.8 (1399.2) MB, 67.5 / 0.0 ms  (average mu = 0.995, current mu = 0.994) allocation failure   
15:47:59.616 [29216:046BA560]   123697 ms: Scavenge 1333.4 (1399.2) -> 1327.9 (1400.7) MB, 72.1 / 0.0 ms  (average mu = 0.995, current mu = 0.994) allocation failure   
15:47:59.619 [29216:046BA560]   123988 ms: Scavenge 1334.6 (1400.7) -> 1328.9 (1401.7) MB, 82.3 / 0.0 ms  (average mu = 0.995, current mu = 0.994) allocation failure   
15:47:59.620 <--- JS stacktrace --->  
15:47:59.623 FATAL ERROR: NewSpace::Rebalance Allocation failed - JavaScript heap out of memory
  • 1***@qq.com

    一样,真不知道怎么办了,我是h5运行多次的情况下会出现这个问题,h5打包也会出现,自定义基座也会出现

    2023-04-17 15:53

2***@qq.com

2***@qq.com

现在过了一段时间,中间重启了几次,每次重启能打开一个页面看一眼,然后就崩了,现在重启都起不来了

16:56:51.029 <--- Last few GCs --->  
16:56:51.029 <--- JS stacktrace --->  
16:56:51.035 #  
16:56:51.036 # Fatal javascript OOM in GC during deserialization
2***@qq.com

2***@qq.com

等待64位版本上线或尝试使用alpha版本

星海扬帆

星海扬帆 - 星帆云海

还未解决么?我的node版本已经是64位了,内存配置50000,仍然报错

  • 12.16.2 (Currently using 64-bit executable)

[HBuilder] 16:29:24.068 <--- Last few GCs --->
[HBuilder] 16:29:24.069 [6536:0458ABD8] 255885 ms: Scavenge 813.7 (859.0) -> 812.2 (868.5) MB, 12.8 / 0.0 ms (average mu = 0.583, current mu = 0.394) allocation failure
[HBuilder] 16:29:24.073 [6536:0458ABD8] 256398 ms: Mark-sweep 819.9 (869.0) -> 811.7 (870.0) MB, 476.7 / 0.1 ms (average mu = 0.481, current mu = 0.271) allocation failure scavenge might not succeed
[HBuilder] 16:29:24.074 [6536:0458ABD8] 257330 ms: Mark-sweep 819.8 (870.0) -> 814.3 (872.0) MB, 895.3 / 0.1 ms (average mu = 0.267, current mu = 0.039) allocation failure scavenge might not succeed
[HBuilder] 16:29:24.077 <--- JS stacktrace --->
[HBuilder] 16:29:24.083 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
[HBuilder] 16:29:24.125 1: 008AA38F v8::internal::Heap::AllocateExternalBackingStore+1551

2***@qq.com

2***@qq.com

最新版 3.7.9 打包有问题 JavaScript heap out of memory

找老版本官网又是只提供的百度云网盘下载地址。。。

是不知道百度云下载有多慢吗?还是默认人人会去开百度云会员。加个其他网盘啊也比这几十kb下载的网盘强。

1***@163.com

1***@163.com

我今天改了下hbuilderx 的uniapp运行配置,node启动内存改大了就不会报内存溢出

8***@qq.com

8***@qq.com

1、安装了npm install increase-memory-limit --- 结论:没解决

2、修改package.json "scripts": {
"fix-memory-limit": "cross-env LIMIT=2048 increase-memory-limit"
},
----- 结论:没解决

3、在环境变量那里增加node内存 -- 结论:没解决

请问还有什么办法吗?

  • 8***@qq.com

    终于搞好~没报错了~

    修改项目中的package.json文件,使用increase-memory-limit进行解决

    【1】在项目中安装increase-memory-limit命令


    在项目中运行


    npm install increase-memory-limit


    npm install --save cross-env

    1

    2

    3

    4

    【2】修改package.json


    "scripts": {

    "fix-memory-limit": "cross-env LIMIT=2048 increase-memory-limit"

    },

    1

    2

    3

    【3】最后执行一次npm run fix-memory-limit


    npm run fix-memory-limit

    1

    2024-06-18 20:58

2***@qq.com

2***@qq.com

更改hbuilderx运行配置后解决了

要回复问题请先登录注册