Eclipse Kepler crashing frequently - eclipse

I am using eclipse kepler to develop a dynamic web project running on apache tomcat 7.
Everything was working fine initially however since last couple of days eclipse is crashing very frequently almost with in 15-20 minutes of starting it . This is the terminal output. I am using ubuntu 10.10 (maverick).
zer0cube#zer0cube-G31M:~/eide/eclipse$ ./eclipse
Warning(optionsfile.cc:22): Load: Could not open file
No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
[000:004] Warning(optionsfile.cc:22): Load: Could not open file
[000:004] Warning(optionsfile.cc:22): Load: Could not open file
[000:004] No bp log location saved, using default.
[000:004] Browser XEmbed support present: 1
[000:004] Browser toolkit is Gtk2.
[000:004] Using Gtk2 toolkit
Segmentation fault

You are getting segmentation fault.
A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).
Try forcing mozilla, I believe webkit-gtk is causing the segfault.
./eclipse -vmargs -Dorg.eclipse.swt.browser.DefaultType=mozilla

Related

Eclipse crashes when coding in java. Exit code=-1073740771

I've downloaded the Android ADT bundle so that I can learn to code Android applications. I also downloaded every package on the SDK manager.
Unfortunately, when I try to code anything in Java Eclipse crashes upon opening content assist.
Basically, when I type the dot operator the content assist box opens and suggests methods as per the norm. However, when I type anything after this point the content assist box tries to open the accompanying window with API information about the method I'm trying to invoke. At this point Eclipse crashes, without fully loading the API window.
If I don't specify the -vm argument in the eclipse.ini file the windows error window says that 'Java(TM) platform SE binary has stopped working' and gives me an error window afterwards as follows: http://i.imgur.com/7bwaB52.png
If I do specify the -vm argument(and I'm not sure I'm doing this correctly) the windows error window say that 'eclipse.exe has stopped working' and does not give any more information.
Having tried several things and having looked everywhere I'm stumped.
Windows Update KB4463318 has solved this issue.

Eclipse : Whether to select Local Or Shared File during Remote Debugging

I have made some code changes and deployed the code to Jetty Server which is located Remotely .
Accessed the application through browser and I am trying to debug a Application .
Please tell me whether i need to select the Local File Or Shared File from the Eclipse Debug Configurations .
Please see the screen shot here .
The option shown in your screenshot will not help you automatically get code deployed to your remote Jetty.
The option simply allows you to Share your launch configuration (Remote Java Application - ManageWatchlistCall) in your eclipse workspace. This will allow you to checkin the launch configuration in a versioning control system so your colleagues automatically get the sme Remote Java Application launch configuration.
in order to get new code to your remote server, there are only 2 options :
Redeploy your application on the remote server.
Hotdeploy pieces of code to the remote supported (if the server supports it)
Use Hotswap Bug Fixing (works for small fixes) (*)
(*) If you are running Java Virtual Machine (JVM) V1.4 or higher,
Eclipse supports a feature called Hotswap Bug Fixing (not available in
JVM V1.3 or lower). It allows the changing of source code during a
debugger session, which is better than exiting the application,
changing the code, recompiling, then starting another debugging
session. To use this function, simply change the code in the editor
and resume debugging.

FB4Linux―debugger disconnects after a while

I am running ubuntu 12.04 64 bit, I have set up FB4Linux (FlashBuilder for Linux) and installed the »flash-installer« installer plugin via »apt-get«. I downloaded the latest version of the plugin-debugger from adobe and followed the install instructions from the included README.txt file. Running eclipse (Version: 3.7.2, Build id: I20110613-1736), creating a new as3 project works, build works, everything fine, I can start the debugger and step through the code BUT after a while the debugger just disconnects and stops. No error, no crashes, debug session just over.
Any Ideas?
.log
about:plugins:
Flash - Version: 11.2 r202
Shockwave Flash 11.2 r202
I think , this is happenning more fequently due the enhanced breakpoint listener support in eclipse.When a breakpoint is removed, it is trying to notify its "breakpoint specific" listeners, which were stored in the breakpoint. Of course, this will not work since the underlying marker has been deleted. but things will happen after removing break point. so one way to resolve this problem is to try to un-select
Window > Preferences > Java > Debug : Suspend execution on uncaught exceptions
may this will help you!!
The solution to this issue occurred as side effect after I applied the changes from the answer of this question. When I tried to set the compiler options to target version 11.2, which is actually installed on my system errors occurred because their were files missing in the sdk folder (which are the described changes) and I could only develop for version 11.1. Kind of wired but the update of the sdk made the debugger run stable.

