{"action":"created","issue":{"url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop/issues/169","repository_url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop","labels_url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop/issues/169/comments","events_url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop/issues/169/events","html_url":"https://github.com/mzomparelli/zVirtualDesktop/issues/169","id":301036854,"number":169,"title":"Crash on startup","user":{"login":"jdmcfadden-usx","id":20133559,"avatar_url":"https://avatars2.githubusercontent.com/u/20133559?v=4","gravatar_id":"","url":"https://api.github.com/users/jdmcfadden-usx","html_url":"https://github.com/jdmcfadden-usx","followers_url":"https://api.github.com/users/jdmcfadden-usx/followers","following_url":"https://api.github.com/users/jdmcfadden-usx/following{/other_user}","gists_url":"https://api.github.com/users/jdmcfadden-usx/gists{/gist_id}","starred_url":"https://api.github.com/users/jdmcfadden-usx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdmcfadden-usx/subscriptions","organizations_url":"https://api.github.com/users/jdmcfadden-usx/orgs","repos_url":"https://api.github.com/users/jdmcfadden-usx/repos","events_url":"https://api.github.com/users/jdmcfadden-usx/events{/privacy}","received_events_url":"https://api.github.com/users/jdmcfadden-usx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T14:07:46Z","updated_at":"2018-02-28T15:26:46Z","closed_at":null,"author_association":"NONE","body":"I've had zVirtualDesktop configured to start on Windows 10 startup from a shortcut in the Startup folder. Most days, this works fine. Occasionally, however, zVD crashes and causes the entire system to freeze up. There will be delays of 8-10 seconds between key press event processing and mouse movement, pretty much rendering the entire Windows UI unresponsive. I typically have to do a hard shutdown and restart in order to recover. Looking at the Event Viewer, I see the following error thrown by the app:\r\n\r\nApplication: zVirtualDesktop.exe\r\nFramework Version: v4.0.30319\r\nDescription: The process was terminated due to an unhandled exception.\r\nException Info: System.NullReferenceException\r\n   at zVirtualDesktop.HookHandlers.KeyDown(System.Object, System.Windows.Forms.KeyEventArgs)\r\n   at zVirtualDesktop.HookManager.KeyboardHookProc(Int32, Int32, IntPtr)\r\n\r\nAnd here's the report from the Windows Error Reporting (the dump files were not to be found.):\r\n\r\nFault bucket 1424331842350634946, type 5\r\nEvent Name: CLR20r3\r\nResponse: Not available\r\nCab Id: 0\r\n\r\nProblem signature:\r\nP1: zVirtualDesktop.exe\r\nP2: 1.0.0.77\r\nP3: 5a94d763\r\nP4: zVirtualDesktop\r\nP5: 1.0.0.77\r\nP6: 5a94d763\r\nP7: 340\r\nP8: b0\r\nP9: System.NullReferenceException\r\nP10: \r\n\r\nAttached files:\r\nminidump.mdmp\r\n\\\\?\\C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\WER415.tmp.WERInternalMetadata.xml\r\n\\\\?\\C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\WER469.tmp.csv\r\n\\\\?\\C:\\ProgramData\\Microsoft\\Windows\\WER\\Temp\\WER526.tmp.txt\r\n\r\nThese files may be available here:\r\nC:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppCrash_zVirtualDesktop._18f07a5d806a92f24a8eea913511ef51bda5a24_39631286_b193c3e6\r\n\r\nAnalysis symbol: \r\nRechecking for solution: 0\r\nReport Id: a7e8381b-d74e-49c3-868e-f078467aa735\r\nReport Status: 268435456\r\nHashed bucket: c64b2233aea4b3da53c43e43a19657c2"},"comment":{"url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop/issues/comments/369274622","html_url":"https://github.com/mzomparelli/zVirtualDesktop/issues/169#issuecomment-369274622","issue_url":"https://api.github.com/repos/mzomparelli/zVirtualDesktop/issues/169","id":369274622,"user":{"login":"mzomparelli","id":10564234,"avatar_url":"https://avatars0.githubusercontent.com/u/10564234?v=4","gravatar_id":"","url":"https://api.github.com/users/mzomparelli","html_url":"https://github.com/mzomparelli","followers_url":"https://api.github.com/users/mzomparelli/followers","following_url":"https://api.github.com/users/mzomparelli/following{/other_user}","gists_url":"https://api.github.com/users/mzomparelli/gists{/gist_id}","starred_url":"https://api.github.com/users/mzomparelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzomparelli/subscriptions","organizations_url":"https://api.github.com/users/mzomparelli/orgs","repos_url":"https://api.github.com/users/mzomparelli/repos","events_url":"https://api.github.com/users/mzomparelli/events{/privacy}","received_events_url":"https://api.github.com/users/mzomparelli/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T15:26:46Z","updated_at":"2018-02-28T15:26:46Z","author_association":"OWNER","body":"Thanks for the info. I think I know what is causing this. The hooks are started before the settings load. So if you press a key before zVD has fully loaded then you will get a NULL reference at `zVirtualDesktop.HookHandlers.KeyDown(System.Object, System.Windows.Forms.KeyEventArgs)` because that function is looking for the list of hotkeys. I will look into this tonight."}}
{"actor":{"display_login":"mzomparelli"}}