[GH-ISSUE #521] 外网vnc内网mac机器卡住不动,其他vnc同环境没问题 #1385

Closed
opened 2026-02-28 12:04:07 +03:00 by kerem · 3 comments
Owner

Originally created by @noidnoid on GitHub (Oct 7, 2023).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/521

Originally assigned to: @VShawn on GitHub.

log文件
[T:056][17:34:06.396] Warning [SessionControlService.cs(b__0:698)] CloseEmptyWindows: 1 Empty Host closed

[T:056][17:34:09.413] Error [SessionControlService.cs(CloseMarkedProtocolHost:828)]

System.InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。
at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at PRM.View.Host.ProtocolHosts.VncHost.OnConnectionLost(Object sender, EventArgs e) in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 158
at VncSharpCore.RemoteDesktop.OnConnectionLost() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 742
at VncSharpCore.RemoteDesktop.Disconnect() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 593
at PRM.View.Host.ProtocolHosts.VncHost.Close() in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 124
at PRM.Service.SessionControlService.CloseMarkedProtocolHost() in D:\a\1Remote\1Remote\Ui\Service\SessionControlService.cs:line 828

StackTrace: at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at PRM.View.Host.ProtocolHosts.VncHost.OnConnectionLost(Object sender, EventArgs e) in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 158
at VncSharpCore.RemoteDesktop.OnConnectionLost() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 742
at VncSharpCore.RemoteDesktop.Disconnect() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 593
at PRM.View.Host.ProtocolHosts.VncHost.Close() in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 124
at PRM.Service.SessionControlService.CloseMarkedProtocolHost() in D:\a\1Remote\1Remote\Ui\Service\SessionControlService.cs:line 828

Originally created by @noidnoid on GitHub (Oct 7, 2023). Original GitHub issue: https://github.com/1Remote/1Remote/issues/521 Originally assigned to: @VShawn on GitHub. log文件 [T:056][17:34:06.396] `Warning` [SessionControlService.cs(<CloseProtocolHostAsync>b__0:698)] CloseEmptyWindows: 1 Empty Host closed [T:056][17:34:09.413] `Error` [SessionControlService.cs(CloseMarkedProtocolHost:828)] > System.InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。 at System.Windows.Threading.Dispatcher.VerifyAccess() at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at PRM.View.Host.ProtocolHosts.VncHost.OnConnectionLost(Object sender, EventArgs e) in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 158 at VncSharpCore.RemoteDesktop.OnConnectionLost() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 742 at VncSharpCore.RemoteDesktop.Disconnect() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 593 at PRM.View.Host.ProtocolHosts.VncHost.Close() in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 124 at PRM.Service.SessionControlService.CloseMarkedProtocolHost() in D:\a\1Remote\1Remote\Ui\Service\SessionControlService.cs:line 828 > StackTrace: at System.Windows.Threading.Dispatcher.VerifyAccess() at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at PRM.View.Host.ProtocolHosts.VncHost.OnConnectionLost(Object sender, EventArgs e) in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 158 at VncSharpCore.RemoteDesktop.OnConnectionLost() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 742 at VncSharpCore.RemoteDesktop.Disconnect() in D:\a\1Remote\1Remote\VncSharpCore\VncSharpCore\RemoteDesktop.cs:line 593 at PRM.View.Host.ProtocolHosts.VncHost.Close() in D:\a\1Remote\1Remote\Ui\View\Host\ProtocolHosts\VncHost.xaml.cs:line 124 at PRM.Service.SessionControlService.CloseMarkedProtocolHost() in D:\a\1Remote\1Remote\Ui\Service\SessionControlService.cs:line 828
kerem 2026-02-28 12:04:07 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (Oct 7, 2023):

看日志信息应该是发生了bug。能顺带告知一下版本号么?

<!-- gh-comment-id:1751694940 --> @VShawn commented on GitHub (Oct 7, 2023): 看日志信息应该是发生了bug。能顺带告知一下版本号么?
Author
Owner

@noidnoid commented on GitHub (Oct 7, 2023):

0.7.2.8

<!-- gh-comment-id:1751698741 --> @noidnoid commented on GitHub (Oct 7, 2023): 0.7.2.8
Author
Owner

@VShawn commented on GitHub (Oct 30, 2023):

貌似需要修改 VncSharp 项目,但这个项目从2019年起就已经没人维护了,所以还是不改了。

后续会考虑过集成 TightVNC 替换掉现在的 VncSharp.

作为临时解决方案,建议你把 VNC 的runner 配置为 TightVNC

image

<!-- gh-comment-id:1784808095 --> @VShawn commented on GitHub (Oct 30, 2023): 貌似需要修改 VncSharp 项目,但这个项目从2019年起就已经没人维护了,所以还是不改了。 后续会考虑过集成 TightVNC 替换掉现在的 VncSharp. 作为临时解决方案,建议你把 VNC 的runner 配置为 TightVNC ![image](https://github.com/1Remote/1Remote/assets/10143738/f188a92a-83de-45be-9e59-7a97ff2e219e)
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#1385
No description provided.