Bug 512046 - Freeze when right-clicking on project
Summary: Freeze when right-clicking on project
Status: CLOSED DUPLICATE of bug 511941
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2017-02-10 10:36 EST by Nicolas Peifer CLA
Modified: 2017-02-19 11:31 EST (History)
3 users (show)

See Also:


Attachments
Secure storage dialog promts for a password (31.80 KB, image/jpeg)
2017-02-10 10:36 EST, Nicolas Peifer CLA
no flags Details
Excerpt from workspace/.metadata/.log of a session that freezed (3.65 KB, text/plain)
2017-02-13 04:29 EST, Nicolas Peifer CLA
no flags Details
Thread dump (26.53 KB, text/plain)
2017-02-14 06:46 EST, Nicolas Peifer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Peifer CLA 2017-02-10 10:36:57 EST
Created attachment 266754 [details]
Secure storage dialog promts for a password

After starting a workspace, when I do a right-click on an existing project, Eclipse (Neon.2) freezes on my Ubuntu (16.04 LTS) system i. e. the context menu does not open and Eclipse does not react on input anymore. The freeze lasts serveral minutes.

When I disable the internet connection before loading a workspace then I can perform a right-click as usual. Right after the right-click, a "Secure storage" dialog promts for a password (see attached image). After entering the password the context menu opens and everything works - even when I enable my internet connection afterwards.
Comment 1 Dani Megert CLA 2017-02-10 10:40:51 EST
(In reply to Nicolas Peifer from comment #0)
> Created attachment 266754 [details]
> Secure storage dialog promts for a password
> 
> After starting a workspace, when I do a right-click on an existing project,

In which view?


Please take some stack traces, so that we can see where it hangs.
Comment 2 Nicolas Peifer CLA 2017-02-13 04:28:15 EST
I perform a right-click on the project in the project explorer. I will attach an excerpt from the .metadata/.log file. I don't know how to obtain a stacktrace as no hs_err*.log is in my home folder.
Comment 3 Nicolas Peifer CLA 2017-02-13 04:29:50 EST
Created attachment 266781 [details]
Excerpt from workspace/.metadata/.log of a session that freezed
Comment 4 Dani Megert CLA 2017-02-13 08:58:28 EST
(In reply to Nicolas Peifer from comment #2)
> I don't know how to obtain a
> stacktrace as no hs_err*.log is in my home folder.

See https://wiki.eclipse.org/How_to_report_a_deadlock
Comment 5 Nicolas Peifer CLA 2017-02-14 06:46:02 EST
Created attachment 266810 [details]
Thread dump
Comment 6 Stephan Herrmann CLA 2017-02-14 08:32:08 EST
(In reply to Nicolas Peifer from comment #5)
> Created attachment 266810 [details]
> Thread dump

Some people seem to do too much work during menu creation:

at org.eclipse.core.internal.jobs.Semaphore.acquire(Semaphore.java:39)
	- locked <0x00000000ca26c868> (a org.eclipse.core.internal.jobs.Semaphore)
...
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:626)
...
at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:172)
at org.eclipse.oomph.p2.internal.core.CachingTransport.stream(CachingTransport.java:261)
...
at org.springsource.ide.eclipse.commons.internal.core.net.P2TransportService.stream(P2TransportService.java:139)
...
at org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools.<init>(EnableDisableBootDevtools.java:54)
...
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:282)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
...
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:394)

I.e., while you are waiting for the menu, "everybody" seems to see an urgent need to initialize "everything", leading to some (slow?) network access.

From a glance at this stack, I'd first suspect org.springframework.ide of doing too much during initialization. Not sure if oomph's role in this stack is "good" or "bad".
Comment 7 Stephan Herrmann CLA 2017-02-14 08:34:02 EST
Can this problem be reproduced without STS installed?
Comment 8 Andrey Loskutov CLA 2017-02-19 11:31:35 EST

*** This bug has been marked as a duplicate of bug 511941 ***