{"action":"created","issue":{"url":"https://api.github.com/repos/xcp-ng/xenadmin/issues/89","repository_url":"https://api.github.com/repos/xcp-ng/xenadmin","labels_url":"https://api.github.com/repos/xcp-ng/xenadmin/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/xcp-ng/xenadmin/issues/89/comments","events_url":"https://api.github.com/repos/xcp-ng/xenadmin/issues/89/events","html_url":"https://github.com/xcp-ng/xenadmin/issues/89","id":346396140,"node_id":"MDU6SXNzdWUzNDYzOTYxNDA=","number":89,"title":"Error when restarting toolstack","user":{"login":"Danp2","id":7101313,"node_id":"MDQ6VXNlcjcxMDEzMTM=","avatar_url":"https://avatars0.githubusercontent.com/u/7101313?v=4","gravatar_id":"","url":"https://api.github.com/users/Danp2","html_url":"https://github.com/Danp2","followers_url":"https://api.github.com/users/Danp2/followers","following_url":"https://api.github.com/users/Danp2/following{/other_user}","gists_url":"https://api.github.com/users/Danp2/gists{/gist_id}","starred_url":"https://api.github.com/users/Danp2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danp2/subscriptions","organizations_url":"https://api.github.com/users/Danp2/orgs","repos_url":"https://api.github.com/users/Danp2/repos","events_url":"https://api.github.com/users/Danp2/events{/privacy}","received_events_url":"https://api.github.com/users/Danp2/received_events","type":"User","site_admin":false},"labels":[{"id":942782264,"node_id":"MDU6TGFiZWw5NDI3ODIyNjQ=","url":"https://api.github.com/repos/xcp-ng/xenadmin/labels/have%20to%20be%20checked","name":"have to be checked","color":"f9e5a7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-07-31T23:37:00Z","updated_at":"2018-09-07T20:14:33Z","closed_at":"2018-09-06T12:05:10Z","author_association":"NONE","body":"**Describe the bug**\r\nXCP-ng Center crashes when restarting toolstack\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Launch XCP-ng Center\r\n2. Select a server\r\n3. Select Server > Restart Toolstack\r\n4. Click 'Yes'\r\n\r\n**Expected behavior**\r\nToolstack to restart and XCP-ng Center to successfully reconnect\r\n\r\n**Screenshots / Logfiles**\r\n![image](https://user-images.githubusercontent.com/7101313/43492711-d5bd5698-94ef-11e8-9c84-8261825cfe7e.png)\r\n\r\n```\r\n2018-07-31 18:27:31,362 INFO  XenAdmin.Program [23] - Version: 7.5.0.8\r\n2018-07-31 18:27:31,362 INFO  XenAdmin.Program [23] - .NET runtime version: 4.0.30319.42000\r\n2018-07-31 18:27:31,363 INFO  XenAdmin.Program [23] - OS version: Microsoft Windows NT 10.0.17134.0\r\n2018-07-31 18:27:31,363 INFO  XenAdmin.Program [23] - UI Culture: English (United States)\r\n2018-07-31 18:27:31,363 INFO  XenAdmin.Program [23] - Bitness: 64-bit\r\n2018-07-31 18:27:31,366 INFO  XenAdmin.Program [23] - Log Application State\r\n2018-07-31 18:27:31,366 INFO  XenAdmin.Program [23] - ExitCode: 0\r\n2018-07-31 18:27:31,366 INFO  XenAdmin.Program [23] - Time since process started: 00:04:22.5202944\r\n2018-07-31 18:27:31,373 INFO  XenAdmin.Program [23] - Handles open: 1011\r\n2018-07-31 18:27:31,374 INFO  XenAdmin.Program [23] - USER handles open: 343\r\n2018-07-31 18:27:31,374 INFO  XenAdmin.Program [23] - GDI handles open: 103\r\n2018-07-31 18:27:31,374 INFO  XenAdmin.Program [23] - Thread count: 33\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Virtual memory size: 39665569792 B(36.9 GB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Working set: 154468352 B(147 MB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Private memory size: 102440960 B(98 MB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Nonpaged system memory size: 73496 B(72 kB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Paged memory size: 102440960 B(98 MB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Paged system memory size: 931120 B(909 kB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Peak paged memory size: 102965248 B(98 MB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Peak virtual memory size: 39671209984 B(36.9 GB)\r\n2018-07-31 18:27:31,375 INFO  XenAdmin.Program [23] - Peak working set: 154963968 B(148 MB)\r\n2018-07-31 18:27:31,376 INFO  XenAdmin.Program [23] - Process priority class: Normal\r\n2018-07-31 18:27:31,376 INFO  XenAdmin.Program [23] - Privileged processor time: 00:00:08.4062500\r\n2018-07-31 18:27:31,376 INFO  XenAdmin.Program [23] - Total processor time: 00:00:19.9687500\r\n2018-07-31 18:27:31,376 INFO  XenAdmin.Program [23] - User processor time: 00:00:11.5625000\r\n2018-07-31 18:27:31,408 ERROR XenAdmin.InvokeHelper [Main program thread] - Exception in Invoke\r\nSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at XenAdmin.TabPages.GeneralTabPage.PoolAdditionalLicenseString()\r\n   at XenAdmin.TabPages.GeneralTabPage.generateGeneralBox()\r\n   at XenAdmin.TabPages.GeneralTabPage.BuildList()\r\n   at System.Action.Invoke()\r\n   at XenAdmin.OtherConfigAndTagsWatcher.OnTagsChanged()\r\n   at XenAdmin.OtherConfigAndTagsWatcher.<>c.<connection_ConnectionStateChanged>b__25_0()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   at System.Delegate.DynamicInvokeImpl(Object[] args)\r\n   at XenAdmin.InvokeHelper.<>c__DisplayClass4_0.<Invoke>b__0()\r\n2018-07-31 18:27:31,408 ERROR XenAdmin.Program [Main program thread] - Exception in Invoke\r\nSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at XenAdmin.TabPages.GeneralTabPage.PoolAdditionalLicenseString()\r\n   at XenAdmin.TabPages.GeneralTabPage.generateGeneralBox()\r\n   at XenAdmin.TabPages.GeneralTabPage.BuildList()\r\n   at System.Action.Invoke()\r\n   at XenAdmin.OtherConfigAndTagsWatcher.OnTagsChanged()\r\n   at XenAdmin.OtherConfigAndTagsWatcher.<>c.<connection_ConnectionStateChanged>b__25_0()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   at System.Delegate.DynamicInvokeImpl(Object[] args)\r\n   at XenAdmin.InvokeHelper.<>c__DisplayClass4_0.<Invoke>b__0()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   at System.Delegate.DynamicInvokeImpl(Object[] args)\r\n   at XenAdmin.Program.<>c__DisplayClass66_0.<Invoke>b__0()\r\n2018-07-31 18:27:31,409 FATAL XenAdmin.Program [Connection to 192.168.1.21] - Uncaught exception\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)\r\n   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)\r\n   at XenAdmin.Program.Invoke(Control c, Delegate f, Object[] p)\r\n   at XenAdmin.MainWindow.System.ComponentModel.ISynchronizeInvoke.Invoke(Delegate method, Object[] args)\r\n   at XenAdmin.OtherConfigAndTagsWatcher.connection_ConnectionStateChanged(Object sender, EventArgs e)\r\n   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)\r\n   at XenAdmin.Network.XenConnection.OnConnectionStateChanged()\r\n   at XenAdmin.Network.XenConnection.EndConnect(Boolean clearCache, ConnectTask task, Boolean exiting)\r\n   at XenAdmin.Network.XenConnection.HandleConnectionLost(ConnectTask task, Pool pool, String poolopaqueref)\r\n   at XenAdmin.Network.XenConnection.HandleConnectionResult(ConnectTask task, Exception error, Pool pool)\r\n   at XenAdmin.Network.XenConnection.ConnectWorkerThread(Object o)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart(Object obj)\r\n```\r\n\r\n**Hard-/Software involved:**\r\n - Hardware: Dell R620\r\n - Host XCP-ng Version: 7.4.1, fully patched\r\n - Client XCP-ng Center Version: 7.5.0.8\r\n - Desktop OS: Windows 10 1803 (17134.191)\r\n\r\n**Additional context**\r\nProgram also crashes if the toolstack is restarted elsewhere, such as XO"},"comment":{"url":"https://api.github.com/repos/xcp-ng/xenadmin/issues/comments/419553450","html_url":"https://github.com/xcp-ng/xenadmin/issues/89#issuecomment-419553450","issue_url":"https://api.github.com/repos/xcp-ng/xenadmin/issues/89","id":419553450,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTU1MzQ1MA==","user":{"login":"cocoon","id":1071741,"node_id":"MDQ6VXNlcjEwNzE3NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1071741?v=4","gravatar_id":"","url":"https://api.github.com/users/cocoon","html_url":"https://github.com/cocoon","followers_url":"https://api.github.com/users/cocoon/followers","following_url":"https://api.github.com/users/cocoon/following{/other_user}","gists_url":"https://api.github.com/users/cocoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cocoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocoon/subscriptions","organizations_url":"https://api.github.com/users/cocoon/orgs","repos_url":"https://api.github.com/users/cocoon/repos","events_url":"https://api.github.com/users/cocoon/events{/privacy}","received_events_url":"https://api.github.com/users/cocoon/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T20:14:33Z","updated_at":"2018-09-07T20:14:33Z","author_association":"COLLABORATOR","body":"OK thanks good to know.\r\n\r\nOne last important information I would need:\r\nDo you still have the first testbuild that I creaded and tested it with that, too? Because this would be the one how I would like to fix it.\r\n\r\nThe second one was wit mouch more code removed to check, if there are any other problems around it.\r\n\r\nIf you don't have the first one anymore, I can add it again."}}
{"actor":{"display_login":"cocoon"}}