WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Wireguard for Windows breaks Task Scheduler
@ 2019-11-16 22:24 Alexey Ivanov
  2019-11-20  5:08 ` Fwd: " Alexey Ivanov
  0 siblings, 1 reply; 2+ 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 --]

<div dir="ltr"><div>Im not exactly sure what wireguard doing to create virtual network adapters in windows, but it&#39;s more looks like it can&#39;t handle deletion of them properly. <br></div><div>This issue easy to reproduce: <br></div><ol><li>Create wireguard&#39;s tunnels.</li><li>Connect tunnel, disconnect and remove it.</li><li>Repeat it multiple times.</li></ol><div>Windows registry will be full of wrong records of these non-existed network connections.</div><div>And now try to open Task Scheduler and click on &quot;Create task...&quot; it will crash with log:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>в Microsoft.Windows.ManagementUI.CombinedControls.INetwork.GetName()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.UINetwork.GetUINetwork(INetwork network)<br>  в Microsoft.Windows.ManagementUI.CombinedControls.NetworkListManager.GetNetworkList()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.PopulateNetworkComboBox()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.InitializeConditions()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.InitializeView()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.Initialize(UITaskFolder folder, String taskName, String title, UserChoice userAction, BaseResultsControl inOwnerView, String inXmlText)<br>  в Microsoft.Windows.ManagementUI.CombinedControls.BaseResultsControl.CreateTask(UITaskFolder folder, String initialTaskName, String taskXml)<br>  в System.Windows.Forms.MenuItem.OnClick(EventArgs e)<br>  в System.Windows.Forms.MenuItem.MenuItemData.Execute()<br>  в System.Windows.Forms.Command.Invoke()<br>  в System.Windows.Forms.Control.WmCommand(Message&amp; m)<br>  в System.Windows.Forms.Control.WndProc(Message&amp; m)<br>  в System.Windows.Forms.ListView.WndProc(Message&amp; m)<br>  в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) </div></blockquote><div><br></div><div>So ive googled solution <a href="https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1">https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1</a> (Programatix message)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>To resolve the problem,<br>    Run regedit<br>    Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList<br>    Delete everything under the following path,<br>        Nla-&gt;Cache<br>        Nla-&gt;IntranetEnabled<br>        Nla-&gt;Wireless<br>        Profiles<br>        Signatures-&gt;Managed<br>        Signatures-&gt;Unmanaged<br>    Reboot</div></blockquote><div><br></div><div>And it actually helps.</div><div>Can wireguard just properly handle this &quot;issue&quot; on his own and do not break Task Scheduler application?<br></div></div>

[-- 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] 2+ 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
  0 siblings, 0 replies; 2+ 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 --]

<div dir="ltr">Im not exactly sure what wireguard doing to create virtual network adapters in windows, but it&#39;s more looks like it can&#39;t handle deletion of them properly. <br><div class="gmail_quote"><div dir="ltr"><div>This issue easy to reproduce: <br></div><ol><li>Create wireguard&#39;s tunnels.</li><li>Connect tunnel, disconnect and remove it.</li><li>Repeat it multiple times.</li></ol><div>Windows registry will be full of wrong records of these non-existed network connections.</div><div>And now try to open Task Scheduler and click on &quot;Create task...&quot; it will crash with log:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>в Microsoft.Windows.ManagementUI.CombinedControls.INetwork.GetName()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.UINetwork.GetUINetwork(INetwork network)<br>  в Microsoft.Windows.ManagementUI.CombinedControls.NetworkListManager.GetNetworkList()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.PopulateNetworkComboBox()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.ControlTaskConditions.InitializeConditions()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.InitializeView()<br>  в Microsoft.Windows.ManagementUI.CombinedControls.EditTaskDialog.Initialize(UITaskFolder folder, String taskName, String title, UserChoice userAction, BaseResultsControl inOwnerView, String inXmlText)<br>  в Microsoft.Windows.ManagementUI.CombinedControls.BaseResultsControl.CreateTask(UITaskFolder folder, String initialTaskName, String taskXml)<br>  в System.Windows.Forms.MenuItem.OnClick(EventArgs e)<br>  в System.Windows.Forms.MenuItem.MenuItemData.Execute()<br>  в System.Windows.Forms.Command.Invoke()<br>  в System.Windows.Forms.Control.WmCommand(Message&amp; m)<br>  в System.Windows.Forms.Control.WndProc(Message&amp; m)<br>  в System.Windows.Forms.ListView.WndProc(Message&amp; m)<br>  в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) </div></blockquote><div><br></div><div>So ive googled solution <a href="https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1" target="_blank">https://answers.microsoft.com/en-us/windows/forum/all/task-scheduler-crashed/5acab7c5-eb79-48c8-876d-ade321565953?auth=1</a> (Programatix message)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>To resolve the problem,<br>    Run regedit<br>    Go to HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList<br>    Delete everything under the following path,<br>        Nla-&gt;Cache<br>        Nla-&gt;IntranetEnabled<br>        Nla-&gt;Wireless<br>        Profiles<br>        Signatures-&gt;Managed<br>        Signatures-&gt;Unmanaged<br>    Reboot</div></blockquote><div><br></div><div>And it actually helps.</div><div>Can wireguard just properly handle this &quot;issue&quot; on his own and do not break Task Scheduler application?<br></div></div>
</div></div>

[-- 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] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ 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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git