Recovery After JVM Crash?

Hi,

IDEA (7.0.3 EA build #7684) just died on me owing to a JVM crash:


#

  1. An unexpected error has been detected by Java Runtime Environment:

#

  1. SIGSEGV (0xb) at pc=0x0626d192, pid=510, tid=1637804976

#

  1. Java VM: Java HotSpot(TM) Server VM (1.6.0_03-b05 mixed mode)

  2. Problematic frame:

  3. V

#

  1. An error report file with more information is saved as hs_err_pid510.log

#

  1. If you would like to submit a bug report, please visit:

  2. http://java.sun.com/webapps/bugreport/crash.jsp

#


I had done a good bit of work since the previous save. Is there any way to get it back? I have not restarted IDEA since this crash happened.


Randall Schulz

6 comments
Comment actions Permalink

If changes were really unsaved then I think they are in fact lost.
However since Idea (by default) saves on each compilation and on each loose of focus chances are good you have a quite recent version.

If you want to be sure that restarting of Idea does not do any more harm, then make a backup of Idea's system folder (look for the Idea work folder in your home directory, e.g. on Windows right-click on "Start" button and select "Explorer").

0
Comment actions Permalink

Stephen,

Thanks for the information.

Since I only compile within IDEA when I want to run the debugger (instead using ant on the command line for routine compilation), I hadn't done that. Naturally, I switch away from IDEA frequently while working, but if that made a record of the changes made up to that point, they were not visible in the local history view.

How would one access the "saves" that IDEA makes when it loses focus?

Naturally, I could not wait until your answer appeared, so eventually I just started IDEA up and rewrote the code that I'd lost.

Randall Schulz

0
Comment actions Permalink

Randall Schulz wrote:

Stephen,

Thanks for the information.

Since I only compile within IDEA when I want to run the debugger (instead using ant on the command line for routine compilation), I hadn't done that. Naturally, I switch away from IDEA frequently while working, but if that made a record of the changes made up to that point, they were not visible in the local history view.

How would one access the "saves" that IDEA makes when it loses focus?

Naturally, I could not wait until your answer appeared, so eventually I just started IDEA up and rewrote the code that I'd lost.

Randall Schulz

If that's the way you work, check your IDE Settings|General, and make
sure "Save Files *" are checked... if IDEA had saved you would have
seen the files as you left them (or close to it).

N.

0
Comment actions Permalink

Nathan,

I guess this is a tough trade-off for me to make. I don't generally like auto-saving of that sort.

JVM crashes are pretty rare, and I'm not sure I can remember IDEA itself failing badly enough to cause loss of data, so I may just keep things they way they are.

When this happened, I was running JDK 1.6.0_03. Now I've upgraded to 1.6.0_04.


Randall Schulz

0
Comment actions Permalink

Randall Schulz wrote:

Nathan,

I guess this is a tough trade-off for me to make. I don't generally
like auto-saving of that sort.

JVM crashes are pretty rare, and I'm not sure I can remember IDEA
itself failing badly enough to cause loss of data, so I may just keep
things they way they are.

When this happened, I was running JDK 1.6.0_03. Now I've upgraded to
1.6.0_04.


Randall Schulz

May I ask what the issue with autosaving is? What do you gain by not
doing it, when you can lose so much?

N.

0
Comment actions Permalink

It's simply a matter of control. I want to be the one who decides when files get saved. I don't want files saved when they're not compilable, e.g.


RRS

0

Please sign in to leave a comment.