Bug 158673 - Eclipse crashed when clicking on .ppt file on a remote system
Summary: Eclipse crashed when clicking on .ppt file on a remote system
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: 1.0   Edit
Assignee: Kushal Munir CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on: 161200
Blocks:
  Show dependency tree
 
Reported: 2006-09-25 19:41 EDT by sumit.sarkar CLA
Modified: 2008-08-13 13:08 EDT (History)
0 users

See Also:


Attachments
.log file (75.82 KB, text/plain)
2006-09-25 19:43 EDT, sumit.sarkar CLA
no flags Details
configuration details (36.59 KB, text/plain)
2006-09-26 13:20 EDT, sumit.sarkar CLA
no flags Details
.log file again (106.14 KB, application/octet-stream)
2006-09-27 20:18 EDT, sumit.sarkar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description sumit.sarkar CLA 2006-09-25 19:41:22 EDT
Followed all the steps in http://wiki.eclipse.org/index.php/RSE_1.0_Test_Instructions

to download the bits. Created a remote connection (HP-UX running 11.11) and was exploring one of the directory and clicked on a .ppt file. Eclipse crashed. After that Eclipse is not coming up at all! It is crashing at the time of startup.

I will attach the .log file content.

-----------Enter bugs above this line-----------
RSE 1.0 Testing round 1
installation : eclipse-platform-3.2 (M20060629-1905), cdt-3.1.0
RSE install  : update-site RSE-complete
java.runtime : Sun 1.5.0_08-b03
os.name:     : Windows XP 5.1, Service Pack 2
------------------------------------------------
systemtype   : Unix-ssh (dstore-processes)
targetos     : SUSE LINUX 10.1 (i586)
targetuname  : Linux osgiliath 2.6.16.21-0.21-default #1 Tue Aug 29 16:42:05 UTC 2006 i686 athlon i386 GNU/Linux
targetvm     : Sun Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)
------------------------------------------------
Comment 1 sumit.sarkar CLA 2006-09-25 19:43:40 EDT
Created attachment 50876 [details]
.log file
Comment 2 Martin Oberhuber CLA 2006-09-26 05:04:43 EDT
Hello Sumit,
thanks for your report. Looking at your log, I see the following:

- org.eclipse.swt.SWTError: No more handles
- java.lang.RuntimeException: Widget disposed too early!
  Both of these backtraces have no RSE components in them. Have you installed
  any additional plugins, in addition to RSE and Eclipse Platform?

- BundleException: Exception in org.eclipse.rse.ui.RSEUIPlugin.stop()
  This is a known but non-critical RSE issue.

Your log shows that you are running java.version=1.4.2_10, so the configuration information in your original report must be wrong. Please give an exact specification of your setup, following the template in your comment #0 (What Windows version, which Eclipse packages installed, which target vm).
Comment 3 sumit.sarkar CLA 2006-09-26 13:18:21 EDT
(In reply to comment #2)
> Hello Sumit,
> thanks for your report. Looking at your log, I see the following:
> 
> - org.eclipse.swt.SWTError: No more handles
> - java.lang.RuntimeException: Widget disposed too early!
>   Both of these backtraces have no RSE components in them. Have you installed
>   any additional plugins, in addition to RSE and Eclipse Platform?
> 
> - BundleException: Exception in org.eclipse.rse.ui.RSEUIPlugin.stop()
>   This is a known but non-critical RSE issue.
> 
> Your log shows that you are running java.version=1.4.2_10, so the configuration
> information in your original report must be wrong. Please give an exact
> specification of your setup, following the template in your comment #0 (What
> Windows version, which Eclipse packages installed, which target vm).
> 


Yes. You are right. I got confused about the heading "Enter bugs above this line". I should have updated the configuration info below the "Enter bugs above this line". I re-installed the eclipse 3.2 platform, cdt 3.1.0 sdk and RSE sdk. I am attaching the configuration details as a seperate file.

I have not used "dstore" yet. I was creating the remote connection by using "ssh-only". 
Comment 4 sumit.sarkar CLA 2006-09-26 13:20:40 EDT
Created attachment 50926 [details]
configuration details
Comment 5 Martin Oberhuber CLA 2006-09-27 07:43:16 EDT
I cannot reproduce the crash with a PPT file I tried.

The PPT file opens in a standard Eclipse Text editor on the dblclick operation. Open With > Default Editor, or Text Editor, does the same. Open with > System Editor opens the file in Powerpoint.

