V/FA:处理排队的服务任务:1,接着是V/FA:不活动,与AppMeasurementService断开连接 [英] V/FA: Processing queued up service tasks: 1 followed by V/FA: Inactivity, disconnecting from AppMeasurementService

查看:102
本文介绍了V/FA:处理排队的服务任务:1,接着是V/FA:不活动,与AppMeasurementService断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的控制台输出中可见,该应用程序通常需要7-10秒来处理该服务,并且常常无法执行该操作.每次启动都会发生这种情况.

As it is visible in the console output below, the application usually needs 7-10 seconds to process the service and often fails to do it. This happens on every startup.

为什么要花这么长时间?是否因为该服务在放弃之前尝试多次连接?另外,此输出背后的逻辑到底是什么?

Why is it taking so long? Is it because the service is trying to connect multiple times before giving up? Also, what is actually the logic behind this output?

注意:我的应用程序中没有任何FirebaseAnalytics代码

Note: I don't have any FirebaseAnalytics code in my application

09-26 23:34:48.998 /package V/FA: Processing queued up service tasks: 1
09-26 23:34:54.009 /package V/FA: Inactivity, disconnecting from AppMeasurementService
09-26 23:34:57.357 /package V/FA: Activity paused, time: 89152495
09-26 23:34:57.383 /package V/FA: onActivityCreated


build.gradle(app)


build.gradle(app)

//Firebase
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-database:9.4.0'
compile 'com.google.firebase:firebase-invites:9.4.0'
compile 'com.firebase:geofire-android:2.0.0'
compile 'com.firebaseui:firebase-ui:0.5.1'

推荐答案

正在处理排队的服务任务"和不活动,正在与AppMeasurementService断开连接"消息均记录在工作线程上,而不是主应用程序线程上,因此它们没有阻止您的应用.

The "Processing queued up service tasks" and "Inactivity, disconnecting from AppMeasurementService" messages are both logged on a worker thread, not the main app thread, so they are not holding up your app.

排队的服务任务的处理可能几乎立即完成;由于不活动而导致的断开连接仅意味着一段时间内没有人要求Firebase Analytics做任何事情,因此它将断开其服务,直到有人这样做为止.这很正常,尤其是在您的应用未调用FirebaseAnalytics的情况下.

The processing of queued up service tasks likely completes nearly instantly; the disconnect due to inactivity merely means that no one has asked Firebase Analytics to do anything for a while so it's disconnecting from its service until someone does. That's normal, especially if your app isn't making calls to FirebaseAnalytics.

活动已暂停"表示该应用的当前活动(屏幕)已从显示中移除;这可能是您的应用执行的操作或用户采取的措施.由于此后立即出现"onActivityCreated"消息,我想说您的应用摆脱了一项活动,而将其替换为另一项活动.

"Activity paused" means that the app's current activity (screen) has been removed from display; this could be something your app did or user action. Since there's an "onActivityCreated" message right after that I'd say your app got rid of one activity and replaced it with another.

没有有关您的应用程序运行情况的更多信息,很难猜测为什么应用程序响应速度慢.

Without more information on what your app is doing it's very difficult to guess why the app might have slow responses.

顺便说一句,尝试使用"adb logcat -v threadtime"在日志记录语句中获取进程和线程ID.

BTW, try using "adb logcat -v threadtime" to get process and thread IDs in the logging statements.

这篇关于V/FA:处理排队的服务任务:1,接着是V/FA:不活动,与AppMeasurementService断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