【问题标题】:Android Studio: Hardware backing HAL too slow, could only write 0 of 720 frames [duplicate]Android Studio:硬件支持 HAL 太慢,只能写入 720 帧中的 0 [重复]
【发布时间】:2018-09-29 00:51:55
【问题描述】:

我在 Android Studio 中遇到错误,应用无法与其他应用通信,并且同时工作的两个模拟器几乎使用了 100% 的处理器。

除了Hardware backing HAL too slow, could only write 0 of 720 frames,我没有收到任何错误。在这种情况下我能做什么? 我感觉是模拟器太慢的问题,是真的吗?

这是我的日志:

04-18 16:57:56.583 1382-1435/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 4321429 , only wrote 4168800
04-18 16:57:57.005 9136-9147/com.example.matt.rider I/art: Background sticky concurrent mark sweep GC freed 20288(877KB) AllocSpace objects, 3(96KB) LOS objects, 0% free, 14MB/14MB, paused 17.734ms total 501.934ms
04-18 16:57:57.289 9136-9147/com.example.matt.rider I/art: Background partial concurrent mark sweep GC freed 5087(243KB) AllocSpace objects, 13(2MB) LOS objects, 26% free, 11MB/15MB, paused 14.179ms total 261.011ms
04-18 16:57:58.703 2420-2432/com.google.android.googlequicksearchbox:search I/art: Background partial concurrent mark sweep GC freed 16895(1821KB) AllocSpace objects, 0(0B) LOS objects, 25% free, 11MB/15MB, paused 9.655ms total 103.726ms
04-18 16:57:59.663 1382-1434/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 4169071 , only wrote 4168800
04-18 16:57:59.714 1382-1434/? W/audio_hw_generic: Hardware backing HAL too slow, could only write 0 of 720 frames
04-18 16:57:59.726 1382-1434/? W/audio_hw_generic: Hardware backing HAL too slow, could only write 0 of 720 frames

【问题讨论】:

    标签: java android multithreading processor hal


    【解决方案1】:

    大型对象空间的 LOS... 本地代码使用的 Java 对象可能保持活动的时间过长。 Java 堆上的某些对象可能变得无法访问

    查看此文档是否可以提供帮助 https://developer.android.com/studio/profile/memory-profiler#LogMessages

    【讨论】:

      猜你喜欢
      • 2018-06-23
      • 2017-03-15
      • 1970-01-01
      • 1970-01-01
      • 2019-06-17
      • 1970-01-01
      • 1970-01-01
      • 2023-03-21
      • 2015-04-17
      相关资源
      最近更新 更多