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

CoderVPN crashes while device is slept for extended period #78

Open
ethanndickson opened this issue Feb 26, 2025 · 0 comments
Open

CoderVPN crashes while device is slept for extended period #78

ethanndickson opened this issue Feb 26, 2025 · 0 comments

Comments

@ethanndickson
Copy link
Member

ethanndickson commented Feb 26, 2025

Whilst #50 provides support for the VPN to start and stop itself on wake and sleep, I discovered the VPN does not wake itself when the device is slept for a prolonged period of time, instead indicating a crash that occurred whilst slept.

Image

The error message shown is a generic message from the operating system when the network extension process is killed unexpectedly.

Console.app crash logs would suggest this is a panic (or a fatal error: panic + os.exit) in the .dylib:

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   com.coder.Coder-Desktop.VPN [80823]

[...]

Thread 10 Crashed:
0   libsystem_kernel.dylib        	       0x18958a600 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1895c2f70 pthread_kill + 288
2   libsystem_c.dylib             	       0x189497c18 raise + 32
3   coder-vpn.dylib               	       0x10a2d0d84 runtime.raise_trampoline.abi0 + 20
4   coder-vpn.dylib               	       0x10a2cf71c runtime.asmcgocall.abi0 + 124

This crash occurred about 2 hours after putting the device to sleep. I've been unable to replicate the crash in a shorter timeframe.
I was also able to reproduce the crash with the dylib downloading commented out, which rules out any weird interactions with unquarantining a newly downloaded dylib with dev.coder.com restarts

Additionally, I've not seen or heard of this problem present on older versions of Coder Desktop - versions that don't start & stop the VPN on sleep & wake. Some users have had CoderVPN running for days without a crash (albeit with the workspace state out-of-date)

@ethanndickson ethanndickson changed the title CoderVPN crashes while device slept for extended period CoderVPN crashes while device is slept for extended period Feb 26, 2025
@sreya sreya self-assigned this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants