Bug 188317 - Opening a FileDialog core dumps on Vista
Summary: Opening a FileDialog core dumps on Vista
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 188327 199684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-22 10:10 EDT by Joseph Remes CLA
Modified: 2018-07-19 01:57 EDT (History)
10 users (show)

See Also:


Attachments
.log file (1.62 KB, text/plain)
2007-05-22 11:41 EDT, Joseph Remes CLA
no flags Details
JVM core dump? (17.12 KB, text/plain)
2007-05-22 11:48 EDT, Joseph Remes CLA
no flags Details
Another JVM core dump (17.56 KB, text/plain)
2007-05-22 12:01 EDT, Joseph Remes CLA
no flags Details
SWT only example (2.82 KB, application/octet-stream)
2007-05-22 13:42 EDT, Tod Creasey CLA
no flags Details
Another JVM dump (17.61 KB, text/plain)
2007-05-22 15:24 EDT, Joseph Remes CLA
no flags Details
replacement dll (300.00 KB, application/x-msdownload)
2007-05-24 17:37 EDT, Kevin Barnes CLA
no flags Details
JVM dump (17.66 KB, application/octet-stream)
2007-05-24 18:00 EDT, Joseph Remes CLA
no flags Details
new dll (300.00 KB, application/octet-stream)
2007-05-25 14:45 EDT, Felipe Heidrich CLA
no flags Details
screenshot (33.71 KB, image/png)
2007-05-25 15:39 EDT, Felipe Heidrich CLA
no flags Details
Java class demonstrating the problem (1.15 KB, text/plain)
2007-06-07 12:18 EDT, Ed Snible CLA
no flags Details
.log (102 bytes, application/octet-stream)
2018-07-19 01:57 EDT, mohan raj CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Remes CLA 2007-05-22 10:10:06 EDT
This is repeatable, at least it is for me.
Right click on a Java project and select export.
Select General/Archive File, then click Next.
When the Export dialog comes up, click the Browse button.
Eclipse vanishes in a puff of smoke. No error message, nothing. It just stops and disappears instantly.

This is with 3.3RC1

It does not have to be a Java project. It does the same thing for a C project. I just happened to encounter it 1st with a Java project.
Comment 1 Tod Creasey CLA 2007-05-22 11:33:21 EDT
Do you have a .log file or a core dump?
Comment 2 Joseph Remes CLA 2007-05-22 11:41:03 EDT
Created attachment 68141 [details]
.log file

I stopped Eclipse, deleted the .log file, started Eclipse and immediately caused the crash.
Comment 3 Joseph Remes CLA 2007-05-22 11:48:00 EDT
Created attachment 68146 [details]
JVM core dump?

This appears to be relevant to the crash.
Comment 4 Joseph Remes CLA 2007-05-22 12:01:18 EDT
Created attachment 68150 [details]
Another JVM core dump

I updated my JVM to 1.6 Update 1, no change in the crash behavior.
Note that I am running as an Admninistrator, not a Standard User.
Comment 5 Tod Creasey CLA 2007-05-22 13:34:42 EDT
Here is the relevant code in the core dump

j  org.eclipse.swt.internal.win32.OS.GetSaveFileNameW(Lorg/eclipse/swt/internal/win32/OPENFILENAME;)Z+0
j  org.eclipse.swt.internal.win32.OS.GetSaveFileName(Lorg/eclipse/swt/internal/win32/OPENFILENAME;)Z+7
j  org.eclipse.swt.widgets.FileDialog.open()Ljava/lang/String;+726

Which version of Vista are you using with which virtual machine? Vista Ultimate with J9 is working for me.
Comment 6 Joseph Remes CLA 2007-05-22 13:37:59 EDT
I am on Vista Business and the JVM is Sun's J2SE6
Comment 7 Tod Creasey CLA 2007-05-22 13:42:52 EDT
Created attachment 68176 [details]
SWT only example

