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

Bug 355955

Summary: Can't install any software--Available Software list is empty; header isn't rendered either
Product: [Eclipse Project] Equinox Reporter: Scott Van Wart <silvaran>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: adietish, arunkumar.thondapu, blake.bond, Brodsky_Boris, chris.feuz, dnadoublehelix-eclipse, dtweed, eclipse.felipe, eclipse.org, eclipse, fippiko, freek_vandeursen, geom2, jamespakele, justflick, kbrowder, kfirufk, lufimtse, mgreer, mira, pascal, rafael, ranixlb, remy.suen, rknall, smathys, spamdaemon, thibault.castel, wadenwickel
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot none

Description Scott Van Wart CLA 2011-08-26 10:16:46 EDT
Build Identifier: 20110615-0604

I can't install any software through the Help->Install New Software.  I tried disabling all sites except "Indigo - http://download.eclipse.org/releases/indigo" and it made no difference.  I also tried starting Eclipse with GDK_NATIVE_WINDOWS=1 (shot in the dark from a 2009 post) and it made no difference.  Using 64-bit Ubuntu 11.04 fully up-to-date as of August 26, 2011.

Reproducible: Always

Steps to Reproduce:
1. Select Help->Install New Software
2. Choose a site from the "Work with" list, and hit ENTER.
3. Eclipse hangs for a brief period (half a second?); nothing happens
Comment 1 Remy Suen CLA 2011-08-29 07:34:15 EDT
Do any update sites work? Did you try resizing the window?
Comment 2 Scott Van Wart CLA 2011-08-29 09:28:05 EDT
No, none of the update sites work.  Resizing the window didn't change anything.  I tried switching to a non-compositing window manager and it made no difference.
Comment 3 Scott Van Wart CLA 2011-08-30 09:47:04 EDT
Created attachment 202417 [details]
Screenshot
Comment 4 Felipe Heidrich CLA 2011-08-30 09:52:54 EDT
Arun, please investigate.
Comment 5 Mira Dimitrijevic CLA 2011-10-13 15:13:25 EDT
I have the same problem Scott described back in August.  Is there any progress on this bug?  Is there a release scheduled that fixes this bug?
Thanks!


(In reply to comment #4)
> Arun, please investigate.
Comment 6 Arun Thondapu CLA 2011-10-18 07:57:07 EDT
I couldn't reproduce this on Ubuntu 11.04 32-bit as well as 64-bit.
I tried with Eclipse 3.7.0 Build id: I20110613-1736.
Mira, which OS and eclipse versions were you using?
Can you please check with the above Eclipse version?
Comment 7 Mary Greer CLA 2011-10-31 13:25:04 EDT
I am also having this problem.  I am running Eclipse Indigo:

Version: Indigo Release
Build id: 20110615-0604

I have Ubuntu 10.04 32 bit and 32 bit Eclipse.

In addition to not having anything displayed, I try to highlight and copy to a document and nothing displays there either, but if I select all, it will select these non-displayed items and then can proceed with an install.
Comment 8 krigu CLA 2011-11-10 11:26:44 EST
Same issue here! This is really annoying.

Version: Indigo Service Release 1
Build id: 20110916-0149

Running on Ubuntu 11.10 32 Bit
Comment 9 Anders Nawroth CLA 2011-11-26 19:10:12 EST
I'm probably seeing the same issue.
But: if I hit Select All, it actually selects the items (the dialogs show how many are selected) and I can install them.

Ubuntu 11.10 64-bit fully updated.
Eclipse IDE for Java Developers
Version: Indigo Service Release 1
Build id: 20110916-0149
Comment 10 Lakshmi P Shanmugam CLA 2011-12-22 04:25:49 EST
*** Bug 362604 has been marked as a duplicate of this bug. ***
Comment 11 Thibault CASTEL CLA 2012-01-15 06:38:18 EST
I had the same problem here with no solution. The treelist in the "Install New Software..." dialog window is hidden but items are selectable. When I select one I can't see anything except description in the "Details" section.

I'm on Debian 6.0.1 with kernel 3.1.0-1-686-pae #1

Version : Indigo 3.7.1
Build Identifier : 20110909-1335
Comment 12 Rodrigo Ribeiro CLA 2012-01-20 13:09:07 EST
Same here, running Build id 20110916-0149

I noticed that it affects some workspaces specifically, and not others.
If I'm using workspace A, I can't see the software list. Switching to workspace B, the Install software works as expected. If I switch back to A, the problem is back.

Let me know if I can help with any further information.
Comment 13 Code Blender CLA 2012-04-16 20:28:52 EDT
Same issue here, tried the export trick but it made no difference. The software tree remains invisible, but can be selected using the "select all" button and installed successfully.

Gentoo Linux

Eclipse SDK
Version: 3.7.2


eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M20120208-0800
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
/opt/eclipse/eclipse
-name
Eclipse
--launcher.library
/opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
-startup
/opt/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata
e8006
-vm
/usr/bin/java
eclipse.home.location=file:/opt/eclipse/
eclipse.launcher=/opt/eclipse/eclipse
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=@config.dir/../p2/
eclipse.p2.profile=SDKProfile
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1334621577641
eclipse.vm=/usr/bin/java
eclipse.vmargs=-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar
/opt/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
equinox.use.ds=true
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/opt/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
java.class.version=50.0
java.endorsed.dirs=/opt/sun-jdk-1.6.0.31/jre/lib/endorsed
java.ext.dirs=/opt/sun-jdk-1.6.0.31/jre/lib/ext:/usr/java/packages/lib/ext
java.home=/opt/sun-jdk-1.6.0.31/jre
java.io.tmpdir=/tmp
java.library.path=/opt/sun-jdk-1.6.0.31/jre/lib/amd64/server:/opt/sun-jdk-1.6.0.31/jre/lib/amd64:/opt/sun-jdk-1.6.0.31/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_31-b04
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_31
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=20.6-b01
line.separator=
Comment 14 Code Blender CLA 2012-04-25 20:42:14 EDT
Hi all,

This problem looks like an issue with the configuration files because I did a fresh install, wiped the .eclipse dir and the software tree became visible again.

Cheers
Comment 15 James Pakele CLA 2012-05-03 09:53:57 EDT
I got around this by deleting the .metadata folder in the workspace...
Comment 16 Blake Bond CLA 2012-05-24 10:56:37 EDT
Deleting .metadata or .eclipse folders is unacceptable of course, since it removes all workspace customizations. Removing only the following two invalid settings solved the problem for me.

1.Close Eclipse.
2.Find a file named .metadata/.plugins/org.eclipse.equinox.p2.ui/dialog_settings.xml in your workspace.
3.Open the file with a text editor and find a section named AvailableIUsPage.
4.Remove the following strings:
<item value="0" key="AvailableVersionColumnWidth"/>
<item value="0" key="AvailableNameColumnWidth"/>   
5.Save the file and launch Eclipse.

This is what triggers the bug in my case.

1.Help > Install New Software
2.Work with: Indigo
3.Entering any letter in the filter bar makes Eclipse hang with 100% CPU use for a minute or so.
4.If interrupted with ESC, the window simply disappears and there are no columns in available updates view after this anymore.
5.This dialog change is saved upon exit making the problem permanent.
Comment 17 Arun Thondapu CLA 2012-07-23 07:22:57 EDT
*** Bug 385684 has been marked as a duplicate of this bug. ***
Comment 18 Roland Knall CLA 2012-10-04 03:45:31 EDT
I started with a fresh install in Juno, the problem started to appear, after a package install went wrong

(In reply to comment #16)
> Deleting .metadata or .eclipse folders is unacceptable of course, since it
> removes all workspace customizations. Removing only the following two
> invalid settings solved the problem for me.
> 
> 1.Close Eclipse.
> 2.Find a file named
> .metadata/.plugins/org.eclipse.equinox.p2.ui/dialog_settings.xml in your
> workspace.
> 3.Open the file with a text editor and find a section named AvailableIUsPage.
> 4.Remove the following strings:
> <item value="0" key="AvailableVersionColumnWidth"/>
> <item value="0" key="AvailableNameColumnWidth"/>   
> 5.Save the file and launch Eclipse.

This workaround did it for me, it works for Juno.

But I cannot reproduce the issue, with the trigger described in above post.

System is Ubuntu 12.04 64 bit, running Oracle's java v. 1.7.0_07
Comment 19 Mira Dimitrijevic CLA 2012-10-23 15:06:58 EDT
I just got a new Mac Pro (OS 10.7.5) and installed Eclipse Juno on it (Build id: 20120614-1722).  Again I have the same problem that I cannot use the "Install New Software" feature.  I add a URL and specifically "enable" it.  When I try and use it I get the error message that the URL cannot be found.  I get the URL (cut-and-paste) from the Eclipse Market place. I tried two different URLs.  I also tried the solution that Blake Bond described (comment 16).  No success.  

In my case, the two lines looked like this:
               <item value="240" key="AvailableVersionColumnWidth"/>
               <item value="450" key="AvailableNameColumnWidth"/>


When I open Help->Eclipse Marketplace I get this exception:

Unexpected exception
java.lang.reflect.InvocationTargetException

Is there any way I can get to the plugins I need and simply drop them into the "plugins" and "features" folders in the application?  Pleeeeeez!  If I can't resolve this problem I need to switch to another IDE :(

Thanks!
Comment 20 Stephan Mathys CLA 2012-12-21 02:52:51 EST
Same here for one of my workspaces. When I create a new workspace I can install plugins to my eclipse without any problems.

For the corrupt workspace I started to work with eclipse 3.8.1 and switched the ide for a couple of times (eclipse 3.7.2).
Comment 21 Justin Flick CLA 2013-01-29 14:18:13 EST
+1 for Blake Bond's solution   
   
Eclipse Juno build 20120920-0800

Thank you very much for the work-around
Comment 22 Freek Vandeursen CLA 2013-08-18 09:03:38 EDT
Blake's solution worked for me too. The bug appeared for me in Kepler, build I20130605-2000
Comment 23 Heiko Selber CLA 2013-09-12 07:07:45 EDT
(In reply to Freek Vandeursen from comment #22)
> Blake's solution worked for me too. The bug appeared for me in Kepler, build
> I20130605-2000

The same here (same Eclipse build on Linux Mint 13 Maya 64-bit).
Comment 24 Kfir Ozer CLA 2014-03-10 09:17:17 EDT
having the same problem on eclipse 4.3.2 64 bit on linux gentoo, could not see anything in the available packages to install. i was able to click 'select all' and to see how many packages are selected. once i created a new workspace i could install packages properly.
Comment 25 François Rey CLA 2014-04-03 06:25:15 EDT
Blake's workaround also works for me on Kepler SR2 / Linux 64bit.
I really think he nailed it because before this bug happened I did interrupt some search.
Since this bug is reproducible it should be easy to fix now...
Comment 26 Kevin Browder CLA 2014-05-02 09:09:16 EDT
(In reply to Blake Bond from comment #16)
Same here, in addition to Blake's workaround I did a chattr +i on that file since it seemed to get rewritten on Eclipse restart.  I'm using  Kepler Service Release 2, Build ID: 20140224-0627 on CentOS 5 (ancient I know).
Comment 27 Boris Brodski CLA 2014-10-08 10:28:02 EDT
Confirm on

Version: Luna Service Release 1 (4.4.1)
Build id: 20140925-1800

Workaround works
Comment 28 George Mouravyov CLA 2014-11-30 16:12:29 EST
I also have this issue
(Indigo, ver: 3.7.2, build: M20120208-0800, Ubuntu 32-bit)

Blake Bond's method helped me, but I didn't delete these 2 lines. I only changed values from 0 to 20 for both. Then it became able to see these 2 columns in the form and change theirs width by mouse.

Zero-width columns are invisible - that is a problem.
To reproduce issue, try to cancel pending state in "Install new software" window when it is looking for software listing (using ESC, Alt+F4, Click-a-Cross, etc.). I guess, mostly old/slow computers are affected with this issue. Software listing update may hang active window for a minute or more with 100% CPU utilization.
Comment 29 Rani Ahmad CLA 2015-02-19 03:35:26 EST
I have Eclipse Luna ( Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600 )
and this same problem still exists.

Solution of Blake Bond from comment #16 works, but REMEMBER FIRST to CLOSE Eclipse to get Blake's solution working and do the rest of the steps.
I commented the  two XML lines he talks about. and it works.
Comment 30 Sebastian Salgado CLA 2015-04-07 09:37:23 EDT
Same issue here:

Eclipse IDE for C/C++ Developers
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

Kubuntu 14.10 fully updated

Blake Bond's workaround worke for me

Thank you very much Blake!
Comment 31 Leo Ufimtsev CLA 2015-04-07 11:21:57 EDT
I'm not sure if this is SWT specific? Looks like an issue with the workspace configuration.
If anyone has a snippet to reproduce this, it'd be great.
Comment 32 Arun Thondapu CLA 2015-05-07 08:04:14 EDT
Moving to p2 for investigating why the columns mentioned in comment 16 are getting a zero width in the first place.
Comment 33 Pascal Rapicault CLA 2015-05-07 20:11:37 EDT
Can't reproduce.
Comment 34 Rafael Chaves CLA 2015-08-24 07:54:05 EDT
See also bug 475700.