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

VPN always on gets disconnected after some phone idle time #1434

Closed
nu111 opened this issue May 14, 2024 · 6 comments
Closed

VPN always on gets disconnected after some phone idle time #1434

nu111 opened this issue May 14, 2024 · 6 comments

Comments

@nu111
Copy link

nu111 commented May 14, 2024

Hi, on Android 13 and rethinkdns 0.5.5i,
I have setted the VPN as "always on".

Frequently I receive the notification of VPN disconnected 🔑.
Expanding the notification shows a button to launch rethinkdns app again, this fix the connection.

This never happened while activily using the phones, it happens after some time without unlocking the screen.

@ignoramous
Copy link
Collaborator

ignoramous commented May 14, 2024

Crashes can happen due to low memory or bugs in the app. The latter is concerning and needs logs for us to fix it. For the former, turning OFF battery optimization and allowing Rethink to work while in background might help.

  • What version of Android are you on?
  • Are you on a Pixel? If so, is it running GrapheneOS?
  • If you know, how much RAM does your Android have?

Are you technical enough to grab adb logcat output? If so, perform these steps now (putting Rethink in Verbose log level, increasing logcat buffer size to 16MB), then after the crash happens (preferably immediately), capture logs (adb logcat) and email it to me (mz at celzero dot com).

# make sure Rethink is at "Verbose" in 
# Configure -> Settings -> Log level

# note the current size; the default is usually 256kb
adb logcat -g

# increase log buffer size to 16mb
adb logcat -G 16M

# see if it switched to 16mb
adb logcat -g

# now, at some later time, when Rethink "freezes", capture logs
adb logcat > /path/to/file

# compress it
gzip -k /path/to/file

# email the gz file to:
# mz at celzero dot com

@nu111
Copy link
Author

nu111 commented May 14, 2024

Yep, sorry I forget to mention that I am on Pixel 4a and i am running stock OS.

Later I'll try to retrieve that log!

@ignoramous
Copy link
Collaborator

I am on Pixel 4a and i am running stock OS.

If so, it might be related to #1427

Later I'll try to retrieve that log!

Please do. You can alternatively capture logs from tapping on "Bug report" button at the top of the About page in the app.

@nu111
Copy link
Author

nu111 commented May 16, 2024

Please do. You can alternatively capture logs from tapping on "Bug report" button at the top of the About page in the app.

Yes, I am sorry for being late on this.
Meanwhile I tried to set the battery usage as "without limits"
Screenshot_20240516-205931

It seems that after this the issue is less frequent.

@ignoramous
Copy link
Collaborator

ignoramous commented May 18, 2024

It seems that after this the issue is less frequent.

If the issue happens again, please consider sharing logs (don't forget to see the steps above; some of which need to be executed BEFORE you encounter this bug again), and re-open this thread. Thanks.

@nu111
Copy link
Author

nu111 commented May 19, 2024

To add more details: now it seems to happen only after the phone recovers from "do not disturb" mode. BTW I have sent a log of one of this events.

Thanks!

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