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

Bug 123056

Summary: Update Manager locks up TCP/IP stack on machine
Product: [Eclipse Project] Platform Reporter: Michael Searles <msearles>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Platform-Update-Inbox <platform-update-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: evans, francois, msearles, pombredanne
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen dump of hung Update Manager after Cancellation none

Description Michael Searles CLA 2006-01-09 00:41:34 EST
After downloading the Eclipse 3.1.1 build i've tried to use the Update Manager to get the EMF components.

Help->Software Updates->Find and Install
Search for new features to install
Eclipse.org update site
Finished
Eclipse.org update site

Expand Eclipse.org update site
check EMF SDK 2.1.0

Downloads several files then stops. If I press Cancel in the Update Manager progress dialog, nothing happens. 

It totally hangs the TCP/IP stack on my XP machine. I can't ping, can't connect (browser can't connect to any sites) and existing connections (via other applications) are hung... 

the only way to get out of this state is to use Windows Task Manager and end process on Eclipse, then javaw.exe.  After killing javaw.exe, the TCP stack comes back to life.

Was using Sun java 1.4, I tried upgrading to 1.5 (latest), same problem.

I also tried upgrading to Eclipse 3.2M4, same problem.

here is log from, I believe using 3.1.1, and java 1.5


!ENTRY org.eclipse.update.core 4 0 2006-01-07 20:23:11.156
!MESSAGE Unable to retrieve remote reference "http://update.eclipse.org/updates/3.0/plugins/org.eclipse.emf.ecore.sdo_2.1.0.jar". [Connection timed out: connect]
!STACK 0
java.net.ConnectException: Connection timed out: connect
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at org.eclipse.update.internal.core.HttpResponse.getInputStream(HttpResponse.java:126)
	at org.eclipse.update.core.ContentReference.getInputStream(ContentReference.java:146)
	at org.eclipse.update.core.FeatureContentProvider.asLocalReference(FeatureContentProvider.java:250)
	at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getPluginEntryArchiveReferences(FeaturePackagedContentProvider.java:165)
	at org.eclipse.update.internal.operations.UpdateUtils.downloadFeatureContent(UpdateUtils.java:627)
	at org.eclipse.update.internal.operations.UpdateUtils.downloadFeatureContent(UpdateUtils.java:653)
	at org.eclipse.update.internal.ui.wizards.InstallWizard2.download(InstallWizard2.java:405)
	at org.eclipse.update.internal.ui.wizards.InstallWizard2.access$3(InstallWizard2.java:394)
	at org.eclipse.update.internal.ui.wizards.InstallWizard2$4.run(InstallWizard2.java:350)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Caused by: java.net.ConnectException: Connection timed out: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(Unknown Source)
	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
	at java.net.PlainSocketImpl.connect(Unknown Source)
	at java.net.Socket.connect(Unknown Source)
	at java.net.Socket.connect(Unknown Source)
	at sun.net.NetworkClient.doConnect(Unknown Source)
	at sun.net.www.http.HttpClient.openServer(Unknown Source)
	at sun.net.www.http.HttpClient.openServer(Unknown Source)
	at sun.net.www.http.HttpClient.<init>(Unknown Source)
	at sun.net.www.http.HttpClient.New(Unknown Source)
	at sun.net.www.http.HttpClient.New(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
	at org.eclipse.update.internal.core.HttpResponse.getStatusCode(HttpResponse.java:188)
	at org.eclipse.update.internal.core.UpdateManagerUtils.checkConnectionResult(UpdateManagerUtils.java:520)
	at org.eclipse.update.core.ContentReference.getInputSize(ContentReference.java:193)
	at org.eclipse.update.core.FeatureContentProvider.asLocalReference(FeatureContentProvider.java:214)
	... 7 more
Comment 1 Michael Searles CLA 2006-01-09 09:21:33 EST
*** Bug 123095 has been marked as a duplicate of this bug. ***
Comment 2 Michael Searles CLA 2006-01-09 09:32:12 EST
this bug also is the same as reported by Bug 108436, 117708 and 79212. but obviously hasn't been resolved. perhaps the stack trace i provided will help.

BTW, my machine is a newer machine (6 months old) running an Athlon X2 (dual-core) processor.
Windows XP, SP2.  I have Windows Firewall turned OFF.

This problem happens every time i try to use Update Manager -- so it is very reproduceable.  Let me know if there's any other info needed (logs, etc.), or some tests I can try to help isolate the issue.

With Eclipse 3.2 nothing seems to get logged, but the problem still occurs. maybe i just haven't properly set log file path after upgrade to 3.2???

Comment 3 Kenneth Evans, Jr. CLA 2006-02-25 14:15:35 EST
I have had similar problems.  The following is from a post to
eclipse.newcomer made last Sunday.  I have three computers to update,
and I was finally successful on one of them during the week.  The one
that is the subject of the newsgroup article, continued to fail this
Saturday (today).  The only difference is that I got a list of mirror
sites this time.  The first site updated at a steady .4 - .5 Mpbs,
then failed.  I could still use Eclipse after dismissing the dialog.
The second, never got any bytes, and I cancelled it.  (It got bytes in
the search part but not after I had Ok'ed the license and began the
actual download.  The search part has never failed.)  As before, the
dialog did not go away, and I had to kill Eclipse to recover.  (I then
copied the installation from the one that had worked and did not try
again.)

My network has not been hung any of these times as far as I know.  I
have had NetsPerSec, a PC Magazine utility, running since the problems
started.  And I do see traffic, though perhaps not after it has failed
and before I have killed Eclipse.  I was not looking for that, and I
cannot recall for sure so it may have been hung as described elsewhere
in this bug.

I had problems updating TaxCut this past week also.  They are probably
busier than the Eclipse update sites.  The difference is that each
time I restarted it, it continued from where it left off and
eventually succeeded.  Microsoft Updates also work this way, though I
have seldom had troubles with them.  They do not start over each time
but add to the bytes already downloaded.

There seem to be the following problems:

1. It is not robust to network problems or busy remote sites.  I see
no evidence of problems on my computers, and it sometimes works,
especially on shorter updates, such as CDT.

2. It starts over each time.  This tends to make the entire system
unstable: Update fails because of overload.  Trying again increases
overload.  Update problems get worse.  Overload increases more yet,
...

3. The update dialog cannot be dismissed after cancellation.  I will
send a GIF of what it looks like after it has been cancelled.  There
is no way to return to Eclipse.  The red stop icons in the several
places they appear, seem to be independent of the others.  This is a
bug.  Even if the rest of the system is flakey, Eclipse should
recover.  TaxCut timed out after a minute, for example.

My system is XP Pro and (was) Eclipse 3.1.1.  This computer is 1.8 Ghz
(but the one on which I was successful is W2000 @ .8 GHz).  This one
has cable, which typically downloads at more than 2 Mbps.  The other
one is a company network that is typically slower than the cable for
downloads.)

= 2/19/2006 ==========================================================
I used  my whole day yesterday  trying to upgrade from  3.1.1 to 3.1.2
via the Update Manager on Windows XP.  See:

http://www.eclipse.org/eclipse/platform-releng/updatesfor3.1.1.html

for explicit directions.

1.  It hung at various points in the download process, 12%, 40%, and
60% being the most common.  At that point there were no bytes coming
in, but no indication of any error in the Update Manager.  It sat
overnight at one of these points, 14%, the last time I tried.  It does
not recover.

2. The Eclipse interface is frozen owing to the modal nature of the
Update Manager dialog.  The dialog cannot be closed.  It indicates
that it responds to Cancel, or to the red square on the Details part
of the dialog, or also the red square in the Progress view (all three
seem to be independent of each other, though they should not be), but
there is never a way to close the dialog, and it does not go away by
itself.

3.  The Eclipse process has to be killed.  On doing that in Task
Manager, it says it cannot be closed because it is waiting for a user
response.  There is no place I can see to make a response.  You have
to kill Eclipse to get out of this.

4.  The download is very slow.  It seems to come in sporadic bursts,
with peaks at about .5 Mbps (less than 1% in Task manager), but
averaging much less.  The time between bursts varies greatly, eventually
becoming zero (at the hang).  I have a cable connection that typically
downloads at a steady 2 Mbps or more for comparison.

5. There is no way to change the mirror site as described in the notes
above.  The problem is probably at the download site end, but Eclipse
is not robust to that and the site cannot be changed.  No mirror site
dialog appears as happens for other updates and in the instructions.

6. I downloaded eclipse-SDK-3.1.2-win32.zip as a ZIP in 8 min at a
steady 2+ Mbps.  Thus, it does not seem to be a problem with my
connection or computer.  However, this was on one mirror site.  On
another it was slower and more sporadic, but still much faster than
the Update Manager dpownload, which took up to an hour or more before
hanging.  (Why I spent all day.)

7. I would like to use the Update Manager rather than reinstall from
scratch and have to install all the other plug-ins again from their
various sources.  That is what it is for.

     I tried this on two computers, both running XP Pro.  It did the
same on both.  Both computers are working correctly on other
programs, and with Eclipse otherwise.

     I later downloaded the CDT plugin via the Update manager, and it
failed once (after the files were apparently downloaded), then worked
with another site the next time.  The only difference that I can see
is that it is not as large, and succeeds before things go south.

     Finally, on a slightly different but related topic.  I would like
to update VE via the Update Manager.  I believe it used to appear
under the default Eclipse.org update site item in the Update Manager,
along with GEF, etc. that it requires.  It does not now, and I don't
see any other directions on the VE site.  On the CDT site, there were
directions for another update site to visit, and they worked.

     I have to do this for 3 computers, and I cannot even get it to
work on one.  It's not my favorite way to spend Saturday.  Any help
would be appreciated.  Thanks,

-Ken


Comment 4 Kenneth Evans, Jr. CLA 2006-02-25 14:18:15 EST
Created attachment 35355 [details]
Screen dump of hung Update Manager after Cancellation
Comment 5 Branko Tripkovic CLA 2006-06-22 23:20:57 EDT

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