Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connect to VPN] Create defunct processes every 30 seconds #15990

Open
arthur-fontaine opened this issue Dec 21, 2024 · 1 comment · May be fixed by #16004
Open

[Connect to VPN] Create defunct processes every 30 seconds #15990

arthur-fontaine opened this issue Dec 21, 2024 · 1 comment · May be fixed by #16004
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

Comments

@arthur-fontaine
Copy link
Contributor

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).

Capture d’écran 2024-12-21 à 14 29 46

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

@arthur-fontaine arthur-fontaine added bug Something isn't working extension Issues related to one of the extensions in the Store labels Dec 21, 2024
@raycastbot raycastbot added the extension: connect-to-vpn Issues related to the connect-to-vpn extension label Dec 21, 2024
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @rasmusbe @sato11 @stonerl @vpukhanov you might want to have a look.

💡 Author and Contributors commands

The author and contributors of rasmusbe/connect-to-vpn can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@Yshmeel Yshmeel linked a pull request Dec 22, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants