[GH-ISSUE #190] App crash when unlock screen #2084

Closed
opened 2026-03-01 17:17:31 +03:00 by kerem · 3 comments
Owner

Originally created by @xksu on GitHub (Jan 25, 2022).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/190

Originally assigned to: @VShawn on GitHub.

Remote server is tigervnc server for win64 1.12.0.
Remote server is screen unlock state.
After connect server via vnc mode,when i try to unlock screen,app crash,and blow is the error message:

Environment

Component Version
PRemoteM_Debug 0.6.2-alpha(EXE Release)
.NET Framework .NET Framework 4.8
CLR 4.0.30319.42000
OS Windows 10 Home 64-bits 6.2.9200.0 (2009)

Error Info

引发类型为“System.Exception”的异常。

Stack Trace

   在 VncSharp.RemoteDesktop.UpdateRemotePointer()
   在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   在 System.Windows.Application.RunDispatcher(Object ignore)
   在 System.Windows.Application.RunInternal(Window window)
   在 System.Windows.Application.Run(Window window)
   在 System.Windows.Application.Run()
   在 PRM.App.Main()

Recent Log

2022-01-25T11:40:46.6445779+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connected
2022-01-25T11:40:46.6533685+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1
2022-01-25T11:40:53.7044730+08:00[ThreadId:0000000014]		Debug		Check update.
2022-01-25T11:40:55.1488851+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:40:55.4379964+08:00[ThreadId:0000000001]		Debug		Remove connectionId = 2 from tab(51113363)
2022-01-25T11:40:55.4389745+08:00[ThreadId:0000000001]		Debug		DelProtocolHost host(7949639)
2022-01-25T11:40:55.4389745+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 1
2022-01-25T11:40:55.4399757+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:40:55.4399757+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:40:55.4409802+08:00[ThreadId:0000000001]		Debug		Close tab(51113363)
2022-01-25T11:40:55.4557450+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 0
2022-01-25T11:40:55.9689603+08:00[ThreadId:0000000014]		Warning		System.Net.WebException: 请求被中止: 连接被意外关闭。
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106
   在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106
   在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136
2022-01-25T11:40:58.4921322+08:00[ThreadId:0000000001]		Debug		Tab size change to:W = 872.5, H = 702, Child , 
2022-01-25T11:40:58.5144549+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:40:58.5154553+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:40:58.6951384+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1
2022-01-25T11:41:03.5816800+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:41:03.5827124+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:41:03.5866826+08:00[ThreadId:0000000001]		Debug		Remove connectionId = 2 from tab(60454592)
2022-01-25T11:41:03.5876814+08:00[ThreadId:0000000001]		Debug		DelProtocolHost host(57946857)
2022-01-25T11:41:03.5876814+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 1
2022-01-25T11:41:03.5886816+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:41:03.5886816+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Disconnected
2022-01-25T11:41:03.5896829+08:00[ThreadId:0000000001]		Debug		Close tab(60454592)
2022-01-25T11:41:03.6045955+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 0
2022-01-25T11:41:09.5062773+08:00[ThreadId:0000000001]		Debug		SetSelfStartingHelper.SetSelfStartByRegistryKey(False, "PRemoteM_Debug")
2022-01-25T11:41:10.1801192+08:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-25T11:41:10.4378625+08:00[ThreadId:0000000001]		Debug		OrderServerList: by IdAsc
2022-01-25T11:41:10.4842696+08:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-25T11:41:12.3949056+08:00[ThreadId:0000000001]		Debug		Tab size change to:W = 872.5, H = 702, Child , 
2022-01-25T11:41:12.4387318+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:41:12.4397330+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:41:12.6306473+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1
2022-01-25T11:41:13.9467771+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:41:13.9477806+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:41:20.0021506+08:00[ThreadId:0000000005]		Debug		Check update.
2022-01-25T11:41:22.8525403+08:00[ThreadId:0000000004]		Warning		System.Net.WebException: 请求被中止: 连接被意外关闭。
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106
   在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106
   在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136
2022-01-25T11:42:57.7303791+08:00[ThreadId:0000000001]		Debug		SetSelfStartingHelper.SetSelfStartByRegistryKey(False, "PRemoteM_Debug")
2022-01-25T11:42:58.4481165+08:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-25T11:42:58.6558807+08:00[ThreadId:0000000001]		Debug		OrderServerList: by IdAsc
2022-01-25T11:42:58.6850779+08:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-25T11:43:08.1446179+08:00[ThreadId:0000000004]		Debug		Check update.
2022-01-25T11:43:10.3578319+08:00[ThreadId:0000000005]		Warning		System.Net.WebException: 请求被中止: 连接被意外关闭。
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106
   在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106
   在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136
2022-01-25T11:45:36.6586799+08:00[ThreadId:0000000001]		Debug		Tab size change to:W = 872.5, H = 702, Child , 
2022-01-25T11:45:36.7043459+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:45:36.7052664+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connecting
2022-01-25T11:45:36.9870497+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connected
2022-01-25T11:45:36.9919573+08:00[ThreadId:0000000001]		Debug		VncHost: Status => Connected
2022-01-25T11:45:36.9997773+08:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1
2022-01-25T11:45:45.2379234+08:00[ThreadId:0000000001]		Fatal		System.Exception: 引发类型为“System.Exception”的异常。
   在 VncSharp.RemoteDesktop.UpdateRemotePointer()
   在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   在 System.Windows.Application.RunDispatcher(Object ignore)
   在 System.Windows.Application.RunInternal(Window window)
   在 System.Windows.Application.Run(Window window)
   在 System.Windows.Application.Run()
   在 PRM.App.Main()
   在 VncSharp.RemoteDesktop.UpdateRemotePointer()
   在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   在 System.Windows.Application.RunDispatcher(Object ignore)
   在 System.Windows.Application.RunInternal(Window window)
   在 System.Windows.Application.Run(Window window)
   在 System.Windows.Application.Run()
   在 PRM.App.Main()

Originally created by @xksu on GitHub (Jan 25, 2022). Original GitHub issue: https://github.com/1Remote/1Remote/issues/190 Originally assigned to: @VShawn on GitHub. Remote server is tigervnc server for win64 1.12.0. Remote server is screen unlock state. After connect server via vnc mode,when i try to unlock screen,app crash,and blow is the error message: <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |PRemoteM_Debug | `0.6.2-alpha`(EXE Release)| |.NET Framework | `.NET Framework 4.8` | |CLR | `4.0.30319.42000` | |OS | `Windows 10 Home 64-bits 6.2.9200.0 (2009)` | ## Error Info 引发类型为“System.Exception”的异常。 ## Stack Trace ``` 在 VncSharp.RemoteDesktop.UpdateRemotePointer() 在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 System.Windows.Application.Run(Window window) 在 System.Windows.Application.Run() 在 PRM.App.Main() ``` ## Recent Log ``` 2022-01-25T11:40:46.6445779+08:00[ThreadId:0000000001] Debug VncHost: Status => Connected 2022-01-25T11:40:46.6533685+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1 2022-01-25T11:40:53.7044730+08:00[ThreadId:0000000014] Debug Check update. 2022-01-25T11:40:55.1488851+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:40:55.4379964+08:00[ThreadId:0000000001] Debug Remove connectionId = 2 from tab(51113363) 2022-01-25T11:40:55.4389745+08:00[ThreadId:0000000001] Debug DelProtocolHost host(7949639) 2022-01-25T11:40:55.4389745+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 1 2022-01-25T11:40:55.4399757+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:40:55.4399757+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:40:55.4409802+08:00[ThreadId:0000000001] Debug Close tab(51113363) 2022-01-25T11:40:55.4557450+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 0 2022-01-25T11:40:55.9689603+08:00[ThreadId:0000000014] Warning System.Net.WebException: 请求被中止: 连接被意外关闭。 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106 在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106 在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136 2022-01-25T11:40:58.4921322+08:00[ThreadId:0000000001] Debug Tab size change to:W = 872.5, H = 702, Child , 2022-01-25T11:40:58.5144549+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:40:58.5154553+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:40:58.6951384+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1 2022-01-25T11:41:03.5816800+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:41:03.5827124+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:41:03.5866826+08:00[ThreadId:0000000001] Debug Remove connectionId = 2 from tab(60454592) 2022-01-25T11:41:03.5876814+08:00[ThreadId:0000000001] Debug DelProtocolHost host(57946857) 2022-01-25T11:41:03.5876814+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 1 2022-01-25T11:41:03.5886816+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:41:03.5886816+08:00[ThreadId:0000000001] Debug VncHost: Status => Disconnected 2022-01-25T11:41:03.5896829+08:00[ThreadId:0000000001] Debug Close tab(60454592) 2022-01-25T11:41:03.6045955+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 0 2022-01-25T11:41:09.5062773+08:00[ThreadId:0000000001] Debug SetSelfStartingHelper.SetSelfStartByRegistryKey(False, "PRemoteM_Debug") 2022-01-25T11:41:10.1801192+08:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-25T11:41:10.4378625+08:00[ThreadId:0000000001] Debug OrderServerList: by IdAsc 2022-01-25T11:41:10.4842696+08:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-25T11:41:12.3949056+08:00[ThreadId:0000000001] Debug Tab size change to:W = 872.5, H = 702, Child , 2022-01-25T11:41:12.4387318+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:41:12.4397330+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:41:12.6306473+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1 2022-01-25T11:41:13.9467771+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:41:13.9477806+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:41:20.0021506+08:00[ThreadId:0000000005] Debug Check update. 2022-01-25T11:41:22.8525403+08:00[ThreadId:0000000004] Warning System.Net.WebException: 请求被中止: 连接被意外关闭。 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106 在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106 在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136 2022-01-25T11:42:57.7303791+08:00[ThreadId:0000000001] Debug SetSelfStartingHelper.SetSelfStartByRegistryKey(False, "PRemoteM_Debug") 2022-01-25T11:42:58.4481165+08:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-25T11:42:58.6558807+08:00[ThreadId:0000000001] Debug OrderServerList: by IdAsc 2022-01-25T11:42:58.6850779+08:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-25T11:43:08.1446179+08:00[ThreadId:0000000004] Debug Check update. 2022-01-25T11:43:10.3578319+08:00[ThreadId:0000000005] Warning System.Net.WebException: 请求被中止: 连接被意外关闭。 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106 在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\HttpHelper.cs:行号 106 在 Shawn.Utils.UpdateChecker.CheckUpdate(String url, String ignoreVersion) 位置 D:\source\repos\PRemoteM\PRM.Core\Utils\UpdateChecker.cs:行号 136 2022-01-25T11:45:36.6586799+08:00[ThreadId:0000000001] Debug Tab size change to:W = 872.5, H = 702, Child , 2022-01-25T11:45:36.7043459+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:45:36.7052664+08:00[ThreadId:0000000001] Debug VncHost: Status => Connecting 2022-01-25T11:45:36.9870497+08:00[ThreadId:0000000001] Debug VncHost: Status => Connected 2022-01-25T11:45:36.9919573+08:00[ThreadId:0000000001] Debug VncHost: Status => Connected 2022-01-25T11:45:36.9997773+08:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1 2022-01-25T11:45:45.2379234+08:00[ThreadId:0000000001] Fatal System.Exception: 引发类型为“System.Exception”的异常。 在 VncSharp.RemoteDesktop.UpdateRemotePointer() 在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 System.Windows.Application.Run(Window window) 在 System.Windows.Application.Run() 在 PRM.App.Main() 在 VncSharp.RemoteDesktop.UpdateRemotePointer() 在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 System.Windows.Application.Run(Window window) 在 System.Windows.Application.Run() 在 PRM.App.Main() ``` </details>
kerem 2026-03-01 17:17:31 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (Jan 25, 2022):

Thanks for your report.

Seems it was crash beacuse of the bug from VncSharp' RemoteDesktop UpdateRemotePointer. VncSharp crashed when on moused up, and then PRemoteM crashed.

   在 VncSharp.RemoteDesktop.UpdateRemotePointer()
   在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea)

