wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* Wireguard for Windows breaks Task Scheduler
@ 2019-11-16 22:24 Alexey Ivanov
  2019-11-20  5:08 ` Fwd: " Alexey Ivanov
  2019-11-27 10:55 ` Simon Rozman
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Ivanov @ 2019-11-16 22:24 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 2542 bytes --]

Im not exactly sure what wireguard doing to create virtual network adapters
in windows, but it's more looks like it can't handle deletion of them
properly.
This issue easy to reproduce:

   1. Create wireguard's tunnels.
   2. Connect tunnel, disconnect and remove it.
   3. Repeat it multiple times.

Windows registry will be full of wrong records of these non-existed network
connections.
And now try to open Task Scheduler and click on "Create task..." it will
crash with log:

в Microsoft.Windows.ManagementUI.CombinedControls.INetwork.GetName()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.UINetwork.GetUINetwork(INetwork
> network)
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.NetworkListManager.GetNetworkList()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.PopulateNetworkComboBox()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.InitializeConditions()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.InitializeView()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.Initialize(UITaskFolder
> folder, String taskName, String title, UserChoice userAction,
> BaseResultsControl inOwnerView, String inXmlText)
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.BaseResultsControl.CreateTask(UITaskFolder
> folder, String initialTaskName, String taskXml)
>   в System.Windows.Forms.MenuItem.OnClick(EventArgs e)
>   в System.Windows.Forms.MenuItem.MenuItemData.Execute()
>   в System.Windows.Forms.Command.Invoke()
>   в System.Windows.Forms.Control.WmCommand(Message& m)
>   в System.Windows.Forms.Control.WndProc(Message& m)
>   в System.Windows.Forms.ListView.WndProc(Message& m)
>   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)
>

So ive googled solution
https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1
(Programatix message)

To resolve the problem,
>     Run regedit
>     Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList
>     Delete everything under the following path,
>         Nla->Cache
>         Nla->IntranetEnabled
>         Nla->Wireless
>         Profiles
>         Signatures->Managed
>         Signatures->Unmanaged
>     Reboot
>

And it actually helps.
Can wireguard just properly handle this "issue" on his own and do not break
Task Scheduler application?

[-- Attachment #1.2: Type: text/html, Size: 3180 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Fwd: Wireguard for Windows breaks Task Scheduler
  2019-11-16 22:24 Wireguard for Windows breaks Task Scheduler Alexey Ivanov
@ 2019-11-20  5:08 ` Alexey Ivanov
  2019-11-27 10:55 ` Simon Rozman
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Ivanov @ 2019-11-20  5:08 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 2542 bytes --]

Im not exactly sure what wireguard doing to create virtual network adapters
in windows, but it's more looks like it can't handle deletion of them
properly.
This issue easy to reproduce:

   1. Create wireguard's tunnels.
   2. Connect tunnel, disconnect and remove it.
   3. Repeat it multiple times.

Windows registry will be full of wrong records of these non-existed network
connections.
And now try to open Task Scheduler and click on "Create task..." it will
crash with log:

в Microsoft.Windows.ManagementUI.CombinedControls.INetwork.GetName()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.UINetwork.GetUINetwork(INetwork
> network)
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.NetworkListManager.GetNetworkList()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.PopulateNetworkComboBox()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.InitializeConditions()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.InitializeView()
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.Initialize(UITaskFolder
> folder, String taskName, String title, UserChoice userAction,
> BaseResultsControl inOwnerView, String inXmlText)
>   в
> Microsoft.Windows.ManagementUI.CombinedControls.BaseResultsControl.CreateTask(UITaskFolder
> folder, String initialTaskName, String taskXml)
>   в System.Windows.Forms.MenuItem.OnClick(EventArgs e)
>   в System.Windows.Forms.MenuItem.MenuItemData.Execute()
>   в System.Windows.Forms.Command.Invoke()
>   в System.Windows.Forms.Control.WmCommand(Message& m)
>   в System.Windows.Forms.Control.WndProc(Message& m)
>   в System.Windows.Forms.ListView.WndProc(Message& m)
>   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)
>

