Exception: Object is currently in use elsewhere.
Home › Forums › Ask Expert › Exception: Object is currently in use elsewhere.
- This topic has 13 replies, 4 voices, and was last updated 7 years, 11 months ago by Valentin ZAP.
-
AuthorPosts
-
January 21, 2017 at 5:22 pm #30987Arnab MahapatraParticipant
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 ifIf not Datatable.Value(“real_user”) then
Application(“glooko_6”).View(“View_2”).Object(“The email and passwo”).Exist
end ifStep 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:January 21, 2017 at 8:09 pm #30988Sasha ZAPModeratorHello amahapatra,
We are looking into this issue, and will follow up shortly.
Thanks,
SashaJanuary 22, 2017 at 1:00 am #30989Valentin ZAPKeymasterHello 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 TeamJanuary 22, 2017 at 6:41 am #30990Arnab MahapatraParticipantstill having same issue in 16.2.10
January 22, 2017 at 8:03 am #30991Arnab MahapatraParticipantissue 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.10January 22, 2017 at 9:34 am #30992Sasha ZAPModeratorHello 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,
SashaJanuary 24, 2017 at 8:37 pm #30995Arnab MahapatraParticipantlooks 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
January 24, 2017 at 9:07 pm #30996Valentin ZAPKeymasterwe 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?
January 24, 2017 at 11:51 pm #30997Arnab MahapatraParticipant1. uninstalled zaptest
2. installed 16.2.11
3. rebooted pc
4. ran script (javascript)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.January 25, 2017 at 12:17 am #30998Valentin ZAPKeymasterThanks!! 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?
January 25, 2017 at 12:38 am #30999Arnab MahapatraParticipantCant 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 cardperhaps, I need to update drivers for video card
January 25, 2017 at 12:57 am #31000Valentin ZAPKeymasterit 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.
January 25, 2017 at 1:40 am #31001Arnab MahapatraParticipantseems much more stable in 16.2.12
ran script 10 times in a row, no issues seen thus far
thanks!
January 25, 2017 at 2:35 am #31002Valentin ZAPKeymasterawesome!
-
AuthorPosts
- You must be logged in to reply to this topic.