Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343984 - StackOverFlow error
Summary: StackOverFlow error
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 11:58 EDT by DJ Houghton CLA
Modified: 2012-12-04 14:00 EST (History)
4 users (show)

See Also:


Attachments
log file (570.60 KB, text/plain)
2011-04-27 12:07 EDT, DJ Houghton CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2011-04-27 11:58:17 EDT
build 0426-1606

(this is a special build from HEAD against EMF from 3.6.2)

I am trying to run a large product on top of 4.1 and I'm getting the following StackOverFlow error when opening/closing some of the wizards and dialogs.

I'll attach the full log since I'm not sure which part is the most important.
Comment 1 DJ Houghton CLA 2011-04-27 12:07:00 EDT
Created attachment 194176 [details]
log file
Comment 2 Remy Suen CLA 2011-04-27 14:47:09 EDT
This is caused by multiple subsequent requests (must be more than one) to set a global action handler for a given view. Using a selection listener like the one below will cause the infinite loop to occur.

private ISelectionListener listener = new ISelectionListener() {
    public void selectionChanged(IWorkbenchPart part, ISelection selection) {
      getViewSite().getActionBars().setGlobalActionHandler(
          "delete", action); //$NON-NLS-1$
      getViewSite().getActionBars().setGlobalActionHandler(
          "new", action); //$NON-NLS-1$
    }
};

The workaround is to delay this request (such as by using a job).
Comment 3 Lars Vogel CLA 2012-12-04 14:00:09 EST
I think this is fixed with Eclipse 4.2