Here is an SWT only example. Joseph can you try this on RC1?
Comment 8 Steve Northover CLA 2007-05-22 13:54:16 EDT
The ControlExample does not crash on my machine.
Comment 9 Steve Northover CLA 2007-05-22 13:56:14 EDT
Tod's example code does not crash on my machine.
Comment 10 Steve Northover CLA 2007-05-22 14:00:50 EDT
The steps don't crash for me either.  Can you confirm that the FileDialog works in other applications like Notepad?

CAR and Kevin, were there other crashes in the FileDialog on XP related to 3rd party software running?
Comment 11 Joseph Remes CLA 2007-05-22 14:18:17 EDT
I ran your FileDialogTest and it did not crash. It worked perfectly.
???
Comment 12 Carolyn MacLeod CLA 2007-05-22 14:21:04 EDT
Looking at the dll's that are loaded, I see one called TCPSPYLSP.DLL.
This appears to beong to a program called TCP Spy, which appears to be some sort of spyware detector? (just at a quick google glance <g>)
Would you be able to temporarily disable/unload this program and try running again? (or maybe just temporarily rename the dll, if you don't want to unload).

The reason I am asking you to try this is because we had a problem a while back with an application called Synergy from Telelogic. If you are curious, see bug 87798. Telelogic had a bug in their code that crashed other people's file browsers, and eclipse was hitting it. Perhaps you have tripped over something similar.
Comment 13 Carolyn MacLeod CLA 2007-05-22 14:24:18 EDT
I mean, try repeating your steps in the Export dialog with the TCP Spy turned off.
Comment 14 Joseph Remes CLA 2007-05-22 14:26:51 EDT
This is weird. I have TCPSpy (from www.westbrooksoftware.com, very usefull!) installed on my machine but I have not used it for several days. My TaskManager does not show it to be active.
I cannot see it under Applications, Processes or Services. 
Where did you see it?
Comment 15 Joseph Remes CLA 2007-05-22 14:28:21 EDT
I see it in the JVM core dump. I'll remove the dll (or rename it temporarily), reboot, and try again.
Comment 16 Joseph Remes CLA 2007-05-22 15:24:59 EDT
Created attachment 68196 [details]
Another JVM dump

I had to uninstall TCPSpy. I also, just for good measure, uninstalled VMWare version 6 as it installs virtual network devices and I thought that just maybe they were part of the problem.
It still failed. I attached the JVM dump.
Comment 17 Kevin Barnes CLA 2007-05-22 15:35:47 EDT
Jospeph, are you running Eclipse on a network drive or locally?
Comment 18 Joseph Remes CLA 2007-05-22 15:41:25 EDT
Completely local.
(I work out of my house.)
Comment 19 Carolyn MacLeod CLA 2007-05-22 16:03:04 EDT
Re comment 16, thanks for trying. Sorry about the extra work - I hope you can easily get TCP Spy installed again. It was worth a try, though, given that it is the type of thing that can go wrong.
Comment 20 Joseph Remes CLA 2007-05-22 16:07:21 EDT
No problem. I well understand how difficult (and maybe even impossible) some bugs are to find.
I have since found an odd mix of failure and success trying to export using other types. If I try to export to Java/Javadoc, the browse button works. But if I try Java/Jar it fails. Every time!
Comment 21 Joseph Remes CLA 2007-05-22 16:09:29 EDT
Now this should be interesting. I just went back to 3.3M7 and it does not fail!
So, at least for me, this is brand new with RC1.
Comment 22 Tod Creasey CLA 2007-05-23 07:51:55 EDT
*** Bug 188327 has been marked as a duplicate of this bug. ***
Comment 23 Carolyn MacLeod CLA 2007-05-23 11:44:47 EDT
Re comment 21: The SWT FileDialog class has not changed since September 2006, and it's pretty much a stand-alone class. Tod, has the method of calling the FileDialog in the "Export to Java/Jar" case changed recently (between M7 and RC1)?

Joe, please note: the FileDialog class did change *after* RC1. Are you using RC1 when you see the failure, or perhaps did you take SWT from HEAD since then?
Comment 24 Joseph Remes CLA 2007-05-23 11:45:45 EDT
I am using plain jane stock RC1.
Comment 25 Tod Creasey CLA 2007-05-23 11:59:20 EDT
I can't speak for export to Jar - it is provided by JDT
Comment 26 Felipe Heidrich CLA 2007-05-23 15:03:25 EDT
works for me too.
What VM are you running ?
In the wizard is the text field next to 'To archive file:' empty or do you have something in there ?
Comment 27 Joseph Remes CLA 2007-05-23 15:22:24 EDT
I am using Sun's J2SE6 (build 1.6.0_01-b06)
I have tried it both ways, with and without any text in the file name box. It still fails consistently for me either way.

I just now tried export to General/File System and it did NOT fail.
Comment 28 Tod Creasey CLA 2007-05-23 15:56:04 EDT
i am using the same VM on Vista Ultimate with no problem.

Jospeh does this happen with a 1.5 VM?
Comment 29 Joseph Remes CLA 2007-05-23 16:10:51 EDT
I'll give J2SE5 a try. It will take a while.
Comment 30 Carolyn MacLeod CLA 2007-05-23 16:34:38 EDT
Joe is using Vista Business and Sun's J2SE6 VM.

Kevin or Felipe or Steve - does any of you have Vista Business edition? If so, can you get the 1.6 VM and try Exporting to Java/Jar and see if you crash?
Comment 31 Kevin Barnes CLA 2007-05-23 16:58:51 EDT
I'm running Ultimate with the 1.6 VM and I have never crashed.
Comment 32 Joseph Remes CLA 2007-05-23 17:42:53 EDT
This IS interesting. It does NOT break with Sun's J2SE5.
So it looks like something is a bit hinky with J2SE6??
Comment 33 Joseph Remes CLA 2007-05-23 17:48:10 EDT
In case it is relevant, I am running the 32-bit Vista Business on a Core 2 Duo E6600 CPU with 4GB of ram.
Comment 34 Steve Northover CLA 2007-05-23 19:13:39 EDT
The next thing to do is check the C code to see whether we are passing garbage to GetOpenFileNameW().  The obvious thing that comes to mind is that the OPENFILENAME struct is stack allocated.

How about we hack the C code to malloc() and zero it and do a bunch of prints?  Does that crash?

How about hacking the C code to not use it at all (ie. do everything in C)?  Does that crash?

Since it does not crash on your machine, Kevin will look into building you DLL to try tomorrow.
Comment 35 Martin Aeschlimann CLA 2007-05-24 03:00:58 EDT
There hasn't been any changes to 'Export to JAR' recently (some changes unrelated to the UI were done in 3.3 M6).
Comment 36 Kevin Barnes CLA 2007-05-24 17:37:16 EDT
Created attachment 68682 [details]
replacement dll

Please replace your dll with the attached dll and see if you still crash.
Only change is to move memory from stack to heap before opening the save file dialog

This dll's implementation of GetSaveFileNameW:


#ifndef NO_GetSaveFileNameW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetSaveFileNameW)
	(JNIEnv *env, jclass that, jobject arg0)
{
	OPENFILENAME _arg0, *lparg0=NULL;
	jboolean rc = 0;
	HANDLE hHeap;
	LPVOID pt;
	OS_NATIVE_ENTER(env, that, GetSaveFileNameW_FUNC);
	if (arg0) if ((lparg0 = getOPENFILENAMEFields(env, arg0, &_arg0)) == NULL) goto fail;
	hHeap = GetProcessHeap ();
	pt = HeapAlloc (hHeap, HEAP_ZERO_MEMORY, sizeof(OPENFILENAME));
	MoveMemory (pt, &_arg0, sizeof(OPENFILENAME));
	//rc = (jboolean)GetSaveFileNameW((LPOPENFILENAMEW)lparg0);
	rc = (jboolean)GetSaveFileNameW((LPOPENFILENAMEW)pt);
	MoveMemory (&_arg0, pt, sizeof(OPENFILENAME));
	HeapFree (hHeap, 0, pt);
fail:
	if (arg0 && lparg0) setOPENFILENAMEFields(env, arg0, lparg0);
	OS_NATIVE_EXIT(env, that, GetSaveFileNameW_FUNC);
	return rc;
}
#endif
Comment 37 Joseph Remes CLA 2007-05-24 17:59:17 EDT
I found that dll in \configuration\org.eclipse.osgi\bundles\124\1\.cp
Is that right?
Anyway, I replaced it with the one that was attached and, sorry to say, it still failed.
Comment 38 Joseph Remes CLA 2007-05-24 18:00:09 EDT
Created attachment 68685 [details]
JVM dump

Here is the JVM dump from that last test with the alternate swt-win32-3344.dll
Comment 39 Steve Northover CLA 2007-05-25 08:01:14 EDT
Felipe, let's make a version of GetSaveFileNameW() that does not use the argument at all and just makes the operating system call.  We need to put a print or something to ensure that Joseph is running it.

NOTE: The simple code that Tod provided works, right?  We need to determine what flags are being passed to Windows in the case that fails and change Tod's simple code to use them.  Does that crash?
Comment 40 Felipe Heidrich CLA 2007-05-25 14:45:11 EDT
Created attachment 68810 [details]
new dll

try this one. if the dll is gets loaded propertly you should see a dummy messge box comming up right before the save file dialog.
Here is the code:

#ifndef NO_GetSaveFileNameW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetSaveFileNameW)
	(JNIEnv *env, jclass that, jobject arg0)
{

	OPENFILENAMEW Ofn={0};
	TCHAR szFile[MAX_PATH]="";
	MessageBoxW(NULL, L"test dll on", L"test dll on", MB_OK | MB_ICONINFORMATION);
	Ofn.lStructSize = sizeof (OPENFILENAMEW);
	Ofn.lpstrFile= szFile;
	Ofn.nMaxFile = sizeof(szFile)/ sizeof(*szFile); 
	Ofn.Flags = OFN_SHOWHELP | OFN_OVERWRITEPROMPT; 
	return GetSaveFileNameW((LPOPENFILENAMEW)&Ofn);
	
//	OPENFILENAME _arg0, *lparg0=NULL;
//	jboolean rc = 0;
//	OS_NATIVE_ENTER(env, that, GetSaveFileNameW_FUNC);
//	if (arg0) if ((lparg0 = getOPENFILENAMEFields(env, arg0, &_arg0)) == NULL) goto fail;
//	rc = (jboolean)GetSaveFileNameW((LPOPENFILENAMEW)lparg0);
//fail:
//	if (arg0 && lparg0) setOPENFILENAMEFields(env, arg0, lparg0);
//	OS_NATIVE_EXIT(env, that, GetSaveFileNameW_FUNC);
//	return rc;
}
#endif

note: i forced the all the calls to be unicode.
note: the return of the dialog will be ignored. We just want to know if it crashes or not.
Comment 41 Joseph Remes CLA 2007-05-25 15:05:46 EDT
This is painfully strange. It crashed and I did not see the test dialog.
I am pretty sure that Eclipse is using the dll file that you sent me because I cannot delete it while Eclipse is running.
Does this mean it is crashing before it gets to the C code?
Comment 42 Steve Northover CLA 2007-05-25 15:11:35 EDT
1) Get SWT from HEAD (see http://www.eclipse.org/swt/cvs.php).
2) Debug Eclipse from within Eclipse.
3) Put a break point in FileDialog.open()
4) Step right up to the call to GetSaveFileName()
5) Do you crash when you step into it?
Comment 43 Joseph Remes CLA 2007-05-25 15:13:12 EDT
It will take me a while to do this.
Comment 44 Felipe Heidrich CLA 2007-05-25 15:39:14 EDT
Created attachment 68822 [details]
screenshot

If you run my dll you will see the little dialog as shown the screenshot.
Comment 45 Joseph Remes CLA 2007-05-29 10:22:08 EDT
Running with your dll, I am not seeing the test dialog. Very odd. 
Also very odd, I loaded SWT into my Eclipse workspace and ran it as an 'Eclipse Application' using the workspace SWT instead of the installation SWT. It did not fail!
I realize that this is making no sense. As a developer I have faced bugs like this myself and I understand how frustrating they can be when you cannot reproduce them and the evidence is slippery and contradictory.

I can't spend much time on this for the next few days as I have a project to complete. I'll just have to work around the problem.
Comment 46 Felipe Heidrich CLA 2007-05-29 12:55:44 EDT
> Running with your dll, I am not seeing the test dialog. Very odd. 

Then you are not testing our code (ie. you are running with the old code) and this means that any conclusions we came to using the DLL that Kevin sent you are suspect.  Do you agree?

Please go inside the plugin folder and replace the DLL inside the SWT jar.  NOTE:  Make a copy first!  Then run Eclipse with -clean.  You could also try deleting (or renaming) the DLL in the OSGi folder to make sure that Eclipse is picking up our hacked DLL from the JAR.
Comment 47 Joseph Remes CLA 2007-05-29 12:58:10 EDT
Aha! I did not know that I had to replace the dll inside the jar.
Please see comment #37, I guess that was not the right one?
Comment 48 Felipe Heidrich CLA 2007-05-29 14:33:30 EDT
(In reply to comment #47)
> Aha! I did not know that I had to replace the dll inside the jar.
> Please see comment #37, I guess that was not the right one?

I'm not sure what OSGi does, I think the first time you run they extract the DLL from the jar and they place in a folder for some reason (?).
The name of the folder (the numerical part) is different from instalation to instalation.
Try to delete the DLL in the OSGi folder and run with -clean, that should force them to load the DLL from the Jar.
Comment 49 Joseph Remes CLA 2007-05-29 17:15:51 EDT
I tested the special dll from 5/25 by putting it in the SWT project in my Eclipse workspace. I ran Eclipse from Eclipse and I did see the special little message box. And it did not fail!

But when I try to insert that dll in the Eclipse installation, I do not see the special dialog and it still fails. I am still not sure that I am doing it correctly.

Here are the steps I took. (three times, same result!)

1. Locate org.eclipse.swt.win32.win32.x86_3.3.0.v3344.jar in the plugins directory and save a copy of it.
2. In the above named jar, replace swt-win32-3344.dll with the special one. I used the jar utility for this.
3. Locate the copy of this dll under .../configuration/org.eclipse.osgi/... and delete it.
4. Launch Eclipse with the -clean option.
5. Run the test, it still failed. 

I ran thru these steps three times, slowly. Still no special message box and still failing. very very odd. Looking at the JVM dump it looks like somehow Eclipse may still be using the original dll. So I may still not be getting the test right.

BTW I am now testing this with RC2
Comment 50 Felipe Heidrich CLA 2007-05-30 10:23:50 EDT
Pascal, I compiled a new swt dll and I want Joseph to run eclipse with it, please read note #49. Somehow eclipse never loads the dll I gave to him. Are we missing something here ? DO you know why eclipse doesn't pick the new dll ?
Comment 51 Carolyn MacLeod CLA 2007-05-31 03:17:59 EDT
Felipe, I don't think you need to get eclipse to load the dll any more.
Joe figured out how to get eclipse-in-eclipse to load it (see the beginning of comment 49), so you can debug this problem more easily if you go that route.

Joe, maybe you can try getting the dll that Kevin supplied in comment 36 on 05/24. (It looks like the attachment is "obsolete" but it isn't). Do the same "replace the dll in the swt project in your workspace" trick, and then run eclipse from eclipse. Does this fail?

Felipe, please note that if you make a new dll after this, the version number was bumped up to 3345 in the current swt code in HEAD.
Comment 52 Joseph Remes CLA 2007-05-31 12:08:37 EDT
I tried the eclipse-in-eclipse route with the dll from 5/25 and it did not fail.
I have not been able to get it to fail this way. I have tried it with the original and the testing DLLs and it refuses to fail when running eclipse-in-eclipse.

But I have an idea why I was unable to get the special DLL running with normal Eclipse. I am working on it.
Comment 53 Joseph Remes CLA 2007-05-31 12:50:55 EDT
Eclipse is really tenacious about its plugins. I was finally able to get the special dll with the test dialog box to run in Eclipse. I saw the test dialog, then it crashed.
Comment 54 Steve Northover CLA 2007-05-31 13:03:52 EDT
Did it crash before the FileDialog appeared?  (ie. you got the MessageBox)
Comment 55 Carolyn MacLeod CLA 2007-05-31 13:15:20 EDT
Pascal, what could possibly be the difference between running eclipse, and running eclipse in eclipse? Assume that the VM is the same, and the version of every plugin is the same (including swt, which is in the workspace).

Joe opens a file dialog in eclipse, and crashes.
He opens the same file dialog in eclipse-in-eclipse, and does not crash.

The only differences that I can think of are workspace preferences, and perhaps the contents of the 2 workspaces, but I don't think either of those could affect how the File Dialog operates.

Joe, did we ever try starting completely from scratch with a fresh download/install of eclipse (into a new location) and a brand-new empty workspace? If that works, you could try importing the projects in your original workspace into the new workspace (File->Import... Existing Projects Into Workspace).
Comment 56 Joseph Remes CLA 2007-05-31 13:29:48 EDT
In answer to #54, it crashed immediately after I hit the Ok button on the special test MessageBox.
Comment 57 Joseph Remes CLA 2007-05-31 13:30:23 EDT
I'll try a completely fresh install of RC2.
Comment 58 Joseph Remes CLA 2007-05-31 14:07:16 EDT
Interesting. A completely virgin install of Eclipse RC2 did not fail. I have a newly created empty workspace and no other plugins except the ones that come with it.
I created a Java project and a Test.java file. Then tried to export to General/Archive and it did not fail.

Two plugins that I always use are the GEF and the CDT. I'll add them one at a time and see what happens.
Comment 59 Steve Northover CLA 2007-05-31 14:36:19 EDT
Wow.  This is really interesting.  The C code that you ran in comment 40 does not use any of the JNI arguments at all.  Are you running with javaw.exe or java.exe?
Comment 60 Joseph Remes CLA 2007-05-31 14:59:06 EDT
I am not specifying. I assume that the launcher uses javaw.
I just added the GEF and the CDT and it is not failing yet.

I'll add projects one at a time and see what happens.
Comment 61 Joseph Remes CLA 2007-05-31 15:23:42 EDT
Holy C**P! I found it. One other thing that is different from launching Eclipse from the OS and launching it from within Eclipse is the command line arguments.
I have been in the habit of using this...    -vmargs -Xmx768m
IT FAILS WITH THIS! IT DOES NOT FAIL WITHOUT IT!!
Comment 62 Joseph Remes CLA 2007-05-31 15:30:06 EDT
It seems to fail with any setting of Xmx. I tried 512, 256, 128, 64, all failed.
So I changed it to only this...    -vmargs -Xmn64m  and that failed too!
When I remove all vm arguments, it works fine.

The VM seems to really dislike being told anything about its heap size.
Comment 63 Carolyn MacLeod CLA 2007-05-31 16:18:25 EDT
Nice work, Joe!
I am impressed with your patience <grin>.
Thanks for sticking with this.

Now what... Steve? Shall we close this as "won't fix"?
Comment 64 Steve Northover CLA 2007-05-31 16:34:25 EDT
Joe, can you attach a "java -version" to this bug report?
Comment 65 Joseph Remes CLA 2007-05-31 16:37:06 EDT
Myu most recent test were with this...

C:\Program Files\Java\jre1.5.0_11\bin>java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Comment 66 Joseph Remes CLA 2007-05-31 16:39:37 EDT
But it also fails with this...

C:\Program Files\Java\jre1.6.0_01\bin>java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
Comment 67 Ed Snible CLA 2007-06-07 12:18:13 EDT
I'm getting core dumps with FileDialog on XP.  I'm testing using a Constellation based on 3.3RC1, but I've had this since at least 3.2.

My error only happens when I open a FileDialog with the shell from a PopupDialog.
Comment 68 Ed Snible CLA 2007-06-07 12:18:58 EDT
Created attachment 70520 [details]
Java class demonstrating the problem
Comment 69 Ed Snible CLA 2007-06-07 12:19:51 EDT
Unhandled exception
Type=Segmentation error vmState=0x00040000
J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 ExceptionAddress=763B53DA ContextFlags=0001003f
Handler1=7EFB04E0 Handler2=7F057A80 InaccessibleAddress=00000000
EDI=00000000 ESI=633A5208 EAX=00000000 EBX=00000000
ECX=77D4C458 EDX=00000001
EIP=763B53DA ESP=0006E100 EBP=00000000
Module=C:\WINDOWS\system32\comdlg32.dll
Module_base_address=763B0000 Offset_in_DLL=000053da
Target=2_30_20070406_12209_lHdSMR (Windows XP 5.1 build 2600 Service Pack 1)
CPU=x86 (4 logical CPUs) (0xbff77000 RAM)
JVMDUMP006I Processing Dump Event "gpf", detail "" - Please Wait.
JVMDUMP007I JVM Requesting System Dump using 'C:\winapps\33rc1\core.20070607.162235.5908.dmp'
JVMDUMP010I System Dump written to C:\winapps\33rc1\core.20070607.162235.5908.dmp
JVMDUMP007I JVM Requesting Snap Dump using 'C:\winapps\33rc1\Snap0002.20070607.162235.5908.trc'
JVMDUMP010I Snap Dump written to C:\winapps\33rc1\Snap0002.20070607.162235.5908.trc
JVMDUMP007I JVM Requesting Java Dump using 'C:\winapps\33rc1\javacore.20070607.162235.5908.txt'
JVMDUMP010I Java Dump written to C:\winapps\33rc1\javacore.20070607.162235.5908.txt
JVMDUMP013I Processed Dump Event "gpf", detail "".
Comment 70 Kevin Barnes CLA 2007-06-07 12:39:19 EDT
Ed, PopupDialog's dispose themselves when they are deactivated. Since your PopupDialog will be deactivated by the opening of your FileDialog the crash is happening (ie you are disposing the file dialog's parent, while you are creating the file dialog). 
Please file a new bug report for this.
Comment 71 Carolyn MacLeod CLA 2007-06-12 11:15:30 EDT
I'm going to close this as "won't fix" which simply means that we aren't going to try to work around it in swt code.

I have also added the following item to the eclipse 3.3 release notes:

Opening File Dialog crashes eclipse (Vista only)
On Vista, launching eclipse using -vmargs -Xmx[any size] can crash eclipse when the FileDialog is opened. The workaround is to use the default heap size, i.e. do not use the -Xmx VM args. See bug 188317 for details.

Thanks again for your patience in tracking this down, Joe!
Comment 72 Grant Gayed CLA 2007-11-07 12:42:30 EST
*** Bug 199684 has been marked as a duplicate of this bug. ***
Comment 73 Kim Horne CLA 2008-03-12 10:21:46 EDT
*** Bug 222408 has been marked as a duplicate of this bug. ***
Comment 74 mohan raj CLA 2018-07-19 01:57:55 EDT
Created attachment 275039 [details]
.log