facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.31k stars 954 forks source link

Flipper desktop app crashes when trying to view a large response with the Network plugin #3908

Open morrisseyai opened 2 years ago

morrisseyai commented 2 years ago

🐛 Bug Report

Flipper desktop app crashes - as in the entire UI reloads and disconnects - when attempting to click on a network request line item in the network plugin which has a large response.

The request item in particular I'm trying to deal with has a response size of about 1.2MB. I can interact with all other items in the list, but as soon as I click on this large one the Flipper UI freezes up for about 10 seconds, then I see in logcat that it has disconnected, and then shortly after, the Flipper UI reloads.

The logcat message I see is simply: I/flipper: flipper: FlipperClient::onDisconnected.

In Flipper's own logs the only line I see as this happens is: Plugin Network took too much time while doing background: 2407ms. Handling background messages should take less than 25ms.

To Reproduce

  1. Use the latest release version of Flipper
  2. Have your Android app make a network request whose response is >1.2MB
  3. Click on that line in the Network plugin UI in Flipper
  4. 💥

Environment

Other

The only other thing to note is I already attempted to fix this by increasing maxBodyBytes when instantiating the FlipperOkhttpInterceptor, however that didn't seem to fix the crash.

Let me know if there are any further details I can provide to assist in debugging or tracking down the issue.

smancebo commented 1 year ago

experiencing the same issue when uploading files on my app, any solution to this so far?