Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 32140 - Update Manager Hangs
Summary: Update Manager Hangs
Status: RESOLVED DUPLICATE of bug 18598
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Update-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 12:05 EST by Gary Karasiuk CLA
Modified: 2003-02-18 15:59 EST (History)
0 users

See Also:


Attachments
stack trace (12.29 KB, text/plain)
2003-02-18 12:08 EST, Gary Karasiuk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Karasiuk CLA 2003-02-18 12:05:52 EST
Update Manager puts up a modal dialog "Searching for updates:" ...
and then proceeds to hang. 

I was searching for new updates, there appeared to be network problems so after 
a long time I pressed the cancel button but it was ignored. This is using M5. 
This is a pretty bad bug becauase the only way to recover is to KILL the 
eclipse process. I'll attach the stack trace.
Comment 1 Gary Karasiuk CLA 2003-02-18 12:08:22 EST
Created attachment 3552 [details]
stack trace

I included this stack trace to show where the workbench was hung.
Comment 2 Christophe Elek CLA 2003-02-18 13:08:35 EST

*** This bug has been marked as a duplicate of 18598 ***
Comment 3 Gary Karasiuk CLA 2003-02-18 13:26:30 EST
I read through bug 18598, and while it is certainly strongly related to this 
bug, I don't see it as an exact duplicate.

For this bug a modal dialog is being locked, which locks up the entire 
workbench. At least the modal dialog needs to be freed, even if that means 
leaking a connection. If the modal dialog isn't freed than the only alternative 
is to KILL the process which is a lot more drastic than leaking a connection.
Comment 4 Dejan Glozic CLA 2003-02-18 13:45:41 EST
Gary, all these bugs are about the same problem: we don't have sufficient 
control over the connection to be able to cancel if it is frozen. JDK 1.4.1 
seems to be better in this regard because its timeout is shorter. When you 
press 'Cancel', the cancel bit is set on the progress monitor, but our code 
cannot get to it because the 'openConnection' methods blocks. We would need to 
spawn a thread that checks the 'cancel' state and somehow kills the connection. 
We are not happy with the lack of control in java.net.
Comment 5 Dejan Glozic CLA 2003-02-18 13:46:47 EST
I am resolving this as a duplicate again because although this particular 
problem is worse because it is in the dialog, the cause in all cases is the 
same.

*** This bug has been marked as a duplicate of 18598 ***
Comment 6 Gary Karasiuk CLA 2003-02-18 15:31:02 EST
It just looked like the other bug wasn't being fixed, and that part of the 
discussion was about how we didn't want to leak connections. While that might 
be the right answer for the general case, it is not the right answer for this 
case. 

Comment 7 Dejan Glozic CLA 2003-02-18 15:59:07 EST
Regardless of the discussion, we will either allow frozen connections to be 
canceled (by dispatching a monitoring thread that can disconnect the 
connection) or not. If we do, it will fix all the defects marked as duplicates. 
We will not try to address each defect separately.