-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Win11 Signal Desktop connectivity permanently lost on network change | WSALookupServiceBegin() -> WSASYSNOTREADY (10091) #2530
Comments
Spotify faces similar problems. |
Spotify uses Chromium Embedded Framework so your example adds to the confirmation that all Chromium based applications are affected. |
Windows 11 requires the following RPC interface to be available: Sandboxie/Sandboxie/install/Templates.ini Lines 3459 to 3462 in 18f9354
|
The workaround .ini settings didn't work. Installed the latest Sandboxie-Plus v1.6.3 and doesn't work either. Errors picked out:
Full trace log:
|
can anyone else confirm this? when I'm testing with signal the fix forks fine. |
@Animadei where did you get the nla.exe please provide the source so I can try it. |
For me, it is working with the template changes. (Windows 11 22H2 22621.963 on VM) noaudio.-.Copy.mp4@DavidXanatos "where did you get the nla.exe please provide the source so I can try it."
|
Thanks DavidXanatos and offhub. After offhub mentioned the same OS verison, I rebooted the machine once again and have confirmed the fix does work for both the NLA test from the winsock2advancednsrnr8f.html, Signal, and Chrome. The NLA test has gotten past the original WSALookupServiceBegin() error as confirmed from this log:
Have no idea what happened except in the past 2 days I had a graphics BSOD that may have messed with the driver setup. Consider the issue resolved unless it shows up again (let's hope not). Great software product and support. Thank you all, and Merry Christmas! |
so we can close it? |
Describe what you noticed and did
How often did you encounter it so far?
100% reproducible
Affected program
Signal Desktop
Download link
https://signal.org/download/
Where is the program located?
The program is installed only inside a sandbox (NOT in the real system anyway).
Expected behavior
Signal Desktop should reconnect to the Internet whenever the network adapter has Internet.
The issue is probably related to inaccessibility to the Network Location Awareness service from within the Sandboxie container. Running the example code from https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancednsrnr8f.html outside of Sandboxie enumerates the network adapter states (querying NS_NLA) but when run from within Sandboxie prints out:
The error 10091 is WSASYSNOTREADY from https://learn.microsoft.com/en-us/windows/win32/winsock/querying-nla-2 says "The NLA service is unavailable to process the request.".
The NLA service provides the network connectivity status indicator (NCSI) for each network adapter and it is what Google Chromium and all derivative platforms like Electron.js use to determine when the Internet is online and offline.
Went down the rabbit hole of Signal>Electron.js>Node.js>Chromium and discovered that we can enable logging on all these applications by running the programs from command-line and adding the command-line parameters "--enable-logging --v=1" to force debug log output.
From the good case that was run outside Sandboxie:
According Chromium's network_change_notifier.cc source we can see that CONNECTION_UNKNOWN is treated as there may be Internet but the last state set to CONNECTION_NONE is the only time when Chromium is certain there's no network.
Let's take a look at a bad case run from inside Sandboxie:
Any Google Chromium based application will inherent the same problem. The Chrome extension called "Offline Checker" will gray out any loaded web page when it detects a loss of Internet connectivity. The loss is triggered when reconnecting the Ethernet or VPN. The same does not occur when running browsers outside of Sandboxie.
The above points to some issue with Sandboxie cutting off access to the Network Location Awareness service so will need your help to have a look what could be the cause from the filtering aspects. I tried enabling "Disable Security Isolation" and "Disable Security Filtering" and all options available but no options worked.
What is your Windows edition and version?
Win11 2H22
In which Windows account you have this problem?
A local or Microsoft account without special changes.
Please mention any installed security software
None
What version of Sandboxie are you running?
Sandboxie Plus 1.5.3
Is it a new installation of Sandboxie?
I recently did a new clean installation.
Is it a regression?
No response
In which sandbox type you have this problem?
In a standard isolation sandbox (yellow sandbox icon).
Can you reproduce this problem on an empty sandbox?
I can confirm it also on an empty sandbox.
Did you previously enable some security policy settings outside Sandboxie?
No.
Crash dump
No response
Trace log
No response
Sandboxie.ini configuration
The text was updated successfully, but these errors were encountered: