Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321322

Summary: Eclipse crashes, destroys unsaved files.
Product: [Eclipse Project] Platform Reporter: Jacob Hansson <jacob>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: bokowski, daniel_megert, francisu, hsoliwal, prakash, remy.suen
Version: 3.6Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot of the ruined file none

Description Jacob Hansson CLA 2010-07-30 06:20:07 EDT
Build Identifier: 20100617-1415

When using helios on Ubuntu 10.04, while editing files, something triggers a blank screen (white with thin black vertical lines). I can't find a way to get out of it except rebooting the computer. There is no data in syslog or [workspace]/.metadata/.log on any sort of crash. This does not happen when eclipse is not running, and it has so far only happened while editing "*.css" or "*.js" files in the java perspective.

I don't know if it's eclipse that causes the crash, but I do know that if there is an opened, unsaved, file, it will be destroyed. Opening the file it will contain stuff like:

7g;u�%<��aU���7�R�j߯�4�����乹���1Vg�}��x��\<�t��kv�Y��8 �C$

Here is the last stuff in the log:

!SESSION 2010-07-30 11:58:31.361 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.core.resources 2 10035 2010-07-30 11:58:41.408
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.jface 2 0 2010-07-30 11:59:08.949
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-07-30 11:59:08.949
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
	ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
		Open a type in a Java editor,
		Category(org.eclipse.ui.category.navigate,Navigate,null,true),
		,
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
	ParameterizedCommand(Command(com.python.pydev.analysis.actions.pyGlobalsBrowserWorkbench,Python Show Class Browser,
		Show Class Browser,
		Category(org.python.pydev.ui.category.source,Pydev - Editor,Pydev editor category,true),
		,
		,,true),null),
	org.eclipse.ui.defaultAcceleratorConfiguration,
	org.eclipse.ui.contexts.window,,,system)


Reproducible: Sometimes

