Telerik framework Issues on Manager.Dispose()

7 posts, 0 answers
  1. Max
    Max avatar
    17 posts
    Member since:
    May 2012

    Posted 26 Feb 2014 Link to this post

    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).
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 03 Mar 2014 Link to this post

    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
  3. Max
    Max avatar
    17 posts
    Member since:
    May 2012

    Posted 03 Mar 2014 in reply to Dobry Zranchev Link to this post

    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.
  4. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 03 Mar 2014 Link to this post

    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
  5. Max
    Max avatar
    17 posts
    Member since:
    May 2012

    Posted 04 Mar 2014 in reply to Dobry Zranchev Link to this post

    Projects added to drop box
  6. Max
    Max avatar
    17 posts
    Member since:
    May 2012

    Posted 07 Mar 2014 Link to this post

    Did you manage to reproduce it?
  7. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 07 Mar 2014 Link to this post

    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
Back to Top