[GH-ISSUE #1024] 未知错误 #1773

Closed
opened 2026-02-28 12:06:33 +03:00 by kerem · 1 comment
Owner

Originally created by @pennyzju on GitHub (Nov 14, 2025).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/1024

Originally assigned to: @VShawn on GitHub.

Environment

Component Version
1Remote(Store) 1.1.2(Built at: 2025-03-22T09:09:47.586+08:00)(Microsoft store)
.NET Framework .NET Framework 4.8
CLR 4.0.30319.42000
OS Windows 10 Pro 64-bits 10.0.26100.0 (2009) build 26100

Error Info

无法访问已释放的对象。
对象名:“Timer”。

Stack Trace

   在 System.Timers.Timer.set_Enabled(Boolean value)
   在 _1RM.View.Host.ProtocolHosts.AxMsRdpClient09Host.WindowSizeChanged(Object sender, SizeChangedEventArgs e) 位置 D:\DemoProject\1Remote\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:行号 857
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
   在 System.Windows.ContextLayoutManager.fireSizeChangedEvents()
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   在 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Recent Log

[T:005][11:43:59.210]	`Warning`		[(CheckUpdate:0)]	
> System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890
   在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding)
   在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl)
> StackTrace:    在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding)
   在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl)
> InnerException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890
> Inner StackTrace:    在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
[T:005][11:44:01.255]	`Warning`		[(CheckUpdate:0)]	
> System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890
   在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding)
   在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl)
> StackTrace:    在 System.Net.HttpWebRequest.GetResponse()
   在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding)
   在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl)
> InnerException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890
> Inner StackTrace:    在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
[T:001][11:45:11.995]	`Warning`		[(InvokeMethod:0)]	RDP(公司个人) exit with error code 3(你已断开连接,因为已与远程计算机建立了另一个连接。)
[T:001][11:46:53.193]	`Fatal`		[(TryCatchWhen:0)]	
> System.ObjectDisposedException: 无法访问已释放的对象。
对象名:“Timer”。
   在 System.Timers.Timer.set_Enabled(Boolean value)
   在 _1RM.View.Host.ProtocolHosts.AxMsRdpClient09Host.WindowSizeChanged(Object sender, SizeChangedEventArgs e) 位置 D:\DemoProject\1Remote\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:行号 857
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
   在 System.Windows.ContextLayoutManager.fireSizeChangedEvents()
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   在 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
> StackTrace:    在 System.Timers.Timer.set_Enabled(Boolean value)
   在 _1RM.View.Host.ProtocolHosts.AxMsRdpClient09Host.WindowSizeChanged(Object sender, SizeChangedEventArgs e) 位置 D:\DemoProject\1Remote\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:行号 857
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
   在 System.Windows.ContextLayoutManager.fireSizeChangedEvents()
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   在 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Originally created by @pennyzju on GitHub (Nov 14, 2025). Original GitHub issue: https://github.com/1Remote/1Remote/issues/1024 Originally assigned to: @VShawn on GitHub. <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |1Remote(Store) | `1.1.2(Built at: 2025-03-22T09:09:47.586+08:00)`(Microsoft store)| |.NET Framework | `.NET Framework 4.8` | |CLR | `4.0.30319.42000` | |OS | `Windows 10 Pro 64-bits 10.0.26100.0 (2009) build 26100` | ## Error Info 无法访问已释放的对象。 对象名:“Timer”。 ## Stack Trace ``` 在 System.Timers.Timer.set_Enabled(Boolean value) 在 _1RM.View.Host.ProtocolHosts.AxMsRdpClient09Host.WindowSizeChanged(Object sender, SizeChangedEventArgs e) 位置 D:\DemoProject\1Remote\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:行号 857 在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo) 在 System.Windows.ContextLayoutManager.fireSizeChangedEvents() 在 System.Windows.ContextLayoutManager.UpdateLayout() 在 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 在 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` ## Recent Log ``` [T:005][11:43:59.210] `Warning` [(CheckUpdate:0)] > System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- 内部异常堆栈跟踪的结尾 --- 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl) > StackTrace: 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl) > InnerException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890 > Inner StackTrace: 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) [T:005][11:44:01.255] `Warning` [(CheckUpdate:0)] > System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- 内部异常堆栈跟踪的结尾 --- 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl) > StackTrace: 在 System.Net.HttpWebRequest.GetResponse() 在 Shawn.Utils.HttpHelper.Get(String url, Encoding encoding) 在 Shawn.Utils.VersionHelper.CheckUpdateFromUrl(String checkUrl, String publishUrl) > InnerException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:7890 > Inner StackTrace: 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) [T:001][11:45:11.995] `Warning` [(InvokeMethod:0)] RDP(公司个人) exit with error code 3(你已断开连接,因为已与远程计算机建立了另一个连接。) [T:001][11:46:53.193] `Fatal` [(TryCatchWhen:0)] > System.ObjectDisposedException: 无法访问已释放的对象。 对象名:“Timer”。 在 System.Timers.Timer.set_Enabled(Boolean value) 在 _1RM.View.Host.ProtocolHosts.AxMsRdpClient09Host.WindowSizeChanged(Object sender, SizeChangedEventArgs e) 位置 D:\DemoProject\1Remote\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:行号 857 在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo) 在 System.Windows.ContextLayoutManager.fireSizeChangedEvents() 在 System.Windows.ContextLayoutManager.UpdateLayout() 在 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 在 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) > StackTrace: 在 System.Timers.Timer.set_Enabled(Boolean value) 在 _1RM.View.Host.ProtocolHosts.AxMsRdpClient09Host.WindowSizeChanged(Object sender, SizeChangedEventArgs e) 位置 D:\DemoProject\1Remote\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:行号 857 在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo) 在 System.Windows.ContextLayoutManager.fireSizeChangedEvents() 在 System.Windows.ContextLayoutManager.UpdateLayout() 在 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 在 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` </details>
kerem 2026-02-28 12:06:33 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (Nov 14, 2025):

这个问题在后续版本已经尝试过修复,请更新到nightly版本。(nightly比较稳妥,因为我不记得这个修复是在最新的1.2.1发布前还是之后了)

<!-- gh-comment-id:3531437760 --> @VShawn commented on GitHub (Nov 14, 2025): 这个问题在后续版本已经尝试过修复,请更新到nightly版本。(nightly比较稳妥,因为我不记得这个修复是在最新的1.2.1发布前还是之后了)
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#1773
No description provided.