Crash when running analysis or other operations: Not enough quota is available to process this comma


Product(s):WaterGEMS, WaterCAD, HAMMER, SewerGEMS, CivilStorm, StormCAD, SewerCAD
Version(s):10.XX.XX.XX
Area:Calculations

Problem

When computing a transient simulation the program crashes with the following details in the exception log;

System.ComponentModel.Win32Exception: Not enough quota is available to process this command

at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)

at System.Windows.Interop.HwndTarget.UpdateWindowPos(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)

The error message can be seen as “Not enough quota is available to process this command”.

Solution

This error indicates that the system is running out of disk space when running the analysis. This could happen if the disk space allotted for the program files is not sufficient or when running a particularly large model with a lengthy simulation duration, which would typically generate a large amount of output files.

To resolve this following troubleshooting options can be tried;

Option 1: Compact Database and separating model files

Here you can compact your database to free some disk space. Compacting the database can also increase the calculation speed (especially for very large models) and also prevent potential corruption of data. To manually compact your database;

For V8i Series releases: Go to Tools > Database Utilities > Compact Database

For CONNECT Edition releases : Go to File > Database Utilities > Compact Database

See this article which discusses this in details : Compacting a database for optimal performance and general troubleshooting

In addition to this if a large number of output files are being saved you can try separating the model files. For water products (such as HAMMER) the model files would have the extensions of .wtg and .wtg.sqlite. Copy and Paste the model files into a separate folder and try to open the model from there (double click the .wtg file). See if this helps.

You can also try storing the model files in a separate folder by specifying the folder path where they are stored. More information on this can be found in this article : Many output files are being saved

Option 2: Increasing Disk Usage Limits

If the above option does not work, then there is possibility that the available disk space for the program is falling short when running an analysis. If this is the case, then there is a solution which can increase the disk space but requires administrative privileges to change these settings in your system.

Note: If you do not have administrative rights or your organization does not allow changing your system settings, please consult your local IT team before proceeding with this option.

Step 1: Go to Control Panel

Step 2: Select “Sync Center”

Step 3: Go to “Manage Offline Files” on the left side

Step 4: Go to the “Disk Usage Tab” and “Change Limits” and change the disk limits to accommodate more memory for the application to run.

See Also

Compacting a database for optimal performance and general troubleshooting

Many output files are being saved