Bug 272849 - Eclipse crash when right click Project node.
Summary: Eclipse crash when right click Project node.
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Linux-GTK
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-04-19 23:43 EDT by Hantsy Bai CLA
Modified: 2009-10-01 09:36 EDT (History)
1 user (show)

See Also:


Attachments
eclipse log file (360.34 KB, text/plain)
2009-04-22 11:46 EDT, Hantsy Bai CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hantsy Bai CLA 2009-04-19 23:43:20 EDT
linux(Fedora 10):
[hantsy@localhost eclipse]$ uname -a
Linux localhost.localdomain 2.6.27.21-170.2.56.fc10.i686 #1 SMP Mon Mar 23 23:37:54 EDT 2009 i686 athlon i386 GNU/Linux

Locale:
[hantsy@localhost eclipse]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Eclipse:
Eclipse official 3.4.2 JEE bundle and some other plugins.

Java:
[hantsy@localhost eclipse]$ java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode)


When I right click a project on project node , it crash. 
I have tried many times and got the same result.

When I ran eclipse from Gnome Terminal,
I got the following messsage when it crashed.
------------------------------------------------
/usr/libexec/Eclipse: No such file or directory.
Cannot access memory at address 0x1ffc10bc
Cannot access memory at address 0x1ffc10bc
-------------------------------------------------

I've tried using a "-clean" parameter to eclipse command to start Eclipse, but it can not fix this problem.
Comment 1 Remy Suen CLA 2009-04-19 23:53:00 EDT
(In reply to comment #0)
> Eclipse:
> Eclipse official 3.4.2 JEE bundle and some other plugins.

Do you get the same problem with the Classic build?
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php

> When I right click a project on project node , it crash. 
> I have tried many times and got the same result.

So right-clicking on other items are fine? Can you provide your workspace's log file (workspace/.metadata/.log) after renaming your existing one (so that a new one will be generated)? Do you have any hs_err_pid log files lying around? They should be in ~/ or wherever your Eclipse installation is.
Comment 2 Paul Webster CLA 2009-04-22 11:11:27 EDT
Please re-open with requested information.

you need to attach your log, and also any JVM crash log (hs_err_<pid> type file).

PW
Comment 3 Hantsy Bai CLA 2009-04-22 11:46:35 EDT
Created attachment 132796 [details]
eclipse log file
Comment 4 Remy Suen CLA 2009-04-22 11:55:16 EDT
(In reply to comment #3)
> Created an attachment (id=132796) [details]
> eclipse log file

It seems the root of the problem is in WTP code although it is called by a third-party plug-in.

java.lang.NullPointerException
	at org.eclipse.jst.jsf.common.ui.internal.utils.WebrootUtil.getWebContentPath(WebrootUtil.java:84)
...
de.loskutov.anyedit.actions.compare.CompareWithEditorAction$EditorsContentProvider.<init>(CompareWithEditorAction.java:214)

Can you download a 3.4.2 Classic build from the link provided in comment 1 and try to reproduce the problem?

I take it you do not have any hs_err_pid log files lying around? The code caused by the NPE appears to be protected by a SafeRunner so I am not entirely convinced that it would cause Eclipse to crash.