[Connect to VPN] Create defunct processes every 30 seconds #15990
Labels
bug
Something isn't working
extension: connect-to-vpn
Issues related to the connect-to-vpn extension
extension
Issues related to one of the extensions in the Store
Extension
https://www.raycast.com/rasmusbe/connect-to-vpn
Raycast Version
1.88.4
macOS Version
15.1.1
Description
For a month, the Connect to VPN make my Macbook Pro M1 Pro crashes every few days. In the Terminal it shows
fork failed: Resource temporarily unavailable
message, in the browser it can't open any new tab, etc.After investigating (#9410 (comment)), I figured out that the zombie processed were created by the Raycast Helper (Extensions).
And after running
ps -eo pid,ppid,etime,comm | grep defunct
, I found that a defunct process was created every 30 seconds.By running
log stream --predicate "subsystem == 'com.raycast.macos'" --level debug --style compact
, I found that this was correlated to the Connect to VPN extension.Checking the changes, I found that there was a change a month ago that trigger something every 30 seconds.
989f3ec#diff-291e4da920717a0f856d10b8a6d0d2b79a1caf7376c8bc8c34b736af7992002bR28
Looking at this comment #9410 (comment), and the code and this code 989f3ec#diff-87c853ea201b0ac6d5e80278f9511e5e411a81ecc6069eb4411fa81ab5fcb449R19-R24, I think that the issue is that there is no cleanup function returned by the
useEffect
.Steps To Reproduce
I think the bug is on every Mac, so just install the Connect to VPN extension.
Current Behaviour
No response
Expected Behaviour
No response
The text was updated successfully, but these errors were encountered: