秋月Miko 2023-02-16 21:27 采纳率: 20%
浏览 83
已结题

Flutter内存溢出如何解决

https://github.com/autumn-moon-py/chatapp

Flutter assets will be downloaded from https://mirrors.tuna.tsinghua.edu.cn/flutter. Make sure you trust this source!
Launching lib\main.dart on IN2025 in debug mode...
Building with Flutter multidex support enabled.
Flutter assets will be downloaded from https://mirrors.tuna.tsinghua.edu.cn/flutter. Make sure you trust this source!
  Built build\app\outputs\flutter-apk\app-debug.apk.
W/FlutterActivityAndFragmentDelegate( 4313): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Connecting to VM Service at ws://127.0.0.1:50118/LDscyEQZXUs=/ws
[GETX] Instance "GetMaterialController" has been created
[GETX] Instance "GetMaterialController" has been initialized
D/gralloc_x86( 4313): gralloc_alloc: Creating ashmem region of size 2076672
I/1.raster( 4313): type=1400 audit(0.0:9147): avc: denied { map } for path="/dev/vaddress" dev="tmpfs" ino=7322 scontext=u:r:untrusted_app:s0:c36,c256,c512,c768 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1 app=com.example.sub.chatapp
I/1.raster( 4313): type=1400 audit(0.0:9148): avc: denied { read write } for path="/dev/vaddress" dev="tmpfs" ino=7322 scontext=u:r:untrusted_app:s0:c36,c256,c512,c768 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1 app=com.example.sub.chatapp
I/1.raster( 4313): type=1400 audit(0.0:9149): avc: denied { use } for path="/dev/ashmem2de3784f-bc58-47be-8a05-dac29ab00088" dev="tmpfs" ino=1554 scontext=u:r:init:s0 tcontext=u:r:untrusted_app:s0:c36,c256,c512,c768 tclass=fd permissive=1 app=com.example.sub.chatapp
D/gralloc_x86( 4313): gralloc_alloc: Creating ashmem region of size 2076672
W/ple.sub.chatap( 4313): Verification of android.media.audiofx.AudioEffect com.ryanheise.just_audio.AudioPlayer.decodeAudioEffect(java.lang.Object, int) took 115.155ms (1250.48 bytecodes/s) (4528B approximate peak alloc)
D/gralloc_x86( 4313): gralloc_alloc: Creating ashmem region of size 2076672
I/ExoPlayerImpl( 4313): Init cb3dff1 [ExoPlayerLib/2.18.1] [OnePlus8Pro, IN2025, OnePlus, 32]
W/ple.sub.chatap( 4313): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (unsupported, reflection, allowed)
I/ExoPlayerImpl( 4313): Init 7b0e5b0 [ExoPlayerLib/2.18.1] [OnePlus8Pro, IN2025, OnePlus, 32]
D/MtpDeviceJNI( 4313): register_android_mtp_MtpDevice
I/DMCodecAdapterFactory( 4313): Creating an asynchronous MediaCodec adapter for track type audio
I/DMCodecAdapterFactory( 4313): Creating an asynchronous MediaCodec adapter for track type audio
E/HidlServiceManagement( 4313): getService: Potential race detected, descriptor: android.hardware.media.omx@1.0::IOmx instance: default
E/HidlServiceManagement( 4313): getService: Potential race detected, descriptor: android.hardware.media.omx@1.0::IOmx instance: default
I/OMXClient( 4313): IOmx service obtained
I/OMXClient( 4313): IOmx service obtained
I/MediaCodec( 4313): MediaCodec will operate in async mode
I/MediaCodec( 4313): MediaCodec will operate in async mode
I/ACodec  ( 4313): codec does not support config priority (err -2147483648)
I/ACodec  ( 4313): codec does not support config priority (err -2147483648)
D/MediaCodec( 4313): keep callback message for reclaim
D/MediaCodec( 4313): keep callback message for reclaim
E/HidlServiceManagement( 4313): getService: Potential race detected, descriptor: android.hidl.allocator@1.0::IAllocator instance: ashmem
D/MediaCodec( 4313): keep callback message for reclaim
E/DartVM  ( 4313): Exhausted heap space, trying to allocate 32 bytes.
D/MediaCodec( 4313): keep callback message for reclaim
E/DartVM  ( 4313): Exhausted heap space, trying to allocate 32 bytes.
D/MediaCodec( 4313): keep callback message for reclaim
E/DartVM  ( 4313): Exhausted heap space, trying to allocate 64 bytes.
E/DartVM  ( 4313): Exhausted heap space, trying to allocate 32 bytes.
D/MediaCodec( 4313): keep callback message for reclaim
E/flutter ( 4313): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Out of Memory
E/flutter ( 4313): #0      Object._instanceOf (dart:core-patch/object_patch.dart:58:62)
E/flutter ( 4313): #1      _FutureListener.shouldChain (dart:async/future_impl.dart:196:52)
E/flutter ( 4313): #2      Future._propagateToListeners (dart:async/future_impl.dart:810:22)
E/flutter ( 4313): #3      Future._completeWithValue (dart:async/future_impl.dart:567:5)
E/flutter ( 4313): #4      _RootZone.runUnary (dart:async/zone.dart:1660:54)
E/flutter ( 4313): #5      _FutureListener.handleValue (dart:async/future_impl.dart:147:18)
E/flutter ( 4313): #6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:767:45)
E/flutter ( 4313): #7      Future._propagateToListeners (dart:async/future_impl.dart:796:13)
E/flutter ( 4313): #8      Future._completeWithValue (dart:async/future_impl.dart:567:5)
E/flutter ( 4313): #9      Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:640:7)
E/flutter ( 4313): #10     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter ( 4313): #11     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
E/flutter ( 4313): #12     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:640:7)
E/flutter ( 4313): #13     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter ( 4313): #14     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
D/MediaCodec( 4313): keep callback message for reclaim
  • 写回答

3条回答 默认 最新

  • Halifax ‎ 2023-02-16 21:42
    关注

    望采纳。

    日志倒数第17行:Out Of Memory,内存溢出了

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 2月18日
  • 修改了问题 2月16日
  • 修改了问题 2月16日
  • 创建了问题 2月16日

悬赏问题

  • ¥20 wordpress如何限制ip访问频率
  • ¥15 自研小游戏,需要后台服务器存储用户数据关卡配置等数据
  • ¥15 请求解答odoo17外发加工某工序的实操方法
  • ¥20 IDEA ssm项目 跳转页面报错500
  • ¥20 系统直接进入应急模式了,请教一下,人要裂开了
  • ¥15 页面初次加载时,JS调用对象可以调用成功,但是一旦跳转到另一个页面,再跳转回来后这个对象就显示undefind了,调用也调用不了了,什么原因?
  • ¥15 来个厉害的程序开发的,安排点活给你做
  • ¥15 rexroth indramotion MTX micro系统轴耦合编程
  • ¥100 springboot2.7.x 整合 sharding 的问题
  • ¥15 如何通过命令行操作统信360安全浏览器?