Telerik framework Issues on start and end of test on Connector.InjectCode() to WPF application
Since we upgraded to version 2013.2 1327 from 2013.2 1210, we have had an issue with the framework when we are disposing the Manager. See below for the Telerik log dump we get as soon as we call Manager.Dispose() with the exceptions in Bold. This is the same output even after updating to the latest dev release 2013.2 1417.
Telerik Log
Uncategorized: Log.WriteLineInternal() : Disposing Application Manager
Framework: BrowserProvisioner.EndService() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner_1973293258" in order to unblock and eventually terminate it...
Framework: BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.
Framework: BrowserProvisioner.EndService() : Provisioning pipe connected.
Framework: BrowserProvisioner.EndService() : Provisioning thread terminated.
DialogPlayback: DialogMonitor.Stop() : Dialog monitoring is being halted.
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_db492fb9-4704-4713-891e-3e1d3e877906" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 23).
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_ae726a31-5fb0-45c4-bc1e-18b5a40cc412" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 6).
Warning: PipeCommunication.SyncPipeRead() : Pipe read broken by thread-abort.
Warning: PipeCommunication.SyncPipeRead() : Pipe read broken by thread-abort.
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_22e94d19-5633-47cc-bfa4-a65a1c234435" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 21).
Framework: WpfApplication.Detach() : Process killed (ID=9356, ExitCode=259, Path="C:\Program Files (x86)\McLaren Applied Technologies\ATLAS 10\MAT.ATLAS.exe", Arguments="").
Framework: WpfWindow.Detach() : EXCEPTION! (see below)
Situation: Exception sending detach command to application window
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.GetPipeSync(PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Wpf.WpfProxy.DetachApp(Boolean closeWindow)
at ArtOfTest.WebAii.Wpf.WpfWindow.Detach(Boolean closeWindow)
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_22e94d19-5633-47cc-bfa4-a65a1c234435" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 21).
Framework: WpfWindow.Detach() : EXCEPTION! (see below)
Situation: Exception sending detach command to application window
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.GetPipeSync(PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Wpf.WpfProxy.DetachApp(Boolean closeWindow)
at ArtOfTest.WebAii.Wpf.WpfWindow.Detach(Boolean closeWindow)
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_ae726a31-5fb0-45c4-bc1e-18b5a40cc412" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 6).
Framework: WpfWindow.Detach() : EXCEPTION! (see below)
Situation: Exception sending detach command to application window
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.GetPipeSync(PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Wpf.WpfProxy.DetachApp(Boolean closeWindow)
at ArtOfTest.WebAii.Wpf.WpfWindow.Detach(Boolean closeWindow)
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_db492fb9-4704-4713-891e-3e1d3e877906" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 23).
Since we upgraded to version 2013.2 1327 from 2013.2 1210, we have had an issue with the framework when we are disposing the Manager. See below for the Telerik log dump we get as soon as we call Manager.Dispose() with the exceptions in Bold. This is the same output even after updating to the latest dev release 2013.2 1417.
Telerik Log
Uncategorized: Log.WriteLineInternal() : Disposing Application Manager
Framework: BrowserProvisioner.EndService() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner_1973293258" in order to unblock and eventually terminate it...
Framework: BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.
Framework: BrowserProvisioner.EndService() : Provisioning pipe connected.
Framework: BrowserProvisioner.EndService() : Provisioning thread terminated.
DialogPlayback: DialogMonitor.Stop() : Dialog monitoring is being halted.
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_db492fb9-4704-4713-891e-3e1d3e877906" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 23).
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_ae726a31-5fb0-45c4-bc1e-18b5a40cc412" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 6).
Warning: PipeCommunication.SyncPipeRead() : Pipe read broken by thread-abort.
Warning: PipeCommunication.SyncPipeRead() : Pipe read broken by thread-abort.
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_22e94d19-5633-47cc-bfa4-a65a1c234435" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 21).
Framework: WpfApplication.Detach() : Process killed (ID=9356, ExitCode=259, Path="C:\Program Files (x86)\McLaren Applied Technologies\ATLAS 10\MAT.ATLAS.exe", Arguments="").
Framework: WpfWindow.Detach() : EXCEPTION! (see below)
Situation: Exception sending detach command to application window
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.GetPipeSync(PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Wpf.WpfProxy.DetachApp(Boolean closeWindow)
at ArtOfTest.WebAii.Wpf.WpfWindow.Detach(Boolean closeWindow)
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_22e94d19-5633-47cc-bfa4-a65a1c234435" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 21).
Framework: WpfWindow.Detach() : EXCEPTION! (see below)
Situation: Exception sending detach command to application window
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.GetPipeSync(PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Wpf.WpfProxy.DetachApp(Boolean closeWindow)
at ArtOfTest.WebAii.Wpf.WpfWindow.Detach(Boolean closeWindow)
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_ae726a31-5fb0-45c4-bc1e-18b5a40cc412" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 6).
Framework: WpfWindow.Detach() : EXCEPTION! (see below)
Situation: Exception sending detach command to application window
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: key
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.GetPipeSync(PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Wpf.WpfProxy.DetachApp(Boolean closeWindow)
at ArtOfTest.WebAii.Wpf.WpfWindow.Detach(Boolean closeWindow)
Warning: Manager.RemoveBrowser() : Attempted to remove a client ID "Client_db492fb9-4704-4713-891e-3e1d3e877906" that was not in the list.
Framework: BrowserRemoted.End() : Now aborting the listener thread (TID = 23).