This is a migrated thread and some comments may be shown as answers.

Telerik framework Issues on Manager.Dispose()

6 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 26 Feb 2014, 11:29 AM
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).

6 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 03 Mar 2014, 09:33 AM
Hello,

Unfortunately we are not able to reproduce your issue. Could you provide us a sample test project that replicate the issue. This will help us to give you appropriate help or to solve the issue.

I will waiting for your response.

Regards,
Dobry Zranchev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Max
Top achievements
Rank 1
answered on 03 Mar 2014, 12:19 PM
I think it happens 3 times in the above log because we have 3 windows that have been opened where 1 is the main window and the other 2 are tool windows we open in our application.

We have created an application and Console app using the telerik framework version 2013.2.1327 which will reproduce the error but it appears its bigger than your 2MB attachment limit.
0
Dobry Zranchev
Telerik team
answered on 03 Mar 2014, 01:25 PM
Hi,

The issue is not related to that you have more then one window. Probably you are run more than one test at once using MSVS. After the test is finished you the method Manager.Dispose is close in order to detach all windows and to close to application.  This exception can be thrown only if the app is already closed and you try to call method Manager.Dispose. 

We will send you a DropBox invitation to upload you project there.

Regards,
Dobry Zranchev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Max
Top achievements
Rank 1
answered on 04 Mar 2014, 07:44 AM
Projects added to drop box
0
Max
Top achievements
Rank 1
answered on 07 Mar 2014, 07:36 AM
Did you manage to reproduce it?
0
Ivaylo
Telerik team
answered on 07 Mar 2014, 02:50 PM
Hello Max,

We were able to reproduce this behavior with the latest version. Before I submit the bug I need to do some more testing.

Thank you for your assistance.

Regards,
Ivaylo
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Max
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Max
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or