Bug 317105 - typing "this.notify" causes Eclipse to crash and exit
Summary: typing "this.notify" causes Eclipse to crash and exit
Status: CLOSED DUPLICATE of bug 283503
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 3.7 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 14:55 EDT by Paul Levin CLA
Modified: 2010-06-17 09:36 EDT (History)
2 users (show)

See Also:


Attachments
Java VM Crash log (18.93 KB, text/plain)
2010-06-17 09:11 EDT, Paul Levin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Levin CLA 2010-06-16 14:55:44 EDT
Build Identifier: 20100218-1602

In Eclipse 3.5 (Galileo), if I start to type "this.notify" inside an if(){} body, then Eclipse crashes and exits.

Start with:
  if( condition ) {
  }
then in the body, start to type "this.".
The list of suggestions pops up.  Then continue to type "notify".
Before finishing all of the letters in notify, Eclipse will have crashed.

Reproducible: Always

Steps to Reproduce:
1.see details above
2.
3.
Comment 1 Paul Levin CLA 2010-06-16 14:59:01 EDT
I forgot to mention that I have the BlackBerry Java Plug-in, version 1.1.2.201004161203-16 installed, as well as several SDK plugin's.  I don't see how any of them would affect this issue, but I thought I should mention it, just in case.
Comment 2 Ayushman Jain CLA 2010-06-17 02:07:10 EDT
Paul, this seems to be a problem specific to the BlackBerry Java plugin.
1) I couldnt reproduce this with either eclipse 3.5 or 3.6RC4 without the BB plugin. I tried both ways - typing notify and using code assist. Works ok!

2) http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp - the download site for the plugin - clearly says that it is supported only on eclipse 3.4 or 3.4.1. Using 3.5 can obviously create problems then. So maybe you can try using 3.4 and hopefully it'll work. :)

3) If it still doesnt work, you can seek help at http://supportforums.blackberry.com/t5/Java-Development/bd-p/java_dev. This is surely not a bug in eclipse.

Closing as NOT_ECLIPSE.
Comment 3 Remy Suen CLA 2010-06-17 06:07:27 EDT
If your VM crashed there should be an hs_err_pidXXXXX.log file somewhere (probably wherever your eclipse/ folder is). This may offer insight into your problem(s).
Comment 4 Paul Levin CLA 2010-06-17 08:48:57 EDT
Thank you for looking into this.  I don't really understand how the plugin is involved in typing code and how the plugin could cause a crash, but frankly I shouldn't be surprised.  There are so many bugs in the RIM products.

Regarding the plugin, you are looking at the wrong web site.  The current BlackBerry plugin is v1.1 for Eclipse 3.5, here - http://na.blackberry.com/eng/developers/javaappdev/javaplugin.jsp .

To Remy - thank for the suggestion but it is Eclipse that is crashing, not the simulator or device, so the VM doesn't apply.
Comment 5 Remy Suen CLA 2010-06-17 08:52:59 EDT
(In reply to comment #4)
> To Remy - thank for the suggestion but it is Eclipse that is crashing, not the
> simulator or device, so the VM doesn't apply.

Paul, Eclipse is a Java application (let's say 95%-99% Java code), if Eclipse crashed, then the JVM crashed.
Comment 6 Ayushman Jain CLA 2010-06-17 08:57:11 EDT
(In reply to comment #4)
> Regarding the plugin, you are looking at the wrong web site.  The current
> BlackBerry plugin is v1.1 for Eclipse 3.5, here -
> http://na.blackberry.com/eng/developers/javaappdev/javaplugin.jsp .

Sorry for that. Anyway, the build that you're using is newer than 3.5. So again I advise you to use atleast 3.5.2, if not 3.5 exactly. Also, if you post it on the blackberry forums and receive any feedback, and you're convinced that its an eclipse bug, feel free to reopen this bug. I've tested this on 3.5.2 as well , and it works fine without the BB plugin.
Comment 7 Paul Levin CLA 2010-06-17 09:11:23 EDT
Created attachment 172113 [details]
Java VM Crash log
Comment 8 Paul Levin CLA 2010-06-17 09:13:22 EDT
Remy, sorry, I misunderstood you.  I thought you were talking about the runtime VM on the BlackBerry.  You are correct, there are several hs_err_pidXX.log files here.  I've attached the most recent, though I looked at a few of them and they all die in the same native code location.

Skimming through the file, I do not see any class name containing "rim".  I admit that most of this file means nothing to me, but if I don't see "rim" in the stack, I don't see how their plugin would be involved.  Could one of you skim the file and see if it means anything to you.
Comment 9 Remy Suen CLA 2010-06-17 09:15:59 EDT
(In reply to comment #7)
> Created an attachment (id=172113) [details]
> Java VM Crash log

Please see bug 283503.
Comment 10 Paul Levin CLA 2010-06-17 09:31:18 EDT
Remy,
  I read that bug and it appears that comment 28 is a source code patch for Eclipse, submitted April 26, 2010.  I'm an Eclipse user so I don't have the Eclipse source code, nor can I take the time to start building the Eclipse source code.

  I just did a "check for updates" and there were none.  Will this patch be in an update soon?

  Thanks
Comment 11 Remy Suen CLA 2010-06-17 09:36:22 EDT
(In reply to comment #10)
>   I just did a "check for updates" and there were none.  Will this patch be in
> an update soon?

Get 3.6RC4 if you want the fix bad. The check may find 3.6.0 when it is released but I am not positive.
http://download.eclipse.org/eclipse/downloads/drops/S-3.6RC4-201006031500/index.php

Please follow-up on bug 283503 if you have other questions so others that find that bug will also benefit from this discussion. Thank you.

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