1***@qq.com
1***@qq.com
  • 发布:2024-12-24 11:22
  • 更新:2024-12-24 11:29
  • 阅读:17

java.lang.OutOfMemoryError: Failed to allocate a 310726600 byte allocation with 25165824

分类:uni-app
BOARD:NAM  
BOOTLOADER:unknown  
BRAND:HUAWEI  
CPU_ABI:arm64-v8a  
CPU_ABI2:  
DEVICE:HWNAM  
DISPLAY:NAM-AL00 4.2.0.135(C00E100R2P5)  
FINGERPRINT:HUAWEI/NAM-AL00/HWNAM:12/HUAWEINAM-AL00/104.2.0.135C00:user/release-keys  
FINGERPRINTEX:HUAWEI/NAM-AL00/HWNAM:12/HUAWEINAM-AL00/104.2.0.135C00:user/release-keys  
HARDWARE:qcom  
HOST:cn-central-hcd-2a-7785375be1730192898703-7494f9d9dc-rhfll  
HWFINGERPRINT:///NAM-LGRP1-CHN 4.2.0.135/NAM-AL00-CUST 4.2.0.100(C00)/NAM-AL00-PRELOAD 4.0.0.5(C00R2)/  
ID:HUAWEINAM-AL00  
IS_DEBUGGABLE:false  
IS_EMULATOR:false  
MANUFACTURER:HUAWEI  
MODEL:NAM-AL00  
ODM_SKU:NAM-AL00  
PERMISSIONS_REVIEW_REQUIRED:true  
PRODUCT:NAM-AL00  
RADIO:unknown  
SERIAL:unknown  
SKU:unknown  
SOC_MANUFACTURER:QTI  
SOC_MODEL:SM7325  
SUPPORTED_32_BIT_ABIS:[Ljava.lang.String;@6b31351  
SUPPORTED_64_BIT_ABIS:[Ljava.lang.String;@bc817b6  
SUPPORTED_ABIS:[Ljava.lang.String;@82fbcb7  
TAGS:release-keys  
TIME:1730194739000  
TYPE:user  
UNKNOWN:unknown  
USER:test  
java.lang.OutOfMemoryError: Failed to allocate a 310726600 byte allocation with 25165824 free bytes and 207MB until OOM, target footprint 344883984, growth limit 536870912  
    at java.util.Arrays.copyOf(Arrays.java:3257)  
    at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)  
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)  
    at java.lang.StringBuilder.append(StringBuilder.java:137)  
    at io.dcloud.feature.weex.WXViewWrapper.render(Unknown Source:152)  
    at io.dcloud.feature.weex.WXViewWrapper.access$800(Unknown Source:0)  
    at io.dcloud.feature.weex.WXViewWrapper$9.run(Unknown Source:19)  
    at android.os.Handler.handleCallback(Handler.java:966)  
    at android.os.Handler.dispatchMessage(Handler.java:110)  
    at android.os.Looper.loopOnce(Looper.java:205)  
    at android.os.Looper.loop(Looper.java:293)  
    at android.app.ActivityThread.loopProcess(ActivityThread.java:9986)  
    at android.app.ActivityThread.main(ActivityThread.java:9975)  
    at java.lang.reflect.Method.invoke(Native Method)  
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)  
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)  
2024-12-24 11:22 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者) - 隔壁小王同学

把webpack的vuecli版本升级到5.x,node版本升级到20之后,对项目做分包优化处理。  
使用自定义基座运行到安卓手机,出现了内存爆满溢出,而云打包的apk运行到手机则不会。  

想到解决方案  
1. 配置app的分包优化  
   https://ask.dcloud.net.cn/question/132263  
   https://blog.csdn.net/qq_23207707/article/details/132080844  
2. 增加堆内存大小,不知道在哪配置

要回复问题请先登录注册