Ask a Question

"Not Enough Quota is Available to Process This Command" TestComplete

cmpenn
Contributor

"Not Enough Quota is Available to Process This Command" TestComplete

Every so often when running our application with TestComplete, the application freezes up and crashes.


After discussions with a developer, it looks like our logs caught an issue with TestComplete running out of memory when attempting to drive the application.

The following message shows up in our logs:

2018-03-19 14:52:32.3169 An unhandled dispatcher exception has occurred. System.ComponentModel.Win32Exception (0x80004005): Not enough quota is available to process this command
   at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
   at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
   at System.Windows.Interop.HwndTarget.OnWindowPosChanging(IntPtr lParam)
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

Any thoughts? Or any way to fix this? Or is this maybe a defect in TestComplete?

8 REPLIES 8
tristaanogre
Esteemed Contributor

I'm not seeing where in that stack trace anything specifically implicates TestComplete.  If this is showing in your application logs, then there's something in your application that is consuming memory.

 

Now, it COULD be TC's interaction with it... but without more information, it's hard to say.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Yeah, I'm not fully convinced either, but I'm trying to figure out some way to get to the root issue.

 

The dev I'm working with is fairly confident in this being an issue with TestComplete (though he's biased against it).

 

I also keep running into the problem that this only seems to happen when TestComplete is running the application.

tristaanogre
Esteemed Contributor

It would be interesting to know if there are particular parts of your test case where this happens regularly.

 

I'm assuming it's a desktop application... what technology is it written in (Delphi, C# .NET, etc)?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

It would be, and I'm going to keep some records around it. The other problem is that "often" is a weird term in this case. I can't seem to find any pattern, and the issue doesn't seem to crop up often enough to be reproducible easily.

 

I was hoping to find someone with a similar issue, or at least suss out any more ideas on how to get to the root of this.

 

It's written in C#, and we are using WPF.

tristaanogre
Esteemed Contributor

One thing is that TestComplete execution does have an overhead on the machine.  So, if the machine you're running your tests on is just around the minimum recommended for your application and you add TC/TE on top, yeah, you'll have memory issues.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

That could definitely be the case, and I should gather some data on the machines that have had this issue.

AlexKaras
Champion Level 2

Hi,

 

I would recommend to create a Support ticket via the https://support.smartbear.com/message/?prod=TestComplete form. Support guys may ask you for the information that may help them to find the root of the problem. (Note, that SmartBear considers requests to sign NDA if your company thinks that this is needed.)

 

Additionally, you may consider to use the Report Generator tool provided with TestComplete (https://support.smartbear.com/testcomplete/docs/testing-with/advanced/tracing-critical-errors/report...) and use it to try to get the stack traces that might help your developers to find the reason of the problem internally. (I don't remember if it is explicitly described in the documentation, but it is possible to start more than one instance of Report Generator and attach them to different applications to get more than one synchronized stack traces if needed.)

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
srishtimathur
New Member

If you are facing this issue "Not Enough Quota Is Available To Process This Command" repeatedly, and really want to get rid of it, then simply you have to follow this link, as here you will get the exact solution for this error.

 

Thanks.

cancel
Showing results for 
Search instead for 
Did you mean: