[GH-ISSUE #211] Crash when closing tab #2103

Closed
opened 2026-03-01 17:17:41 +03:00 by kerem · 0 comments
Owner

Originally created by @majkinetor on GitHub (Feb 28, 2022).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/211

Originally assigned to: @VShawn on GitHub.

Environment

Component Version
PRemoteM 0.6.2-beta.2(EXE Release)
.NET Framework .NET Framework 4.8
CLR 4.0.30319.42000
OS Windows 10 Enterprise 64-bits 6.2.9200.0 (2009)

InnerException Info

Object reference not set to an instance of an object.

InnerException Stack Trace

   at PRM.View.ProtocolHosts.AxMsRdpClient09Host.ReSizeRdpOnResizeEnd() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 764
   at PRM.View.ProtocolHosts.AxMsRdpClient09Host.<RdpOnOnLoginComplete>b__32_0() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 743
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Error Info

A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

Stack Trace


Recent Log

2022-02-28T21:43:10.8251392+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:43:30.5413060+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:43:32.8108469+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:43:50.1581745+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:43:51.4877324+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:43:51.4937317+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:43:53.7662341+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:43:59.1884730+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:43:59.1944640+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:43:59.7090935+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:44:01.8364373+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:44:01.8404412+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:44:02.3650642+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:44:07.6268681+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:44:07.7531301+01:00[ThreadId:0000000001]		Debug		Tab size change to:W = 1486, H = 864, Child NaN, NaN
2022-02-28T21:44:08.7094500+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:44:12.6961893+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:44:12.7041911+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:44:13.0849119+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:44:15.7742332+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:45:02.9939149+01:00[ThreadId:0000000001]		Debug		Tab size change to:W = 1486, H = 864, Child NaN, NaN
2022-02-28T21:45:04.0745735+01:00[ThreadId:0000000001]		Debug		Tab size change to:W = 1486, H = 864, Child NaN, NaN
2022-02-28T21:45:13.9162152+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-02-28T21:45:16.1992012+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:45:16.2041991+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-02-28T21:45:16.2151983+01:00[ThreadId:0000000001]		Info		we don't have a custom protocol named: RDP!
2022-02-28T21:45:16.2191981+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Initializing
2022-02-28T21:45:16.2221981+01:00[ThreadId:0000000001]		Debug		RDP Host: _rdp.Dispose()
2022-02-28T21:45:16.2251980+01:00[ThreadId:0000000001]		Debug		RDP Host: init new AxMsRdpClient9NotSafeForScriptingEx()
2022-02-28T21:45:16.2282015+01:00[ThreadId:0000000001]		Debug		RDP Host: init CreateControl();
2022-02-28T21:45:16.2351978+01:00[ThreadId:0000000001]		Debug		RDP Host: init Static
2022-02-28T21:45:16.2381978+01:00[ThreadId:0000000001]		Debug		RDP Host: init conn bar
2022-02-28T21:45:16.2411977+01:00[ThreadId:0000000001]		Debug		RDP Host: init Redirect
2022-02-28T21:45:16.2441977+01:00[ThreadId:0000000001]		Debug		RDP Host: init Display with ScaleFactor = 100, W = 1858, H = 1050
2022-02-28T21:45:16.2471977+01:00[ThreadId:0000000001]		Debug		RDP Host: Display init end: RDP.DesktopWidth = 1858, RDP.DesktopWidth = 1858,
2022-02-28T21:45:16.2501981+01:00[ThreadId:0000000001]		Debug		RDP Host: init Performance
2022-02-28T21:45:16.2521984+01:00[ThreadId:0000000001]		Debug		RdpInit: DisplayPerformance = Auto, flag = 0
2022-02-28T21:45:16.2551975+01:00[ThreadId:0000000001]		Debug		RDP Host: init Gateway
2022-02-28T21:45:16.2581976+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Initialized
2022-02-28T21:45:16.2698328+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Connecting
2022-02-28T21:45:16.3789045+01:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 2, FullWin.Count = 0, _tabWindows.Count = 1
2022-02-28T21:45:16.9731434+01:00[ThreadId:0000000001]		Debug		RDP Host:  RdpOnOnConnected
2022-02-28T21:45:16.9771435+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Connected
2022-02-28T21:45:17.2794665+01:00[ThreadId:0000000001]		Debug		RDP Host:  RdpOnOnLoginComplete
2022-02-28T21:45:18.2757813+01:00[ThreadId:0000000001]		Debug		DelProtocolHost: enter to delete host(id = 5)
2022-02-28T21:45:18.2867690+01:00[ThreadId:0000000001]		Debug		Remove connectionId = 5 from tab(54986833)
2022-02-28T21:45:18.2897692+01:00[ThreadId:0000000001]		Debug		DelProtocolHost: get host(37652614)
2022-02-28T21:45:18.2927683+01:00[ThreadId:0000000001]		Debug		DelProtocolHost: removed and now, ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1
2022-02-28T21:45:18.2957682+01:00[ThreadId:0000000001]		Debug		RDP Host: _rdp.Dispose()
2022-02-28T21:45:18.3759320+01:00[ThreadId:0000000001]		Fatal		System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at PRM.View.ProtocolHosts.AxMsRdpClient09Host.ReSizeRdpOnResizeEnd() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 764
   at PRM.View.ProtocolHosts.AxMsRdpClient09Host.<RdpOnOnLoginComplete>b__32_0() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 743
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at PRM.View.ProtocolHosts.AxMsRdpClient09Host.ReSizeRdpOnResizeEnd() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 764
   at PRM.View.ProtocolHosts.AxMsRdpClient09Host.<RdpOnOnLoginComplete>b__32_0() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 743
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---

Originally created by @majkinetor on GitHub (Feb 28, 2022). Original GitHub issue: https://github.com/1Remote/1Remote/issues/211 Originally assigned to: @VShawn on GitHub. <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |PRemoteM | `0.6.2-beta.2`(EXE Release)| |.NET Framework | `.NET Framework 4.8` | |CLR | `4.0.30319.42000` | |OS | `Windows 10 Enterprise 64-bits 6.2.9200.0 (2009)` | ## InnerException Info Object reference not set to an instance of an object. ## InnerException Stack Trace ``` at PRM.View.ProtocolHosts.AxMsRdpClient09Host.ReSizeRdpOnResizeEnd() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 764 at PRM.View.ProtocolHosts.AxMsRdpClient09Host.<RdpOnOnLoginComplete>b__32_0() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 743 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() ``` ## Error Info A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ## Stack Trace ``` ``` ## Recent Log ``` 2022-02-28T21:43:10.8251392+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:43:30.5413060+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:43:32.8108469+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:43:50.1581745+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:43:51.4877324+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:43:51.4937317+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:43:53.7662341+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:43:59.1884730+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:43:59.1944640+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:43:59.7090935+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:44:01.8364373+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:44:01.8404412+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:44:02.3650642+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:44:07.6268681+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:44:07.7531301+01:00[ThreadId:0000000001] Debug Tab size change to:W = 1486, H = 864, Child NaN, NaN 2022-02-28T21:44:08.7094500+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:44:12.6961893+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:44:12.7041911+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:44:13.0849119+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:44:15.7742332+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:45:02.9939149+01:00[ThreadId:0000000001] Debug Tab size change to:W = 1486, H = 864, Child NaN, NaN 2022-02-28T21:45:04.0745735+01:00[ThreadId:0000000001] Debug Tab size change to:W = 1486, H = 864, Child NaN, NaN 2022-02-28T21:45:13.9162152+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-02-28T21:45:16.1992012+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:45:16.2041991+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-02-28T21:45:16.2151983+01:00[ThreadId:0000000001] Info we don't have a custom protocol named: RDP! 2022-02-28T21:45:16.2191981+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Initializing 2022-02-28T21:45:16.2221981+01:00[ThreadId:0000000001] Debug RDP Host: _rdp.Dispose() 2022-02-28T21:45:16.2251980+01:00[ThreadId:0000000001] Debug RDP Host: init new AxMsRdpClient9NotSafeForScriptingEx() 2022-02-28T21:45:16.2282015+01:00[ThreadId:0000000001] Debug RDP Host: init CreateControl(); 2022-02-28T21:45:16.2351978+01:00[ThreadId:0000000001] Debug RDP Host: init Static 2022-02-28T21:45:16.2381978+01:00[ThreadId:0000000001] Debug RDP Host: init conn bar 2022-02-28T21:45:16.2411977+01:00[ThreadId:0000000001] Debug RDP Host: init Redirect 2022-02-28T21:45:16.2441977+01:00[ThreadId:0000000001] Debug RDP Host: init Display with ScaleFactor = 100, W = 1858, H = 1050 2022-02-28T21:45:16.2471977+01:00[ThreadId:0000000001] Debug RDP Host: Display init end: RDP.DesktopWidth = 1858, RDP.DesktopWidth = 1858, 2022-02-28T21:45:16.2501981+01:00[ThreadId:0000000001] Debug RDP Host: init Performance 2022-02-28T21:45:16.2521984+01:00[ThreadId:0000000001] Debug RdpInit: DisplayPerformance = Auto, flag = 0 2022-02-28T21:45:16.2551975+01:00[ThreadId:0000000001] Debug RDP Host: init Gateway 2022-02-28T21:45:16.2581976+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Initialized 2022-02-28T21:45:16.2698328+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Connecting 2022-02-28T21:45:16.3789045+01:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 2, FullWin.Count = 0, _tabWindows.Count = 1 2022-02-28T21:45:16.9731434+01:00[ThreadId:0000000001] Debug RDP Host: RdpOnOnConnected 2022-02-28T21:45:16.9771435+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Connected 2022-02-28T21:45:17.2794665+01:00[ThreadId:0000000001] Debug RDP Host: RdpOnOnLoginComplete 2022-02-28T21:45:18.2757813+01:00[ThreadId:0000000001] Debug DelProtocolHost: enter to delete host(id = 5) 2022-02-28T21:45:18.2867690+01:00[ThreadId:0000000001] Debug Remove connectionId = 5 from tab(54986833) 2022-02-28T21:45:18.2897692+01:00[ThreadId:0000000001] Debug DelProtocolHost: get host(37652614) 2022-02-28T21:45:18.2927683+01:00[ThreadId:0000000001] Debug DelProtocolHost: removed and now, ProtocolHosts.Count = 1, FullWin.Count = 0, _tabWindows.Count = 1 2022-02-28T21:45:18.2957682+01:00[ThreadId:0000000001] Debug RDP Host: _rdp.Dispose() 2022-02-28T21:45:18.3759320+01:00[ThreadId:0000000001] Fatal System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NullReferenceException: Object reference not set to an instance of an object. at PRM.View.ProtocolHosts.AxMsRdpClient09Host.ReSizeRdpOnResizeEnd() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 764 at PRM.View.ProtocolHosts.AxMsRdpClient09Host.<RdpOnOnLoginComplete>b__32_0() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 743 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at PRM.View.ProtocolHosts.AxMsRdpClient09Host.ReSizeRdpOnResizeEnd() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 764 at PRM.View.ProtocolHosts.AxMsRdpClient09Host.<RdpOnOnLoginComplete>b__32_0() in D:\DemoProject\PRemoteM\PRemoteM\View\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:line 743 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<--- ``` </details>
kerem 2026-03-01 17:17:41 +03:00
  • closed this issue
  • added the
    bug
    label
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#2103
No description provided.