Flipper: Android log freezes the Flipper

Created on 30 Sep 2020  路  3Comments  路  Source: facebook/flipper

馃悰 Bug Report

I noticed when opening Flipper with connected Android device, the default pkugin will be Log, and this will try to display the logs from device logcat, but sometimes there is a lot of messages to process and it take freeze entire UI for one minute or so.
I tried to record the CPU usage of the Flipper process via DevTools (it would drop back to normal after another 30s):
image

To Reproduce

Connect Android device and open Flipper after. It should try to collect also previous logs and show them in Flipper. Some devices/apps will generate a lot so this will take some time for Flipper to process.

Environment

Device: Android
System: MacOS
Flipper: 0.52

All 3 comments

@usrbowe thanks for reporting, for me this is usually instant. Do you know if there is a lot of messages, or very large lines that might cause this? If you have a saved profiler session that would be really great.

@mweststrate I can't share the log, but it's just massive amount of logs (so not a large lines). Even pure adb logcat will run for few seconds to log the older messages.
If there is a way, I would just limit max number of logs it will log from history.


Actually similar would be great for Network plugin, sometimes there is 1k+ requests in queue (while in background) and there is no way to cancel the processing.

In flipper 0.81 we will no longer stream the old messages of the device logs, which should fix this problem. The network plugin will probably be optimised soon as well.

Was this page helpful?
0 / 5 - 0 ratings