Eclipse crashes one time after update of the plugin
Hello,
It is not a really important bug, but since a long time, after every update I observe the following behaviour:
+ Plugin updates cleanly
+ Eclipse asks for restart
+ I accept
+ Eclipse begins restarting, then I see the following with the last two lines repeated every seconds or so in the console:
[org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
[org.eclipse.equinox.weaving.hook] info removing supplementer ch.epfl.lamp.sdt.aspects
[org.eclipse.equinox.weaving.hook] info removing supplementer org.eclipse.contribution.weaving.jdt
+ Ecilpse asks me for a workspace directory
+ Eclipse crashes with the following errors, the last exception is repeated a lot of times:
Exception in thread "Refresh Packages" Exception in thread "Refresh Packages" java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:201)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:509)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:239)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Refresh Packages" java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:201)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
at java.lang.Thread.run(Thread.java:619)
+ I re-run Eclipse and it works with no flaws!
Thanks
It is not a really important bug, but since a long time, after every update I observe the following behaviour:
+ Plugin updates cleanly
+ Eclipse asks for restart
+ I accept
+ Eclipse begins restarting, then I see the following with the last two lines repeated every seconds or so in the console:
[org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
[org.eclipse.equinox.weaving.hook] info removing supplementer ch.epfl.lamp.sdt.aspects
[org.eclipse.equinox.weaving.hook] info removing supplementer org.eclipse.contribution.weaving.jdt
+ Ecilpse asks me for a workspace directory
+ Eclipse crashes with the following errors, the last exception is repeated a lot of times:
Exception in thread "Refresh Packages" Exception in thread "Refresh Packages" java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:201)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:509)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:239)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Refresh Packages" java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:201)
at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
at java.lang.Thread.run(Thread.java:619)
+ I re-run Eclipse and it works with no flaws!
Thanks
Leave a comment
on 2010-06-15 10:54 *
By
Do you launch Eclipse with the -clean command line option?
I sometime do, sometimes no, but I did not see any effect of that on the problem (when it was still there).
I think that until today, every time I restarted Eclipse as a result of installing a new version of the plugin, either by accepting restart from Eclipse or by shutting it down then restarting from the command line, it crashed on the restart.
After the crash, I run it from the console and it works, sometime with the -clean parameter, sometime not.
It is possible that sometimes I run Eclipse (before the upgrade) with or without clean, I don't know.
If it happens again I will make more precise tests.
Thanks
I think that until today, every time I restarted Eclipse as a result of installing a new version of the plugin, either by accepting restart from Eclipse or by shutting it down then restarting from the command line, it crashed on the restart.
After the crash, I run it from the console and it works, sometime with the -clean parameter, sometime not.
It is possible that sometimes I run Eclipse (before the upgrade) with or without clean, I don't know.
If it happens again I will make more precise tests.
Thanks
Hello,
Today I followed this sequence of actions:
- start eclipse without -clean
- update plugins
- restart when asked by eclipse => crashes (with the same exceptions)
- run eclipse without -clean => works
Attached is the log in the workspace (.metadata/.log) for this session.
Today I followed this sequence of actions:
- start eclipse without -clean
- update plugins
- restart when asked by eclipse => crashes (with the same exceptions)
- run eclipse without -clean => works
Attached is the log in the workspace (.metadata/.log) for this session.
file:aGWIs2Esqr34JYeJe5cbLr: workspace logs of the session
on 2010-06-16 05:15 *
By
Thanks for the log. Unfortunately there's nothing in there that visibly relates to the Scala tooling, so if that's what's at fault, it's hard to see how to diagnose what's going awry.
You don't say what version of Eclipse you're using, or what JVM version or platform: have you looked into whether there are related generic Eclipse bugs open for that combination?
You don't say what version of Eclipse you're using, or what JVM version or platform: have you looked into whether there are related generic Eclipse bugs open for that combination?
I am using for Eclipse:
Version: 3.5.2
Build id: M20100211-1343
And for Java :
$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
It only happens with the Scala plugin (at least for the plugins I use), but I will check for bugs at Eclipse, I didn't thought about it!
Version: 3.5.2
Build id: M20100211-1343
And for Java :
$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
It only happens with the Scala plugin (at least for the plugins I use), but I will check for bugs at Eclipse, I didn't thought about it!
It you're able to reliably reproduce the crash (ie. fresh eclipse install and workspace; install plugin v. x; upgrade to version x+1; restart; crash) could you please try repeating with the -clean option and let me know if that makes the crash go away.
Hello,
I was able to do that today:
- untarred 3.5.2 classic (in a dir eclipse-clean), installed scala-plugin
- made a clone (in a dir eclipse-noclean)
- started eclipse-clean, with a new workspace
- started eclipse-noclean with another new workspace
- stopped both
- started eclipse-clean with -clean command line option
- upgraded the plugin, (as proposed by update manager), restart => works
- closed it
- started eclipse-noclean without the -clean command line option
- upgrade the plugin (as proposed by update manager), restart => crashes
Normally you should be able to reproduce it, if not, it means that should come from my machine…
I found that about the errors I had:
http://www.eclipse.org/forums/index.php?&t=msg&th=40189
http://scala-programming-language.1934581.n4.nabble.com/scala-tools-Eclipse-fails-to-load-after-updating-plug-in-tt1982287.html
The second one you should know about :)
I was able to do that today:
- untarred 3.5.2 classic (in a dir eclipse-clean), installed scala-plugin
- made a clone (in a dir eclipse-noclean)
- started eclipse-clean, with a new workspace
- started eclipse-noclean with another new workspace
- stopped both
- started eclipse-clean with -clean command line option
- upgraded the plugin, (as proposed by update manager), restart => works
- closed it
- started eclipse-noclean without the -clean command line option
- upgrade the plugin (as proposed by update manager), restart => crashes
Normally you should be able to reproduce it, if not, it means that should come from my machine…
I found that about the errors I had:
http://www.eclipse.org/forums/index.php?&t=msg&th=40189
http://scala-programming-language.1934581.n4.nabble.com/scala-tools-Eclipse-fails-to-load-after-updating-plug-in-tt1982287.html
The second one you should know about :)
on 2010-06-17 04:25 *
By
OK, thanks, that's very helpful.
Unfortunately it probably means that we're ticking an Eclipse/Equinox Aspects bug here. I'll be bumping the version of the latter that we ship with the Scala IDE very shortly, and will investigate whether or not that fixes the problem.
Unfortunately it probably means that we're ticking an Eclipse/Equinox Aspects bug here. I'll be bumping the version of the latter that we ship with the Scala IDE very shortly, and will investigate whether or not that fixes the problem.
Updating tickets (#1000199, #1000200, #1000201, #1000204, #1000205, #1000209, #1000210, #1000211, #1000212, #1000215, #1000217, #1000218, #1000220, #1000222, #1000226, #1000227, #1000228, #1000230, #1000231, #1000232, #1000233, #1000235, #1000236, #1000237, #1000239, #1000240, #1000241, #1000242, #1000243, #1000244, #1000248, #1000249, #1000252, #1000253, #1000254, #1000255, #1000256, #1000258, #1000259, #1000032, #1000059, #1000062, #1000163, #1000197, #1000216, #1000221, #1000224, #1000121, #1000175, #1000219, #1000251, #1000069, #1000195, #1000213, #1000223, #1000006, #1000021, #1000038, #1000048, #1000051, #1000052, #1000075, #1000103, #1000109, #1000115, #1000119, #1000156, #1000186, #1000207, #1000238, #1000262, #1000263, #380, #389, #683, #1238, #1331, #1635, #1645, #1715, #1729, #1744, #1783, #1839, #1869, #1885, #1890, #1902, #1918, #1919, #1924, #1925, #1946, #1964, #1991, #2131, #2233, #2342, #2348, #2408)