首页 > 解决方案 > 重用谷歌地图片段时获取“ E/libprocessgroup: set_timerslack_ns write failed: Operation not allowed”

问题描述

我在地图活动中输入两次时出现错误“E/libprocessgroup:set_timerslack_ns 写入失败:不允许操作”o 日志。

首次使用 Activity 时,一切正常。在第二个条目上,此日志错误会在 UI 上产生 ANR。

也许可能是内存泄漏。卸载应用程序,错误消失(我们第一次导航到活动)。日志:

V/Location callback received: Latitude: Location[fused 28,473400,-16,287836 hAcc=20 et=+3d2h56m22s245ms alt=367.6776675563817 vel=0.024176978 bear=170.34872 vAcc=3 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=52]}].latitude - Longitude Location[fused 28,473400,-16,287836 hAcc=20 et=+3d2h56m22s245ms alt=367.6776675563817 vel=0.024176978 bear=170.34872 vAcc=3 sAcc=??? bAcc=??? {Bundle[mParcelledData.dataSize=52]}].longitude
I/Counters: exceeded sample count in FrameTime
I/Counters: exceeded sample count in FrameTime
V/FA: Inactivity, disconnecting from the service
I/SurfaceControl: release : mNativeObject = 489127606176 - Surface(name=Surface(name=f1a9282 InputMethod)/@0xd63efda - animation-leash)/@0x5ae4e2 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.ImeInsetsSourceConsumer.setControl:154 
    nativeRelease nativeObject s[489127606176]
    nativeRelease nativeObject e[489127606176]
    release : mNativeObject = 489127606080 - Surface(name=Surface(name=1d24045 NavigationBar0)/@0xbb3e85 - animation-leash)/@0x37ba4fa / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833 
I/SurfaceControl: nativeRelease nativeObject s[489127606080]
    nativeRelease nativeObject e[489127606080]
I/SurfaceControl: release : mNativeObject = 489127605984 - Surface(name=Surface(name=87068ec StatusBar)/@0x27769ce - animation-leash)/@0xb459aab / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833 
    nativeRelease nativeObject s[489127605984]
    nativeRelease nativeObject e[489127605984]
I/ViewRootImpl@45dda20[RouteStartedActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted

标签: androidgoogle-mapsmemory-leaks

解决方案


推荐阅读