Eclipse for php on Mac OSX 10.5: "Animation Start" error

I am having a terrible time getting Eclipse with php/pdt installed on my older 2006 MacBook running 10.5.8.
I have MAMP installed and running php 5.3.5. That works fine. The zend debugger information shows up correctly in phpinfo() and I have dummy.php in the correct location. 127.0.0.1 is allowed in the config file.
I have eclipse itself installed. I also have tried "Eclipse for php Developers" v3.0.2.
Both installations return errors when I try and run or debug a script. I am trying to use Zend Debugger.
The error is:
"Animation Start has encountered a problem". An Internal error has occurred.
An internal error has occurred.
java.lang.NullPointerException
I have the php executable set as
/Applications/MAMP/bin/php5.3/bin/php (CLI)
Suggestions?
The problem with the "Animation Start has encountered a problem" error dialog doesn't have to do with the php scripts but rather is just an UI quirk/error that is irritating and is likely because of a mis-configured dock:icon property on the eclipse.ini (or whatever eclipse product the zend product uses).
Find the root executable that launches eclipse-based product.
Open up the application executable (.app) package contents
Go to the Contents/MacOS/ folder
Edit the ini file
Make sure that you have this line correctly specificed:
-Xdock:icon=../Resources/<NameofIconFile>.icns
Then restart eclipse/zend
Now you should be able to invoke scripts and not see that invalid error dialog.
You can uncheck "launch in background" in the "common" tab of debug/run configuration.
Ok, I wanted to simply comment on my "success", following gamerson's answer with a slight adaptation... But it seems like I don't have enough "rep" to do that yet, so here goes ;-)
I had this annoying issue for a little while, and also had a second copy of eclipse for java installed on my macbook. It seems like my eclipse pdt did not contain any .icns files (I did a full recursive search of the dir with "find ."... So I thought, I'll copy it from that other eclipse app I have. And I made sure the ini config file (mentioned by gamerson) had the correct path. And voila! No more of that annoying error popup in eclipse, and also the dock where I had a link to the app now has a nice icon (which before was some ugly "generic" icon with pencils and paper, that all makes sense now). Only downside is that I now have two similar dock icons (the PDT one and the Java one lol) but that is a totally minor annoyance. I guess I could "hack" my dock and give it a funky icon while at it ;-)
Thanks internets!

Slow profiling with Eclipse TPTP

I've developing an application in Eclipse 3.6 and am trying to get some simple execution profiling statistics with TPTP (basically just the execution time analysis).
However, the profiling is running so slowing that it's barely possible to get a successful run, Eclipse sometimes crashes with OutOfMemoryErrors and I highly doubt that any of the execution time statistics are anything close to what I normally get. I guess it's running about 100th of normal speed, using 100% of a CPU.
Any ideas as to what could be causing this and how I could fix it?
System is Core i7 980 running Windows 7 64-bit, JVM is Sun JDK 1.6.20 in case that is relevant
Did you try with this eclipse.ini file for some optimization and hopefully and better runtime experience?.
Note: keep the Java1.6u20, or make sure ti use the 1.6u21 build 7 (not build 6).
That way, you will ensure the --launcher.XXMaxPermSize parameter (that you should set to an high value in order to facilitate your session) will be correctly recognized.
please try this
following is the instructions to switch built in profiling database with newer version
close your eclipse ide
browse to your-workspace-folder/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2
copy all files under this folder to another location as a backup
and delete all files with .db extension
download latest version of H2 database for All Platforms zip from this link
goto your-eclipse-folder\plugins\ and find the file something like org.h2_1.1.117.v201105142352.jar and copy it to some place as a backup
extract the zip file downloaded on step 5
you will find the file h2-1.3.170.jar under h2\bin\ folder
rename h2-1.3.170.jar to the file name from the step 6 which is org.h2_1.1.117.v201105142352.jar
after this you can put the file renamed in step 9 into the folder your-eclipse-folder\plugins\
you can try to start your eclipse
please let me know if this makes your eclipse run faster