[GH-ISSUE #194] App crashes with "The specified key was not in the dictionary" error #1127

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

Originally created by @chrisonline on GitHub (Jan 26, 2022).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/194

Originally assigned to: @VShawn on GitHub.

Got his window with the error report on Windows 11 (the crash report says Windows 10):

Environment

Component Version
PRemoteM 0.6.1.1(Microsoft store)
.NET Framework .NET Framework 4.8
CLR 4.0.30319.42000
OS Windows 10 Enterprise 64-bits 10.0.22000.0 (2009)

Error Info

Der angegebene Schlüssel war nicht im Wörterbuch angegeben.

Stack Trace

   bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   bei PRM.Model.RemoteWindowPool.DelProtocolHost(String connectionId)
   bei PRM.Model.RemoteWindowPool.<>c__DisplayClass37_0.<DelProtocolHostInSyncContext>b__0(Object pl)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Recent Log

2022-01-26T08:53:29.9328440+01:00[ThreadId:0000000004]		Debug		Check update.
2022-01-26T09:24:24.7159842+01:00[ThreadId:0000000001]		Debug		SetSelfStartingHelper.SetSelfStartByStartupTask(True, "PRemoteM")
2022-01-26T09:24:27.6600708+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:24:28.1751713+01:00[ThreadId:0000000001]		Debug		OrderServerList: IdAsc
2022-01-26T09:24:28.2411712+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:24:36.5586341+01:00[ThreadId:0000000004]		Debug		Check update.
2022-01-26T09:43:41.1040973+01:00[ThreadId:0000000001]		Debug		SetSelfStartingHelper.SetSelfStartByStartupTask(True, "PRemoteM")
2022-01-26T09:43:43.0476117+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:43:43.7257872+01:00[ThreadId:0000000001]		Debug		OrderServerList: IdAsc
2022-01-26T09:43:43.7989129+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:43:52.5030043+01:00[ThreadId:0000000004]		Debug		Check update.
2022-01-26T09:53:49.3388841+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-01-26T09:53:50.2113174+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:53:50.2496794+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:53:57.4251142+01:00[ThreadId:0000000001]		Debug		Call shortcut to invoke launcher _isHidden = True
2022-01-26T09:53:59.1942973+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:53:59.2090785+01:00[ThreadId:0000000001]		Debug		Call HideMe()
2022-01-26T09:53:59.3997081+01:00[ThreadId:0000000001]		Error		we don't have a protocol named: RDP!
2022-01-26T09:53:59.5710315+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Initializing
2022-01-26T09:53:59.5756385+01:00[ThreadId:0000000001]		Debug		RDP Host: _rdp.Dispose()
2022-01-26T09:53:59.6532680+01:00[ThreadId:0000000001]		Debug		RDP Host: init new AxMsRdpClient9NotSafeForScriptingEx()
2022-01-26T09:53:59.6633695+01:00[ThreadId:0000000001]		Debug		RDP Host: init CreateControl();
2022-01-26T09:54:00.2838449+01:00[ThreadId:0000000001]		Debug		RDP Host: init Static
2022-01-26T09:54:00.2988711+01:00[ThreadId:0000000001]		Debug		RDP Host: init conn bar
2022-01-26T09:54:00.3062141+01:00[ThreadId:0000000001]		Debug		RDP Host: init Redirect
2022-01-26T09:54:00.3199284+01:00[ThreadId:0000000001]		Debug		RDP Host: init Display with ScaleFactor = 200, W = 0, H = 0
2022-01-26T09:54:00.3250806+01:00[ThreadId:0000000001]		Debug		RDP Host: Display init as RDP.DesktopWidth = 1600, RDP.DesktopWidth = 1600,
2022-01-26T09:54:00.3290765+01:00[ThreadId:0000000001]		Debug		RDP Host: init Performance
2022-01-26T09:54:00.3310670+01:00[ThreadId:0000000001]		Debug		RdpInit: DisplayPerformance = Auto, flag = 0
2022-01-26T09:54:00.3340420+01:00[ThreadId:0000000001]		Debug		RDP Host: init Gateway
2022-01-26T09:54:00.3395117+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Initialized
2022-01-26T09:54:00.5157421+01:00[ThreadId:0000000001]		Debug		Move host(7641038) to full(1660480)
2022-01-26T09:54:00.5182256+01:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 1, FullWin.Count = 1, _tabWindows.Count = 0
2022-01-26T09:54:00.5217746+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Connecting
2022-01-26T09:54:01.9423745+01:00[ThreadId:0000000001]		Debug		Start Conn: Interalp 2 (SalesBox + WebBox)(63704574) by host(7641038) with full
2022-01-26T09:54:09.5309610+01:00[ThreadId:0000000001]		Debug		RDP to FullScreen resize ParentWindow to : W = 1920, H = 1200, while screen size is 3840 × 2400, ScaleFactor = 200
2022-01-26T09:54:09.5349568+01:00[ThreadId:0000000001]		Debug		RDP resize to: W = 3840, H = 2400, ScaleFactor = 200
2022-01-26T09:54:09.7985652+01:00[ThreadId:0000000001]		Debug		RDP Host:  RdpOnOnConnected
2022-01-26T09:54:09.8008755+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Connected
2022-01-26T09:54:10.3861446+01:00[ThreadId:0000000001]		Debug		RDP Host:  RdpOnOnLoginComplete
2022-01-26T09:55:26.6763368+01:00[ThreadId:0000000001]		Debug		RDP Host: RdpOnDisconnected
2022-01-26T09:55:26.6773331+01:00[ThreadId:0000000001]		Debug		AxMsRdpClient09Host: Status => Disconnected
2022-01-26T09:55:26.7655461+01:00[ThreadId:0000000001]		Warning		RDP(Interalp 2 (SalesBox + WebBox)) exit with error code 2(Ein interner Fehler ist aufgetreten.)
2022-01-26T09:55:26.7669798+01:00[ThreadId:0000000001]		Debug		RDP Host: _rdp.Dispose()
2022-01-26T09:55:26.7810340+01:00[ThreadId:0000000001]		Debug		Close full(1660480)
2022-01-26T09:55:26.9264872+01:00[ThreadId:0000000001]		Debug		Close full(1660480)
2022-01-26T09:55:26.9329808+01:00[ThreadId:0000000001]		Debug		DelProtocolHost host(7641038)
2022-01-26T09:55:26.9352090+01:00[ThreadId:0000000001]		Debug		ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 0
2022-01-26T09:55:26.9379674+01:00[ThreadId:0000000001]		Debug		RDP Host: _rdp.Dispose()
2022-01-26T09:55:27.7458822+01:00[ThreadId:0000000001]		Fatal		System.Collections.Generic.KeyNotFoundException: Der angegebene Schlüssel war nicht im Wörterbuch angegeben.
   bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   bei PRM.Model.RemoteWindowPool.DelProtocolHost(String connectionId)
   bei PRM.Model.RemoteWindowPool.<>c__DisplayClass37_0.<DelProtocolHostInSyncContext>b__0(Object pl)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   bei PRM.Model.RemoteWindowPool.DelProtocolHost(String connectionId)
   bei PRM.Model.RemoteWindowPool.<>c__DisplayClass37_0.<DelProtocolHostInSyncContext>b__0(Object pl)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Originally created by @chrisonline on GitHub (Jan 26, 2022). Original GitHub issue: https://github.com/1Remote/1Remote/issues/194 Originally assigned to: @VShawn on GitHub. Got his window with the error report on **Windows 11** (the crash report says Windows 10): <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |PRemoteM | `0.6.1.1`(Microsoft store)| |.NET Framework | `.NET Framework 4.8` | |CLR | `4.0.30319.42000` | |OS | `Windows 10 Enterprise 64-bits 10.0.22000.0 (2009)` | ## Error Info Der angegebene Schlüssel war nicht im Wörterbuch angegeben. ## Stack Trace ``` bei System.Collections.Generic.Dictionary`2.get_Item(TKey key) bei PRM.Model.RemoteWindowPool.DelProtocolHost(String connectionId) bei PRM.Model.RemoteWindowPool.<>c__DisplayClass37_0.<DelProtocolHostInSyncContext>b__0(Object pl) bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` ## Recent Log ``` 2022-01-26T08:53:29.9328440+01:00[ThreadId:0000000004] Debug Check update. 2022-01-26T09:24:24.7159842+01:00[ThreadId:0000000001] Debug SetSelfStartingHelper.SetSelfStartByStartupTask(True, "PRemoteM") 2022-01-26T09:24:27.6600708+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:24:28.1751713+01:00[ThreadId:0000000001] Debug OrderServerList: IdAsc 2022-01-26T09:24:28.2411712+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:24:36.5586341+01:00[ThreadId:0000000004] Debug Check update. 2022-01-26T09:43:41.1040973+01:00[ThreadId:0000000001] Debug SetSelfStartingHelper.SetSelfStartByStartupTask(True, "PRemoteM") 2022-01-26T09:43:43.0476117+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:43:43.7257872+01:00[ThreadId:0000000001] Debug OrderServerList: IdAsc 2022-01-26T09:43:43.7989129+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:43:52.5030043+01:00[ThreadId:0000000004] Debug Check update. 2022-01-26T09:53:49.3388841+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-01-26T09:53:50.2113174+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:53:50.2496794+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:53:57.4251142+01:00[ThreadId:0000000001] Debug Call shortcut to invoke launcher _isHidden = True 2022-01-26T09:53:59.1942973+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:53:59.2090785+01:00[ThreadId:0000000001] Debug Call HideMe() 2022-01-26T09:53:59.3997081+01:00[ThreadId:0000000001] Error we don't have a protocol named: RDP! 2022-01-26T09:53:59.5710315+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Initializing 2022-01-26T09:53:59.5756385+01:00[ThreadId:0000000001] Debug RDP Host: _rdp.Dispose() 2022-01-26T09:53:59.6532680+01:00[ThreadId:0000000001] Debug RDP Host: init new AxMsRdpClient9NotSafeForScriptingEx() 2022-01-26T09:53:59.6633695+01:00[ThreadId:0000000001] Debug RDP Host: init CreateControl(); 2022-01-26T09:54:00.2838449+01:00[ThreadId:0000000001] Debug RDP Host: init Static 2022-01-26T09:54:00.2988711+01:00[ThreadId:0000000001] Debug RDP Host: init conn bar 2022-01-26T09:54:00.3062141+01:00[ThreadId:0000000001] Debug RDP Host: init Redirect 2022-01-26T09:54:00.3199284+01:00[ThreadId:0000000001] Debug RDP Host: init Display with ScaleFactor = 200, W = 0, H = 0 2022-01-26T09:54:00.3250806+01:00[ThreadId:0000000001] Debug RDP Host: Display init as RDP.DesktopWidth = 1600, RDP.DesktopWidth = 1600, 2022-01-26T09:54:00.3290765+01:00[ThreadId:0000000001] Debug RDP Host: init Performance 2022-01-26T09:54:00.3310670+01:00[ThreadId:0000000001] Debug RdpInit: DisplayPerformance = Auto, flag = 0 2022-01-26T09:54:00.3340420+01:00[ThreadId:0000000001] Debug RDP Host: init Gateway 2022-01-26T09:54:00.3395117+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Initialized 2022-01-26T09:54:00.5157421+01:00[ThreadId:0000000001] Debug Move host(7641038) to full(1660480) 2022-01-26T09:54:00.5182256+01:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 1, FullWin.Count = 1, _tabWindows.Count = 0 2022-01-26T09:54:00.5217746+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Connecting 2022-01-26T09:54:01.9423745+01:00[ThreadId:0000000001] Debug Start Conn: Interalp 2 (SalesBox + WebBox)(63704574) by host(7641038) with full 2022-01-26T09:54:09.5309610+01:00[ThreadId:0000000001] Debug RDP to FullScreen resize ParentWindow to : W = 1920, H = 1200, while screen size is 3840 × 2400, ScaleFactor = 200 2022-01-26T09:54:09.5349568+01:00[ThreadId:0000000001] Debug RDP resize to: W = 3840, H = 2400, ScaleFactor = 200 2022-01-26T09:54:09.7985652+01:00[ThreadId:0000000001] Debug RDP Host: RdpOnOnConnected 2022-01-26T09:54:09.8008755+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Connected 2022-01-26T09:54:10.3861446+01:00[ThreadId:0000000001] Debug RDP Host: RdpOnOnLoginComplete 2022-01-26T09:55:26.6763368+01:00[ThreadId:0000000001] Debug RDP Host: RdpOnDisconnected 2022-01-26T09:55:26.6773331+01:00[ThreadId:0000000001] Debug AxMsRdpClient09Host: Status => Disconnected 2022-01-26T09:55:26.7655461+01:00[ThreadId:0000000001] Warning RDP(Interalp 2 (SalesBox + WebBox)) exit with error code 2(Ein interner Fehler ist aufgetreten.) 2022-01-26T09:55:26.7669798+01:00[ThreadId:0000000001] Debug RDP Host: _rdp.Dispose() 2022-01-26T09:55:26.7810340+01:00[ThreadId:0000000001] Debug Close full(1660480) 2022-01-26T09:55:26.9264872+01:00[ThreadId:0000000001] Debug Close full(1660480) 2022-01-26T09:55:26.9329808+01:00[ThreadId:0000000001] Debug DelProtocolHost host(7641038) 2022-01-26T09:55:26.9352090+01:00[ThreadId:0000000001] Debug ProtocolHosts.Count = 0, FullWin.Count = 0, _tabWindows.Count = 0 2022-01-26T09:55:26.9379674+01:00[ThreadId:0000000001] Debug RDP Host: _rdp.Dispose() 2022-01-26T09:55:27.7458822+01:00[ThreadId:0000000001] Fatal System.Collections.Generic.KeyNotFoundException: Der angegebene Schlüssel war nicht im Wörterbuch angegeben. bei System.Collections.Generic.Dictionary`2.get_Item(TKey key) bei PRM.Model.RemoteWindowPool.DelProtocolHost(String connectionId) bei PRM.Model.RemoteWindowPool.<>c__DisplayClass37_0.<DelProtocolHostInSyncContext>b__0(Object pl) bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) bei System.Collections.Generic.Dictionary`2.get_Item(TKey key) bei PRM.Model.RemoteWindowPool.DelProtocolHost(String connectionId) bei PRM.Model.RemoteWindowPool.<>c__DisplayClass37_0.<DelProtocolHostInSyncContext>b__0(Object pl) bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` </details>
kerem 2026-02-28 12:02:14 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Thanks reporting, delete function entering twice somehow, I try to make it secret here

<!-- gh-comment-id:1022012530 --> @VShawn commented on GitHub (Jan 26, 2022): Thanks reporting, delete function entering twice somehow, I try to make it secret here
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#1127
No description provided.