source code:

github.com/humphd/VncSharp@30b833f917/VncSharp/RemoteDesktop.cs (L806-L821)

Here is the same bug from Terminals.

https://github.com/Terminals-Origin/Terminals/issues/169

Since the repository of VncSharp was archived for 4 years, I don't intend to make a PR to fix this. It's time to retire the old VncSharp and find an alternative. (Or maybe we can leave a blank default runner for vnc, and ask user select a runner then first time start the vnc session)

some alternatives:
https://github.com/quamotion/remoteviewing
https://github.com/MarcusWichelmann/MarcusW.VncClient

@xksu I recommend that you can create a VNC runner with tightVNC before I update a new vnc version.

image

<!-- gh-comment-id:1020872844 --> @VShawn commented on GitHub (Jan 25, 2022): Thanks for your report. Seems it was crash beacuse of the bug from VncSharp' RemoteDesktop UpdateRemotePointer. VncSharp crashed when on moused up, and then PRemoteM crashed. ``` 在 VncSharp.RemoteDesktop.UpdateRemotePointer() 在 VncSharp.RemoteDesktop.OnMouseUp(MouseEventArgs mea) ``` source code: https://github.com/humphd/VncSharp/blob/30b833f917704b8b8daea5b0d14bd11fd8770c52/VncSharp/RemoteDesktop.cs#L806-L821 Here is the same bug from Terminals. https://github.com/Terminals-Origin/Terminals/issues/169 **Since the repository of VncSharp was archived for 4 years**, I don't intend to make a PR to fix this. It's time to retire the old VncSharp and find an alternative. (Or maybe we can leave a blank default runner for vnc, and ask user select a runner then first time start the vnc session) some alternatives: https://github.com/quamotion/remoteviewing https://github.com/MarcusWichelmann/MarcusW.VncClient @xksu I recommend that you can create a VNC runner with tightVNC before I update a new vnc version. ![image](https://user-images.githubusercontent.com/10143738/150927760-11368ac9-a282-42ca-8f20-4dc50478bdcc.png)
Author
Owner

@xksu commented on GitHub (Jan 25, 2022):

Thanks for you reply

<!-- gh-comment-id:1020906177 --> @xksu commented on GitHub (Jan 25, 2022): Thanks for you reply
Author
Owner

@VShawn commented on GitHub (Jan 25, 2022):

Close for I created a new ticket for this.

<!-- gh-comment-id:1020914090 --> @VShawn commented on GitHub (Jan 25, 2022): Close for I created a new ticket for this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#2084
No description provided.