Steps to Reproduce:
Can't reproduce. Happens about once per day (although three times so far today).
Comment 1 Jacob Hansson CLA 2010-07-30 06:21:22 EDT
Created attachment 175555 [details]
Screenshot of the ruined file
Comment 2 Prakash Rangaraj CLA 2010-07-30 06:25:18 EDT
Sounds like Bug# 303372. By any chance, were you using content assist when it crashed?
Comment 3 Jacob Hansson CLA 2010-07-30 09:12:40 EDT
(In reply to comment #2)
> Sounds like Bug# 303372. By any chance, were you using content assist when it
> crashed?

I honestly can't say, it's one of those things that "just happened". It was too unexpected for me to be aware of what I was doing right as it occurred.

I do believe though, that the crash has something to do with ubuntu and the UI, because it only seems to occur when I am using dual screens. I can't vouch for that, but I've switched to using one screen since I filed the report, and have not had any trouble so far.
Comment 4 Jacob Hansson CLA 2010-07-30 09:18:15 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > Sounds like Bug# 303372. By any chance, were you using content assist when it
> > crashed?
> 
> I honestly can't say, it's one of those things that "just happened". It was too
> unexpected for me to be aware of what I was doing right as it occurred.
> 
> I do believe though, that the crash has something to do with ubuntu and the UI,
> because it only seems to occur when I am using dual screens. I can't vouch for
> that, but I've switched to using one screen since I filed the report, and have
> not had any trouble so far.

As far as bug 303372 goes, I had that problem a few weeks ago when updating to helios, but was able to resolve the immediate issue as defined in that bug report. The problem then was that eclipse simply closed down, the problem with the screen going blank was not there, as it is now.

I'm pretty sure I wasn't using content assist, I think I was just about to save (using CTRL + S) when it happened the last time. Previous times might have been the same, but I can't swear on it.
Comment 5 Boris Bokowski CLA 2010-07-30 17:19:35 EDT
(In reply to comment #0)
> I don't know if it's eclipse that causes the crash, but I do know that if there
> is an opened, unsaved, file, it will be destroyed. Opening the file it will
> contain stuff like:
> 
> 7g;u�%<��aU���7�R�j߯�4�����乹���1Vg�}��x��\<�t��kv�Y��8
> �C$

This sounds scary. Unfortunately, we don't have enough information to track this down. Dani, have you seen a similar problem?

Jacob, can you get the previous state of the file from the local history? (Replace With>History, make sure the History view shows local history, it's one of the view toolbar buttons)
Comment 6 Boris Bokowski CLA 2010-07-30 17:20:08 EDT
(In reply to comment #5)
> This sounds scary. Unfortunately, we don't have enough information to track
> this down. Dani, have you seen a similar problem?

Forgot to add Dani to the cc list...
Comment 7 Jacob Hansson CLA 2010-07-31 03:35:57 EDT
(In reply to comment #5)
> (In reply to comment #0)
> > I don't know if it's eclipse that causes the crash, but I do know that if there
> > is an opened, unsaved, file, it will be destroyed. Opening the file it will
> > contain stuff like:
> > 
> > 7g;u�%<��aU���7�R�j߯�4�����乹���1Vg�}��x��\<�t��kv�Y��8
> > �C$
> 
> This sounds scary. Unfortunately, we don't have enough information to track
> this down. Dani, have you seen a similar problem?
> 
> Jacob, can you get the previous state of the file from the local history?
> (Replace With>History, make sure the History view shows local history, it's one
> of the view toolbar buttons)

Yes I can :) That's great at least! I guess this would be the state up to the last save, perhaps the save before the last.

I've checked the kernel log now also, and can't find a trace of anything goind wrong. It seems the computer doesn't actually crash, it's just the graphics that die. And then either whatever caused the graphics crash will screw up the file, or eclipse will be stuck in some state where the file is messed up when I kill the computer.
Comment 8 Dani Megert CLA 2010-08-02 04:59:17 EDT
>When using helios on Ubuntu 10.04, while editing files, something triggers a
>blank screen (white with thin black vertical lines). I can't find a way to get
>out of it except rebooting the computer.

- Do you work directly on your computer or are you using VNC or something similar?

- When this happens, could you try to log into your box from another computer? This could allow you to take some VM dumps.

- Does the file also look corrupted when looking at it with non-Eclipse editor?

- Does the corrupted file have a new timestamp? If so, it is most likely happening during save as you already mentioned in comment 4.
Comment 9 Jacob Hansson CLA 2010-08-02 06:57:22 EDT
(In reply to comment #8)
> >When using helios on Ubuntu 10.04, while editing files, something triggers a
> >blank screen (white with thin black vertical lines). I can't find a way to get
> >out of it except rebooting the computer.
> 
> - Do you work directly on your computer or are you using VNC or something
> similar?

I'm working directly on the computer.

> 
> - When this happens, could you try to log into your box from another computer?
> This could allow you to take some VM dumps.
> 

Yes, I'll keep an sshd running and will attempt to log in if this happens again. Is there something particular I should look at or do?

> - Does the file also look corrupted when looking at it with non-Eclipse editor?
> 

I didn't check. I'll make sure to check next time this occurs.

> - Does the corrupted file have a new timestamp? If so, it is most likely
> happening during save as you already mentioned in comment 4.

Same as above, I'll check.


On a sidenote - the project I am working on is using HTML canvas to draw graphs that are updated at 3-second intervals. I switched from one graph implementation to another this saturday, and so far the problem has not occurred since. Could be coincidental though.
Comment 10 Dani Megert CLA 2010-08-02 07:04:42 EDT
>Yes, I'll keep an sshd running and will attempt to log in if this happens
>again. Is there something particular I should look at or do?
Try to get a VM dump, so that we see where it's hanging.

>On a sidenote - the project I am working on is using HTML canvas to draw graphs
>that are updated at 3-second intervals. I switched from one graph
Who does the update? Does that include "save"?

>while editing "*.css" or "*.js" files in the java perspective.
Which editor(s) do you use to do that?
Comment 11 Jacob Hansson CLA 2010-08-02 07:18:44 EDT
(In reply to comment #10)
> >Yes, I'll keep an sshd running and will attempt to log in if this happens
> >again. Is there something particular I should look at or do?
> Try to get a VM dump, so that we see where it's hanging.
> 

Will do.

> >On a sidenote - the project I am working on is using HTML canvas to draw graphs
> >that are updated at 3-second intervals. I switched from one graph
> Who does the update? Does that include "save"?
> 

It's done in a web browser unrelated to eclipse, as part of a web app project. It does not interact with eclipse in any way (that I know of). I had a thought that it might be related somehow since it was drawing graphics, and the main symptom (the white screen) is very reminiscent of some type of graphics failure.

> >while editing "*.css" or "*.js" files in the java perspective.
> Which editor(s) do you use to do that?

This is done in the "Java" perspective. There is no editor associated with the .css suffix. The .js suffix has an editor named "JavaScript Editor" associated with it.
Comment 12 Dani Megert CLA 2010-08-02 07:23:40 EDT
>There is no editor associated with the .css suffix.
Which editor has the bullet when using 'Open With' from the context menu?

> and the main
>symptom (the white screen) is very reminiscent of some type of graphics
>failure.
But that should not cause corrupted files.
Comment 13 Jacob Hansson CLA 2010-08-02 08:24:30 EDT
(In reply to comment #12)
> >There is no editor associated with the .css suffix.
> Which editor has the bullet when using 'Open With' from the context menu?
> 

"CSS Editor"

> > and the main
> >symptom (the white screen) is very reminiscent of some type of graphics
> >failure.
> But that should not cause corrupted files.

For sure. Ockhams razor would imply that the relation is coincidental.
Comment 14 Francis Upton IV CLA 2010-11-02 03:06:06 EDT
Jacob, has kept happening? Not sure what to do with this without more information.
Comment 15 Hitesh CLA 2010-11-04 04:03:20 EDT
(In reply to comment #14)
> Jacob, has kept happening? Not sure what to do with this without more
> information.

Wonder if Mozilla is being used... I guess ATF uses Mozilla and JavaXPCom for glue.

IMHO, Bugs like this one should be closed as the reporter has not responded back in months. If it does exist and is severe enough, there is a good chance someone will open a new bug or reopen this one. I suggest WORKSFORME or NOT_ECLIPSE.
Comment 16 Dani Megert CLA 2010-11-12 05:58:36 EST
.