mozilla-mobile / mozilla-vpn-client

A fast, secure and easy to use VPN. Built by the makers of Firefox.
https://vpn.mozilla.org
Other
455 stars 110 forks source link

[Linux] Mozilla VPN app crashes while going back to wi-fi network from a hot-spot #5191

Closed data-sync-user closed 4 months ago

data-sync-user commented 1 year ago

Important details:

Mozilla VPN affected versions:

Platform tested:

Prerequisites:

Steps to reproduce:

  1. Log in with the account from prerequisites;
  2. Turn the VPN ON;
  3. Connect to a hot-spot;
  4. Connect back to your wi-fi network;

Expected results:

Actual results:

Notes:

┆Issue is synchronized with this Jira Bug ┆Reporter: Valentina Virlics

data-sync-user commented 1 year ago

➤ Santiago Andrigo commented:

Not sure I follow on this – isn’t the hotspot just another WiFi network? How can the VPN connect (Step 2) prior to being connected to the Internet (Step 3)? Does this happen if instead of connecting to a hotspot, you just connect to a WiFi network and change to another one?

data-sync-user commented 1 year ago

➤ Valentina Virlics commented:

Santiago Andrigo Yes, you are correct, hot spot is also a WiFi network, but is a specific one. As you for sure know, not all WiFi networks are hotspots, but all hotspots are WiFi.

If you read first section of the issue you see “Be connected to a Wifi network“ - this means a WiFi that is not a hotspot; This is why step 2 is possible. After step 2, at 3 we switch from the current WiFi to a hotspot-WiFi.

And, no, it does not happen if we switch between non-hotspot WiFi’s.

Also, after further investigation it seems that has something to to with the fact, that while switching between WiFi networks, the VPN enters into No Signal state, and somehow it cannot recover.

data-sync-user commented 1 year ago

➤ Santiago Andrigo commented:

Thanks for clarifying. I’m not aware of any way in which a hotspot is different to any other WiFi network, hence the confusion. I must be missing something.

A few more questions:

  1. You get no-signal after Step 3 (after connecting to the hotspot)? Do you get the same if you disconnect from regular wifi, connect to the hotspot and then connect the VPN?
  2. When it crashes, do you know if you are still connected to the tunnel? (meaning that the crash was just on the FE side)

cc' Owen Kirby for further ideas

data-sync-user commented 1 year ago

➤ Valentina Virlics commented:

Yes, the No Signal state is there after step 3 and no matter about switch. (wifi-wifi or wifi-hotspot). There is another thing about the hotspot: it is unsecured - maybe this influences somehow?

And yes also to the tunnel still working - checked device IP and it still displays the VPN one.

data-sync-user commented 1 year ago

➤ Santiago Andrigo commented:

Adding Lesley Norton as this seems to impact front-end and not so much connectivity.

Valentina Virlics If this is happening between regular-wifi-to-regular-wifi connections, then this rules out hotspots being a special case, no?

data-sync-user commented 1 year ago

➤ Valentina Virlics commented:

Santiago Andrigo The thing happening no matter what type of WiFi switch is made is the No Signal state and not the crash.

I am not able to repro the crash if switching between regular WiFi networks.

data-sync-user commented 1 year ago

➤ Valentina Virlics commented:

Santiago Andrigo Someone else encountered this - https://mozilla-hub.atlassian.net/browse/VPN-3572 ( https://mozilla-hub.atlassian.net/browse/VPN-3572|smart-link )

data-sync-user commented 1 year ago

➤ Valentina Virlics commented:

Verified this as fixed on the last 2.13.0 (2.13.0~rc20230123004344-kinetic1) build on Linux Kinetic.

The Mozilla VPN app no longer crashes after switching through wi-fi networks.