Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Exception: Object is currently in use elsewhere.

Exception: Object is currently in use elsewhere.

Home Forums Ask Expert Exception: Object is currently in use elsewhere.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #30987
    Arnab Mahapatra
    Participant

      Getting this error when running simple code in latest zaptest 16.2.9, and android GUI becomes white with red cross, any advice on how to fix this is appreciated

      Step 1:
      Run the below code a few times:

      If Application(“glooko_6”).View(“View_1”).Object(“Forgot Password?”).Exist then
      Application(“glooko_6”).View(“View_1”).Object(“Forgot Password?”).Object(“Email Field”).Type Datatable.Value(“username”)
      Application(“glooko_6”).View(“View_1”).Object(“Forgot Password?”).Object(“Password Field”).Type Datatable.Value(“password”)
      Application(“glooko_6”).View(“View_1”).Object(“Log In 1”).Click
      end if

      If not Datatable.Value(“real_user”) then
      Application(“glooko_6”).View(“View_2”).Object(“The email and passwo”).Exist
      end if

      Step 2:
      Getting this exception thrown:

      ************** Exception Text **************
      System.InvalidOperationException: Object is currently in use elsewhere.
      at System.Drawing.Image.get_RawFormat()
      at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
      at (Object , Image , Rectangle , Rectangle , GraphicsUnit )
      at A.c3a12b8effccf754a879505d26e507d82.c9d44ab54c482c5ea5889e146291d5492(Object c0980dea8f76494e3027c41c81edb549e, Image c0980dea8f76494e3027c41c81edb549e, Rectangle c0980dea8f76494e3027c41c81edb549e, Rectangle c0980dea8f76494e3027c41c81edb549e, GraphicsUnit c0980dea8f76494e3027c41c81edb549e)
      at A.c5d4dd74a09ca9972ab0ddb3320f46cac.OnPaint(PaintEventArgs e)
      at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
      at System.Windows.Forms.Control.WmPaint(Message& m)
      at System.Windows.Forms.Control.WndProc(Message& m)
      at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      at System.Windows.Forms.Form.WndProc(Message& m)
      at (Object , Message& )
      at A.ce0beadf6a430ed6053dbbbf8d1d144bc.cbb486694443e1afba102b1fcfdec5cb7(Object c0980dea8f76494e3027c41c81edb549e, Message& c0980dea8f76494e3027c41c81edb549e)
      at A.c5d4dd74a09ca9972ab0ddb3320f46cac.WndProc(Message& m)
      at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

      ************** Loaded Assemblies **************
      mscorlib
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
      —————————————-
      ZAP Viewer
      Assembly Version: 14.0.0.0
      Win32 Version: 14.0.0.0
      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/ZAP%20Viewer.exe
      —————————————-
      System
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
      —————————————-
      ZAP Viewer&
      Assembly Version: 1.0.0.0
      Win32 Version: 14.0.0.0
      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/ZAP%20Viewer.exe
      —————————————-
      System.Drawing
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
      —————————————-
      System.Windows.Forms
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
      —————————————-
      System.Deployment
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
      —————————————-
      System.Core
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
      —————————————-
      System.Xml
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
      —————————————-
      Ionic.Zip
      Assembly Version: 1.9.8.0
      Win32 Version: 1.9.8
      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/Ionic.Zip.DLL
      —————————————-
      Zap.Viewer.Service
      Assembly Version: 1.0.0.0
      Win32 Version: 1.0.0.0
      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/Zap.Viewer.Service.DLL
      —————————————-
      System.Configuration
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
      —————————————-
      Zap.Viewer.Service&
      Assembly Version: 1.0.0.0
      Win32 Version: 1.0.0.0
      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/Zap.Viewer.Service.dll
      —————————————-
      System.ServiceModel
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
      —————————————-
      SMDiagnostics
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
      —————————————-
      System.ServiceModel.Internals
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
      —————————————-
      System.Runtime.Serialization
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
      —————————————-
      System.IdentityModel
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
      —————————————-
      System.Transactions
      Assembly Version: 4.0.0.0
      Win32 Version: 4.6.1586.0 built by: NETFXREL2
      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
      —————————————-

      Attachments:
      #30988
      Sasha ZAP
      Moderator

        Hello amahapatra,

        We are looking into this issue, and will follow up shortly.

        Thanks,
        Sasha

        #30989
        Valentin ZAP
        Keymaster

          Hello Amahapatra!

          We fixed this issue (or similar) in version 16.2.10. Could you try it? You could download the latest version on our DOWNLOAD PAGE.

          Thank you,
          ZAPTEST Team

          #30990
          Arnab Mahapatra
          Participant

            still having same issue in 16.2.10

            #30991
            Arnab Mahapatra
            Participant

              issue seems to be resolved actually

              did the following:
              1. uninstalled zaptest and reinstalled 16.2.10 using offline installer
              2. created a new script using 16.2.10

              #30992
              Sasha ZAP
              Moderator

                Hello amahapatra,

                Basically I was just about to send you these steps:
                Yes, you are correct, the best way to install ZAPTEST is to uninstall first the previous installed version and only then to install the new version.
                Also after installing the new version it is best to restart the machine.

                I’m sorry for the late response.

                Thank you for choosing ZAP.

                Yours,
                Sasha

                #30995
                Arnab Mahapatra
                Participant

                  looks like I am running into this issue again, but less frequently, so its a slight improvement

                  perhaps its already known and I will wait for 16.2.11

                  thanks

                  #30996
                  Valentin ZAP
                  Keymaster

                    we have released the new version 16.2.11. Give it a try! If the problem repeats, could you please copy/paste the crash log here?

                    #30997
                    Arnab Mahapatra
                    Participant

                      1. uninstalled zaptest
                      2. installed 16.2.11
                      3. rebooted pc
                      4. ran script (javascript)

                      Untitled.png

                      See the end of this message for details on invoking
                      just-in-time (JIT) debugging instead of this dialog box.

                      ************** Exception Text **************
                      System.InvalidOperationException: Object is currently in use elsewhere.
                      at System.Drawing.Image.get_RawFormat()
                      at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
                      at (Object , Image , Rectangle , Rectangle , GraphicsUnit )
                      at A.c3a12b8effccf754a879505d26e507d82.c9d44ab54c482c5ea5889e146291d5492(Object c0980dea8f76494e3027c41c81edb549e, Image c0980dea8f76494e3027c41c81edb549e, Rectangle c0980dea8f76494e3027c41c81edb549e, Rectangle c0980dea8f76494e3027c41c81edb549e, GraphicsUnit c0980dea8f76494e3027c41c81edb549e)
                      at A.c5d4dd74a09ca9972ab0ddb3320f46cac.OnPaint(PaintEventArgs e)
                      at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
                      at System.Windows.Forms.Control.WmPaint(Message& m)
                      at System.Windows.Forms.Control.WndProc(Message& m)
                      at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
                      at System.Windows.Forms.Form.WndProc(Message& m)
                      at (Object , Message& )
                      at A.ce0beadf6a430ed6053dbbbf8d1d144bc.cbb486694443e1afba102b1fcfdec5cb7(Object c0980dea8f76494e3027c41c81edb549e, Message& c0980dea8f76494e3027c41c81edb549e)
                      at A.c5d4dd74a09ca9972ab0ddb3320f46cac.WndProc(Message& m)
                      at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
                      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
                      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

                      ************** Loaded Assemblies **************
                      mscorlib
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
                      —————————————-
                      ZAP Viewer
                      Assembly Version: 14.0.0.0
                      Win32 Version: 14.0.0.0
                      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/ZAP%20Viewer.exe
                      —————————————-
                      System
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
                      —————————————-
                      ZAP Viewer&
                      Assembly Version: 1.0.0.0
                      Win32 Version: 14.0.0.0
                      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/ZAP%20Viewer.exe
                      —————————————-
                      System.Drawing
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
                      —————————————-
                      System.Windows.Forms
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
                      —————————————-
                      System.Deployment
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
                      —————————————-
                      System.Core
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
                      —————————————-
                      System.Xml
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
                      —————————————-
                      Ionic.Zip
                      Assembly Version: 1.9.8.0
                      Win32 Version: 1.9.8
                      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/Ionic.Zip.DLL
                      —————————————-
                      Zap.Viewer.Service
                      Assembly Version: 1.0.0.0
                      Win32 Version: 1.0.0.0
                      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/Zap.Viewer.Service.DLL
                      —————————————-
                      System.Configuration
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
                      —————————————-
                      Zap.Viewer.Service&
                      Assembly Version: 1.0.0.0
                      Win32 Version: 1.0.0.0
                      CodeBase: file:///C:/Program%20Files%20(x86)/ZAP-fiX/ZAP%20Viewer/Zap.Viewer.Service.dll
                      —————————————-
                      System.ServiceModel
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
                      —————————————-
                      SMDiagnostics
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
                      —————————————-
                      System.ServiceModel.Internals
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
                      —————————————-
                      Microsoft.VisualStudio.Diagnostics.ServiceModelSink
                      Assembly Version: 4.0.0.0
                      Win32 Version: 12.0.30723.0
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Diagnostics.ServiceModelSink/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll
                      —————————————-
                      System.Runtime.Serialization
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
                      —————————————-
                      System.IdentityModel
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
                      —————————————-
                      System.Web
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
                      —————————————-
                      System.Transactions
                      Assembly Version: 4.0.0.0
                      Win32 Version: 4.6.1586.0 built by: NETFXREL2
                      CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
                      —————————————-

                      ************** JIT Debugging **************
                      To enable just-in-time (JIT) debugging, the .config file for this
                      application or computer (machine.config) must have the
                      jitDebugging value set in the system.windows.forms section.
                      The application must also be compiled with debugging
                      enabled.

                      For example:



                      When JIT debugging is enabled, any unhandled exception
                      will be sent to the JIT debugger registered on the computer
                      rather than be handled by this dialog box.

                      #30998
                      Valentin ZAP
                      Keymaster

                        Thanks!! I passed it along to the appropriate R&D team. They are working on it!

                        Ps. you said before that it happens sometimes, not always? how often would you say? can you see a pattern?

                        #30999
                        Arnab Mahapatra
                        Participant

                          Cant really see a pattern.

                          perhaps, it is more likely to happen after running a script a few times (when script finishes then running it again after lets say 5 seconds), do that a few times and issue will occur eventually after lets say around 4 runs (not that many runs basically)

                          perhaps system resources are getting bogged down

                          system:
                          windows 10 pro
                          intel i5-6400 2.7GHz processor
                          8GB ram
                          nvidia geforce gtx 950 video card

                          perhaps, I need to update drivers for video card

                          #31000
                          Valentin ZAP
                          Keymaster

                            it looks like you’ve got great specs, actually. we saw ZAPTEST run on much much lower specs than those. (1GB mem, no graphic card, win 7, 1.8ghz)

                            So there are some good news. a new version is out which hopefully solves this exact issue you’ve been having. After updating to 16.2.12, make sure your ZAP Viewer is also updated. to double check – just run the ZAP Viewer standalone app (should be an icon on the desktop) and then click the “About” button on the bottom right corner of the dialog. You should see a message that says Jan 24, 2017. this will be most up to date version.

                            you should be able to auto-update to 16.2.12, or download it from the Download section of the portal.

                            #31001
                            Arnab Mahapatra
                            Participant

                              seems much more stable in 16.2.12

                              ran script 10 times in a row, no issues seen thus far

                              thanks!

                              #31002
                              Valentin ZAP
                              Keymaster

                                awesome!

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • You must be logged in to reply to this topic.