无法分配 14745612 字节的分配,其中有 7913456 个空闲字节和 7MB,直到 OOM...目标足迹...增长限制

问题描述

我正在使用 React Native 开发应用程序。尝试上传超过 20 秒的视频时出现错误。该代码适用于小视频。

const response = await fetch(videoPicker)
    const blob = await response.blob()
    const path = `video/${moment().format('YYYYMMDD')}/${uuidv4()}.mp4`
    Storage.put(path,blob,{
      progressCallback(progress) {
        setProgress((progress.loaded / progress.total * 100).toFixed(0))
        console.log(`Uploaded: ${progress.loaded}/${progress.total}`);
      }
    })

我尝试了 android:hardwareAccelerated="false" 和 android:largeHeap="true"。我认为它有帮助。但不多。

以下是更多说明的屏幕截图。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)