So ive googled solution
https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1
(Programatix message)

To resolve the problem,
>     Run regedit
>     Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList
>     Delete everything under the following path,
>         Nla->Cache
>         Nla->IntranetEnabled
>         Nla->Wireless
>         Profiles
>         Signatures->Managed
>         Signatures->Unmanaged
>     Reboot
>

And it actually helps.
Can wireguard just properly handle this "issue" on his own and do not break
Task Scheduler application?

[-- Attachment #1.2: Type: text/html, Size: 3239 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Wireguard for Windows breaks Task Scheduler
  2019-11-16 22:24 Wireguard for Windows breaks Task Scheduler Alexey Ivanov
  2019-11-20  5:08 ` Fwd: " Alexey Ivanov
@ 2019-11-27 10:55 ` Simon Rozman
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Rozman @ 2019-11-27 10:55 UTC (permalink / raw)
  To: Alexey Ivanov, wireguard


[-- Attachment #1.1.1: Type: text/plain, Size: 3106 bytes --]

Hi Alexey!

 

Unfortunately, this piling of NLA profiles was solved in WireGuard for Windows 10 only. Windows 7 and 8 will create a new NLA entry each time WireGuard connects.

 

It's the same situation as if you would connect your laptop to 100 or more WiFis in the past.

 

You should address your question why so many NLA profiles crash Task Scheduler to Microsoft.

 

Best regards,

Simon

 

From: WireGuard <wireguard-bounces@lists.zx2c4.com> On Behalf Of Alexey Ivanov
Sent: Saturday, November 16, 2019 11:24 PM
To: wireguard@lists.zx2c4.com
Subject: Wireguard for Windows breaks Task Scheduler

 

Im not exactly sure what wireguard doing to create virtual network adapters in windows, but it's more looks like it can't handle deletion of them properly. 

This issue easy to reproduce: 

1.	Create wireguard's tunnels.
2.	Connect tunnel, disconnect and remove it.
3.	Repeat it multiple times.

Windows registry will be full of wrong records of these non-existed network connections.

And now try to open Task Scheduler and click on "Create task..." it will crash with log:

 

в Microsoft.Windows.ManagementUI.CombinedControls.INetwork.GetName()
  в Microsoft.Windows.ManagementUI.CombinedControls.UINetwork.GetUINetwork(INetwork network)
  в Microsoft.Windows.ManagementUI.CombinedControls.NetworkListManager.GetNetworkList()
  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.PopulateNetworkComboBox()
  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.InitializeConditions()
  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.InitializeView()
  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.Initialize(UITaskFolder folder, String taskName, String title, UserChoice userAction, BaseResultsControl inOwnerView, String inXmlText)
  в Microsoft.Windows.ManagementUI.CombinedControls.BaseResultsControl.CreateTask(UITaskFolder folder, String initialTaskName, String taskXml)
  в System.Windows.Forms.MenuItem.OnClick(EventArgs e)
  в System.Windows.Forms.MenuItem.MenuItemData.Execute()
  в System.Windows.Forms.Command.Invoke()
  в System.Windows.Forms.Control.WmCommand(Message& m)
  в System.Windows.Forms.Control.WndProc(Message& m)
  в System.Windows.Forms.ListView.WndProc(Message& m)
  в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

 

So ive googled solution https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1 (Programatix message)

 

To resolve the problem,
    Run regedit
    Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList
    Delete everything under the following path,
        Nla->Cache
        Nla->IntranetEnabled
        Nla->Wireless
        Profiles
        Signatures->Managed
        Signatures->Unmanaged
    Reboot

 

And it actually helps.

Can wireguard just properly handle this "issue" on his own and do not break Task Scheduler application?


[-- Attachment #1.1.2: Type: text/html, Size: 8570 bytes --]

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4919 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-12  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-16 22:24 Wireguard for Windows breaks Task Scheduler Alexey Ivanov
2019-11-20  5:08 ` Fwd: " Alexey Ivanov
2019-11-27 10:55 ` Simon Rozman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).