ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.35k stars 177 forks source link

App is unresponsive after sleep #2066

Open jacobbednarz opened 1 week ago

jacobbednarz commented 1 week ago

Description

After a period of use, putting my laptop to sleep causes Proxyman to become unresponsive and require a force quit to restart.

Steps to Reproduce

  1. Use proxyman for a short period, capture some traffic, etc.
  2. Put the machine to sleep
  3. Leave for 10 or so minutes (maybe longer?)
  4. See the app is now unresponsive and requires to be forced to quit

Current Behavior

Proxyman is not usable after sleep.

Expected Behavior

Proxyman can be used after sleep.

Environment

NghiaTranUIT commented 6 days ago

It seems that I should detect when the System is going to sleep or wake up to enable/disable the recording session.

May I ask: When the app is unresponsive, how many recorded items in the table 🤔

To estimate how much RAM is usage.

You can find it in the bottom bar.

Screenshot 2024-06-27 at 16 17 58
jacobbednarz commented 6 days ago

when i encountered this today i had less than 10 rows after another forced restart. next time this happens, i can grab the memory usage too. is there anything else i can provide to help diagnosing easier?

unsure if it matters, however, i don't use it for all traffic. i will export the HTTPS_PROXY env var for the script or app to use.

jacobbednarz commented 23 hours ago

today i noticed that after sleep, proxyman became unresponsive and had consumed 180GB of memory needing to be forcefully quit. had between 20 and 30 rows of HTTP interactions at the time. i submitted the crash report to Apple but do let me know if they are useful for you to have as well and i can send them over.

NghiaTranUIT commented 22 hours ago

I'm working on the memory leaking issue when Proxyman tries to fetch the remote certificate - for generating a client certificate with Proxyman CA.

It causes the memory will up over time and cause your problem. Let me fix it and send you a Beta build 👍

jacobbednarz commented 21 hours ago

legend! hopefully the memory leak fix is also the fix for the problems following sleep and we can get both in one go.

NghiaTranUIT commented 21 hours ago

Ticket: https://github.com/ProxymanApp/Proxyman/issues/2070