I suppose that your PPT file was special in some kind, such that it crashed the Eclipse editor by itself. 

Can you also reproduce the crash when you open the file from a normal Eclipse Project? To test this, do New > Project > General > Project, then drag & drop the ppt file into the new project, then dbl click it. If it crashes, please file a bug against Platform / Text Editor. They will want to have your ppt file I guess, so you better test with a file that you can give away.

Looking again at the excxeptions in your log, it looks like your PPT file was perhaps very large. I tried with a 236K file. Perhaps SWT ran out of handles for you because the file was too large; After quit & restart eclpise, Eclipse tries to re-open the same editor as before and the same problem happens again. Note that for problems like this, enhancement bug 117746 is open against the Platform.



For completeness, here is the correct system info:
-----------Enter bugs above this line-----------
RSE 1.0 Testing round 1
installation : eclipse-platform-3.2 (M20060629-1905), cdt-3.1.0-sdk
RSE install  : donload RSE-sdk
java.runtime : Sun 1.4.2_10-b03
os.name:     : Windows XP 5.1, Service Pack 2
------------------------------------------------
systemtype   : Unix-ssh
targetos     : HP-UX 11.11
targetuname  : 
targetvm     : 
------------------------------------------------
Comment 6 sumit.sarkar CLA 2006-09-27 20:18:30 EDT
Created attachment 51054 [details]
.log file again
Comment 7 sumit.sarkar CLA 2006-09-27 20:21:47 EDT
When the .ppt file is local, no problem. If I open it with the system editor, the file is opened using PowerPoint. But when the same file is remote, eclipse crashes again. After that crash, eclipse dies when I try to execute eclipse.exe again.  
Comment 8 Martin Oberhuber CLA 2006-09-28 05:42:30 EDT
Hm interesting, this time we get a ClassCastException.
Reopening.

java.lang.ClassCastException
	at org.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu.getLocalResource(SystemRemoteFileOpenWithMenu.java:197)
	at org.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu.getPreferredEditor(SystemRemoteFileOpenWithMenu.java:209)
	at org.eclipse.rse.files.ui.actions.SystemRemoteFileOpenWithMenu.fill(SystemRemoteFileOpenWithMenu.java:266)
	at org.eclipse.rse.files.ui.actions.SystemRemoteFileLineOpenWithMenu.fill(SystemRemoteFileLineOpenWithMenu.java:101)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:662)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:581)
Comment 9 Martin Oberhuber CLA 2006-09-28 05:43:14 EDT
Sumit, could you send us the PPT file in question for further analysis?
Comment 10 David McKnight CLA 2006-09-29 14:47:38 EDT
I've tried this but I can't reproduce this.  Martin what did you do to get the stack you've shown?
Comment 11 Martin Oberhuber CLA 2006-09-29 17:26:45 EDT
I alsou couldnt reproduce it. The stack is copied out of the .log file that Sumit attached. Sumit -- is there any chance you could give us the ppt file? Perhaps by direct private E-Mail? Our bugzilla accounts are our standard E-mail addresses you can use.
Comment 12 sumit.sarkar CLA 2006-09-29 19:25:15 EDT
I can't share the ppt file, as it has confidential data. I tried reproducing with a smaller ppt file, but was not successful. I installed the eclipse/cdt/RSE on the 3rd location to reproduce the problem. I will update you, if I can reproduce it. Eclipse does not come up in my first 2 installations. 
Comment 13 David McKnight CLA 2006-10-18 11:47:04 EDT
I'm dropping the severity and priority since this is difficult to reproduce.
Comment 14 Martin Oberhuber CLA 2006-10-18 12:15:04 EDT
Actually, as per comment 12 Sumit has an action item to try and reproduce this on another system, or with a PPT file that he can share. If he can not reproduce it by end of the week, I'd mark it as WORKSFORME.
Comment 15 Martin Oberhuber CLA 2006-10-20 17:23:09 EDT
Decreasing to severity normal / P4 since this is not reproducable.

The problem might actually be due to bug 161200: when the binary ppt file is downloaded, and opened in the Eclipse text editor instead of the system editor, SWT might run out of handles trying to open it -- but the real bug is that the text editor should not be used on the file.
Comment 16 Kushal Munir CLA 2006-10-24 18:47:47 EDT
I think this problem should be fixed now that 161200 is fixed.
Comment 17 Martin Oberhuber CLA 2008-08-13 13:08:13 EDT
[target cleanup] 1.0 RC3 was the original target milestone for this bug