Error: "No more handles" error occurs when opening a large number of editors

 Overview

When opening a large number of editors in the studio, the "no more handles" error may be returned because you hit the maximum number of user handles that can be opened in a Windows session. Then, you cannot open other editors.

This article provides you with best practices to prevent this error from occurring and a workaround to increase user handle and GDI handle limits on Windows.

Environment

Any version of Talend Studio installed on Windows operating systems.

Symptoms/Description

As opening editors uses handles, when you open a large number of editors in the Studio, you may hit the maximum handles limit on Windows operating systems and get a "no more handles" error like this:

!ENTRY org.eclipse.ui 4 0 2016-12-13 10:38:23.372
 
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles
 
at org.eclipse.swt.SWT.error(SWT.java:4467)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.SWT.error(SWT.java:4327)
...

Resolution

You can prevent the "no more handles" error from occurring by closing editors you do not use.

If you get a "no more handles" error because you opened a large number of editors, save your work and restart the Studio.

A possible workaround would be increasing user handle and GDI handle limits. For further information, see: https://weblogs.asp.net/mikedopp/increasing-user-handle-and-gdi-handle-limits.

Version History
Revision #:
2 of 2
Last update:
‎05-01-2017 08:45 PM
Updated by:
 
Labels (1)
Contributors