Solved

System Out Of Memory Exception

  • 7 September 2021
  • 6 replies
  • 934 views

Userlevel 1
Badge +3

Hello,

We have been tracking an issue for more than a few months now and have no explanation as to why this is occurring. Was curious if anyone has seen this type of error before and if you were able to correct it. We have also had an IFS Engineer spend roughly 8 hours troubleshooting with no luck.

We are using IFS 9.10 and Oracle 12.

This Out Of Memory Error does not show up consistently in a given area or if performing a certain task. This pops up all over the place. We have 100 users in our environment and only maybe 5 report this non-stop. This error forces you to restart IFS but once restarted it could go days before seeing the issue again. We started by replacing the end user machines for the troubled 5 users that see this consistently, with no resolve.

Ifs.Fnd.FndSystemException: Explorer: An Unhandled Exception has occurred ---> System.OutOfMemoryException: Out of memory.

at System.Drawing.Bitmap.GetHbitmap(Color background)

at Ifs.Fnd.Explorer.Controls.CachedShadowCanvas.Get(Int32 width, Int32 height, Bitmap& bitmapCanvas, IntPtr& hBitmapCanvas)

at Ifs.Fnd.Explorer.Controls.StyledWindowFrameShadow.PerformUpdateShadowDisplay(Int32 x, Int32 y, Int32 ownerWidth, Int32 ownerHeight, Int32 shadowWidth, Int32 shadowHeight)

at Ifs.Fnd.Explorer.Controls.StyledWindowFrameShadow.UpdateShadow(Int32 ownerX, Int32 ownerY, Int32 ownerWidth, Int32 ownerHeight, Boolean suspendOwner, Boolean forceUpdate)

at Ifs.Fnd.Explorer.Controls.StyledWindowFrameShadow.UpdateShadow()

at Ifs.Fnd.Explorer.Controls.StyledWindowFrameShadow.set_ShadowColor(Color value)

at Ifs.Fnd.Explorer.UI.AuroraExplorerForm.SetThemeVariables()

at Ifs.Fnd.Explorer.UI.AuroraExplorerForm.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

at System.Windows.Forms.Control.WmShowWindow(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.Form.WmShowWindow(Message& m)

at System.Windows.Forms.Form.WndProc(Message& m)

at Ifs.Fnd.Explorer.UI.AuroraExplorerForm.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)

--- End of inner exception stack trace ---
 

Thank you,

icon

Best answer by Nimesh Kasun 8 September 2021, 01:11

View original

This topic has been closed for comments

6 replies

Userlevel 6
Badge +10

Hi @zconverse,

I found similar issue has been solved by @Imal Thiunuwan of an internal post. Since you won’t be able to view it, I will re-post here. Not sure if this solves your issue. 

IEE > Tools > Options >  Advanced tab

 

Then,

  • Reduce the Number of Pages
  • Under Display section, untick both options

 

/Nimesh

Userlevel 1
Badge +3

@Nimesh Kasun Thank you for the response.

We did experiment with those settings under the Advanced Tab but it did not have an impact.

For good measure I will review these settings on the user machines to verify.

Userlevel 2
Badge +6

@zconverse Did any of these settings improve the stability of the client sessions?

We see this error also.

 

 

Userlevel 5
Badge +11

Hi @zconverse and @jhainsworth,

 

This error is related to Operating system’s graphic rendering (Windows) and indicate that it has encountered an error in memory. This error message is a generic error.

 

Following Microsoft blog discuss about this error in-depth,

https://docs.microsoft.com/en-us/troubleshoot/developer/dotnet/framework/general/wpf-render-thread-failures

 

Take a look at section with title ‘Causes of the failures mentioned above’ in this link for causes for this error. And follow the recommendations given under the title ‘General recommendations’.

 

Hope this helps.

Userlevel 3
Badge +5

Hi @zconverse and @jhainsworth,

 

I highly suspect that the GDI (graphics device interface) object value might be the reason for this issue.

 

First check the GDI object value for IFS Application for users who got this error. Please follow the below path. 

 

Windows Task Manager > More details> Details tab> Right click on one of the column names > Select columns > Tick GDI Objects > OK

 

By following above, the GDI column should be visible in the task manager. Please check the GDI object value related to the IFS Application when user is using the IFS application for specific tasks.

 

Please note that the default GDI object value is 10,000.

 

Best Regards,
Tharindu

Badge +8

Hi @Tharindu Sooriyaarachchi ,

Do you know anything about this error?

Ifs.Fnd.FndSystemException: Explorer: An Unhandled Exception has occurred ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)
at System.Drawing.Graphics.MeasureString(String text, Font font, Int32 width, StringFormat format)
at Ifs.Fnd.Windows.Forms.DataGrid.FndDataGridComponent.MouseMove_Init(FndDataGridColumn& oColumn, FndDataGridRow& oRow, FndDataGridCell& oCell, MouseEventArgs e, Int32 eY, Int32& colorRow, Int32& colorCol, Boolean& refreshDropDown, Boolean& setUrlHand)
at Ifs.Fnd.Windows.Forms.DataGrid.FndDataGridComponent.OnGridMouseMove(MouseEventArgs e)
at Ifs.Fnd.Windows.Forms.DataGrid.FndDataGrid.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at Ifs.Fnd.Windows.Forms.DataGrid.FndDataGrid.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)

 

Thank You