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

v055m: Zombie WireGuards in Simple mode #1529

Open
ignoramous opened this issue Jun 11, 2024 · 10 comments
Open

v055m: Zombie WireGuards in Simple mode #1529

ignoramous opened this issue Jun 11, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@ignoramous
Copy link
Collaborator

I have just realized that I can't delete WireGuard configs neither 1-by-1, nor by selecting all of them.

Also, they got pretty crazy here — configs started to select and deselect on their own (without me clicking anything). Also, it writes status "ACTIVE", while RethinkDNS in not enabled and is paused.

Screen_Recording_20240611_095156_Rethink.mp4

Originally posted by @soshial in #1524 (comment)

@ignoramous
Copy link
Collaborator Author

soshial, This issue seems concerning; Simple mode should not allow more than one WireGuard instance.

  • What happens when you click on the name of the WireGuard in Simple mode?
  • Is this the behavior you have observed from the start?
  • Can you fetch the adb logcat after setting Rethink to Very Verbose mode in Configure -> Settings -> Log Level?

#1524 (comment)

@ignoramous ignoramous added the bug Something isn't working label Jun 11, 2024
@soshial
Copy link

soshial commented Jun 11, 2024

I've got an idea that those are not really running WireGuards, but maybe a RecyclerView problem? Can you check this idea first? Because this happens when RethinkDNS is OFF and it looks sooo much like the RecyclerView issue.

I'll check the logs a bit later.

@ignoramous
Copy link
Collaborator Author

ignoramous commented Jun 11, 2024

Yeah, if you were always running in Advanced mode, then you should never be able to "view" Simple mode.

Likely the app crashed and then was left in this state when you re-opened it (you can see the app's current uptime in the footer of the bottomsheet that comes up when you tap on the downarrow next to the START / STOP button) where you can see Simple mode but the conifgs are running in Advanced mode.

But I'll check the logs

If you can capture logs starting from when you navigate to the screen and this happens, it'll help immensely. Make sure to put Rethink in Verbose mode from Configure -> Settings -> Log level.

@soshial
Copy link

soshial commented Jun 11, 2024

Here are the logs. (Although I couldn't find anything from today)
rethinkdns.bugreport.zip

Also, in the Advanced regime, one WG was ON for some reason.

photo_5422573632460283142_y

RethinkDNS is OFF.

photo_5422573632460283140_y

@soshial
Copy link

soshial commented Jun 11, 2024

Yeah, if you were always running in Advanced mode, then you should never be able to "view" Simple mode.

I never ran in Advanced mode. Always in the Simple mode.

Likely the app crashed and then was left in this state when you re-opened it.

Cannot check this anymore, unfortunately: when I saw this weird bug, I force-stopped the app myself to see whether this remove the issue, but it did not.

@hussainmohd-a
Copy link
Collaborator

Can you start the Rethink app and click on the Refresh icon on the Proxy screen to see if there are any changes? Also, please send us the bug report after the refresh is complete.

@soshial
Copy link

soshial commented Jun 11, 2024

I clicked the refresh icon (here are the logs
rethinkdns.bugreport(1).zip) and now it doesn't allow me to select WireGuard configs anymore... Weird.

screenshot

photo_5422573632460283186_y

@hussainmohd-a
Copy link
Collaborator

hussainmohd-a commented Jun 11, 2024

@soshial, are you now unable to select the wireguard config when Rethink is active?

@soshial
Copy link

soshial commented Jun 11, 2024

I was unable to select any config when Rethink was disabled (not active). It just showed this toast text when I clicked on the checkbox. But after some time it resolved by itself and I was able to open and activate configs.

You said that it's impossible to activate several configs in the "Simple regime", so only a single config possibel to activate — then I am wondering why do list elements have checkboxes instead of radio elements?

@ignoramous
Copy link
Collaborator Author

ignoramous commented Jun 11, 2024

You said that it's impossible to activate several configs in the "Simple regime",

Impossible is nothing. There are always bugs, some impossible to rectify ;)

so only a single config possibel to activate — then I am wondering why do list elements have checkboxes instead of radio elements?

Mostly for the tick mark ✔️

hussainmohd-a added a commit to hussainmohd-a/rethink-app that referenced this issue Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants