Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357737

Summary: installing new software (WindowBuilder) is (virtually) hanging
Product: [Eclipse Project] Equinox Reporter: stefano casadei <scasadei>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: henrik.lindberg, matthew, pascal, remy.suen, scasadei
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
thread dump
none
screenshot of where the installation hangs none

Description stefano casadei CLA 2011-09-15 04:47:44 EDT
Build Identifier: M20110831-1030

I apologize if this is not the right place to report this problem. I have been trying to install Window Builder through the Eclipse Workbench (Help -> Install New Software) and the process grinds to a virtual halt at 49% of the job. It seems that fetching the .jar files is extremely slow (it's been stuck at 49% for more than 1 hour). I have tried to restart (twice today) and the problem occured again.


Reproducible: Sometimes
Comment 1 stefano casadei CLA 2011-09-15 04:49:15 EDT
PS: Several days ago I installed several components without any problem.
Comment 2 Pascal Rapicault CLA 2011-09-19 16:22:48 EDT
At this point, I have not been able to reproduce this problem. Next time it happens please try to take vm dumps.
Comment 3 stefano casadei CLA 2011-09-20 16:37:42 EDT
(In reply to comment #2)
> At this point, I have not been able to reproduce this problem. Next time it
> happens please try to take vm dumps.

The problem still occurs...how can I take vm dumps?
Comment 4 DJ Houghton CLA 2011-09-20 16:39:01 EDT
http://wiki.eclipse.org/How_to_report_a_deadlock
Comment 5 stefano casadei CLA 2011-09-20 17:57:20 EDT
(In reply to comment #2)
> At this point, I have not been able to reproduce this problem. Next time it
> happens please try to take vm dumps.

The problem still occurs...how can I take vm dumps?

More specifically, after quickly fetching several files, it's been trying to fetch org.eclipse.wb.doc_user_1.1.0.237.... for over 20 minutes now
Comment 6 Pascal Rapicault CLA 2011-09-20 19:32:56 EDT
Is there any indication on the server you are getting the file from?
Comment 7 stefano casadei CLA 2011-09-21 06:11:35 EDT
Created attachment 203747 [details]
thread dump
Comment 8 stefano casadei CLA 2011-09-21 06:12:53 EDT
Sorry, I didn't pay attention to the server it was connected to.
I also have a heap dump if needed.
thanks.
Comment 9 stefano casadei CLA 2012-01-18 07:50:23 EST
Hello,
after a few months of inactivity I started the eclipse workbench again and tried to update it. The problem I had back in September with installing new software still persists, only now it occurs with the update process. It's two days that I am trying from two different computers, always with the same results: a few pieces are fetched, then everything grinds to a halt; sometime it crashes saying that this or that file can not be downloaded from download.eclipse.org.
If anyone can look into this I can send more information, thanks for your attention.
Stefano
Comment 10 Matthew Piggott CLA 2012-01-19 10:07:40 EST
If you open the Error Log (CTRL+3) there might be more information there.  You may also want to see if you're consistently downloading from a particular mirror (the progress indicator would likely have a label for this).

My only other suggestion is to open preferences (Window > Preferences) then General > Network Connections and try changing to Direct (or Manual and set your proxy).
Comment 11 stefano casadei CLA 2012-01-23 11:15:28 EST
CTRL-3 brings up a list of category in my local eclipse workbench and I don't see any Error Log in there.
I have tried to switch to direct but did not help.

Furthermore, the problem arises also when I tried to install new software.
Today I tried to install the PDE and the download process was stuck for hours.
And in one of the attempts I got this error message:

An error occurred while downloading http://download.eclipse.org/releases/indigo/201109230900/content.jar. The cache file C:\eclipse\eclipse-java-indigo-SR1-win32-x86_64\eclipse\p2\org.eclipse.equinox.p2.repository\cache\downloading\content1727518060.jar could not be renamed to C:\eclipse\eclipse-java-indigo-SR1-win32-x86_64\eclipse\p2\org.eclipse.equinox.p2.repository\cache\downloading\content1727518060.jar.
Comment 12 stefano casadei CLA 2012-01-23 11:54:19 EST
...and the most recent error message:

Unable to read repository at http://download.eclipse.org/releases/indigo/201109230900/content.jar.
Read timed out
Comment 13 stefano casadei CLA 2012-01-24 03:28:02 EST
Created attachment 209957 [details]
screenshot of where the installation hangs

I suspect the problem is due to the mirror site that is assigned to me, here is a screenshot of where the installation process hangs.
Is there a way I can tell eclipse to use a different mirror site?
Comment 14 Henrik Lindberg CLA 2012-01-24 20:34:32 EST
(In reply to comment #13)
> Created attachment 209957 [details]
> screenshot of where the installation hangs
> 
> I suspect the problem is due to the mirror site that is assigned to me, here is
> a screenshot of where the installation process hangs.
> Is there a way I can tell eclipse to use a different mirror site?

Google for "p2.mirrors=false".
Turning off mirrors means you are only talking to eclipse.org.
Comment 15 Henrik Lindberg CLA 2012-01-24 20:39:58 EST
also look at advice in bug 350014
Comment 16 stefano casadei CLA 2012-01-25 03:21:26 EST
(In reply to comment #15)
> also look at advice in bug 350014

that was very good reading

(In reply to comment #14)
> 
> Google for "p2.mirrors=false".
> Turning off mirrors means you are only talking to eclipse.org.

I haven't deliberately turned off mirrors...in any case, how can I view and change the parameter p2.mirrors?

I am also experiencing similar problems downloading from:
http://dist.springsource.com/release/TOOLS/market-place/e3.7/
Comment 17 stefano casadei CLA 2012-01-25 03:38:05 EST
...in continuation of the previous comment, here is the last error message for the springsource download

Some sites could not be found.  See the error log for more detail.
Unable to read repository at http://download.springsource.com/release/TOOLS/update/2.8.1.RELEASE/e3.7/content.jar.
Read timed out

Unable to read repository at http://download.eclipse.org/eclipse/updates/3.7/R-3.7.1-201109091335/content.jar.
Read timed out
Comment 18 Matthew Piggott CLA 2012-01-25 09:22:36 EST
Have you looked at your proxy settings as I mentioned in comment 10?  Given it is occurring for two completely different sites it seems likely that the problem is caused by your network or network configuration.
Comment 19 stefano casadei CLA 2012-01-25 09:49:13 EST
(In reply to comment #18)
> Have you looked at your proxy settings as I mentioned in comment 10?  Given it
> is occurring for two completely different sites it seems likely that the
> problem is caused by your network or network configuration.

Yes, I have tried with active provider set to "Direct" as you suggested, but it did not help. I haven't tried with "Manual" because I don't know what I should enter.
Henrik Lindberg suggested that I may have the parameter "p2.mirrors" set to false but I don't know how to view or change that parameter.

Here is the error message I have just gotten (with "Direct"):

Unable to read repository at http://download.springsource.com/release/TOOLS/update/2.8.1.RELEASE/e3.7/content.jar.
Read timed out
Comment 20 Paul Webster CLA 2012-01-25 09:56:44 EST
(In reply to comment #19)
> Henrik Lindberg suggested that I may have the parameter "p2.mirrors" set to
> false but I don't know how to view or change that parameter.
> 

That's a system property, You need to launch your eclipse with something like:
-vmargs -Declipse.p2.mirrors=false

PW
Comment 21 stefano casadei CLA 2012-01-25 17:51:52 EST
Here is an update: 

Andrew Eisenberg suggested that the problem may be due to an antivirus. Indeed, after shutting down AVG the speed of the download increased significantly.

But while trying to install groovy components I got this NEW error message:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.modeling, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract! 

Another behavior observed is that the file
org.eclipse.emf.doc_2.6.0.v20110913-1156.jar.pack.zip
is repeatedly fetched from multiple mirrors. It seems that each download is successful (all the KBs of the file are downloaded) but then it switches to another mirror and downloads it again...
Comment 22 Henrik Lindberg CLA 2012-01-25 18:30:52 EST
If you are you using Java 7, try Java 6 instead.
Try the install on a clean fresh Eclipse. Your installation may be corrupt (potentially caused by "faulty JVM", or by intrusive anti-virus).

(I googled for the error messages you posted, and some seem to have trouble with certain versions of Java 7).

If you still have problems, try the same installs on another clean machine, clean Eclipse, JVM known to work etc, on the same network. This to determine if there is something wrong with your machine's configuration/network etc.
Comment 23 stefano casadei CLA 2012-01-25 18:46:25 EST
(In reply to comment #22)
> If you are you using Java 7, try Java 6 instead.
> Try the install on a clean fresh Eclipse. Your installation may be corrupt
> (potentially caused by "faulty JVM", or by intrusive anti-virus).
> 
> (I googled for the error messages you posted, and some seem to have trouble
> with certain versions of Java 7).
> 
> If you still have problems, try the same installs on another clean machine,
> clean Eclipse, JVM known to work etc, on the same network. This to determine if
> there is something wrong with your machine's configuration/network etc.

Yes, with a fresh install of eclipse the problem went away!
And my final conclusion would be that the cause of all those bugging timeouts was the antivirus (AVG). I have been able to install several items in a breeze with AVG disabled!
Comment 24 stefano casadei CLA 2012-01-25 18:48:11 EST
it appears my problem was caused by the antivirus AVG.