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
Use the latest release version of Flipper
Have your Android app make a network request whose response is >1.2MB
Click on that line in the Network plugin UI in Flipper
💥
Environment
Android 12
Flipper v0.154.0 (was also happening with an older release from about ~2 months ago, before I updated to v0.154.0 today in an attempt to avoid this crash)
macOS Monterey running on an M1 Pro
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.
🐛 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
Environment
Other
The only other thing to note is I already attempted to fix this by increasing
maxBodyBytes
when instantiating theFlipperOkhttpInterceptor
, 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.