Bug 87798 - Eclipse crash when using the file dialog (on SP2)
Summary: Eclipse crash when using the file dialog (on SP2)
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
: 77454 222408 225005 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-11 12:39 EST by Xavier CLA Friend
Modified: 2008-04-10 16:28 EDT (History)
7 users (show)

See Also:


Attachments
Test swt.jar (1.19 MB, application/octet-stream)
2005-04-01 17:06 EST, Carolyn MacLeod CLA Friend
no flags Details
Crash report dialog (22.99 KB, image/jpeg)
2005-04-11 04:37 EDT, Xavier CLA Friend
no flags Details
New test swt.jar allocates huge buffers for win32 file dialog API call (1.19 MB, application/octet-stream)
2005-04-19 01:00 EDT, Carolyn MacLeod CLA Friend
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier CLA Friend 2005-03-11 12:39:10 EST
Got a fresh install of Eclipse (I20050219-1500)

Start Eclipse, click Window / Preferences, click Import,
choose c: drive for example then move the mouse over any directory, a tooltip
appears and Eclipse crashes Systematically with the following message: "JVM
terminated. Exit code=1" and a dump of the start parameters.

I tryied several configs, with different VMs and different version of Eclipse
since 3.0.1 nothing changes, eclipse always crashes in the same conditions. I
made the test on someone else PC with the same eclipse and JDK (1.4.2_07) config
and it didn't crashed.... Hmmm....

The only difference I see is that I have Windows SP2 while the person's PC where
eclipse doesnt' crashes is SP1.

Here is my config:

*** Date: 3/11/05 6:38 PM

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=I20050219-1500
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-launcher
E:\opt\eclipse\3.1 M5a\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
69c_38
-data
e:\usr\donat\workspace
-vm
e:\opt\j2sdk\1.4.2_07\bin\javaw.exe
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1110562714547
eclipse.vm=e:\opt\j2sdk\1.4.2_07\bin\javaw.exe
eclipse.vmargs=-Xmx512M
-jar
E:\opt\eclipse\3.1 M5a\startup.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=E:\opt\eclipse\3.1 M5a\startup.jar
java.class.version=48.0
java.endorsed.dirs=e:\opt\j2sdk\1.4.2_07\jre\lib\endorsed
java.ext.dirs=e:\opt\j2sdk\1.4.2_07\jre\lib\ext
java.home=e:\opt\j2sdk\1.4.2_07\jre
java.io.tmpdir=C:\DOCUME~1\donatdon\LOCALS~1\Temp\
java.library.path=e:\opt\j2sdk\1.4.2_07\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
Files\HP
OpenView\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Rational\common;C:\PROGRA~1\ULTRAE~1
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_07-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2_07
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2_07-b05
line.separator=

org.osgi.framework.executionenvironment=
org.osgi.framework.language=en
org.osgi.framework.os.name=WindowsXP
org.osgi.framework.os.version=5.1
org.osgi.framework.processor=x86
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.2.0
os.arch=x86
os.name=Windows XP
os.version=5.1
osgi.arch=x86
osgi.bundles=org.eclipse.core.runtime@2:start,
org.eclipse.update.configurator@3:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore=e:\opt\eclipse\3.1 M5a\configuration\org.eclipse.osgi\bundles
osgi.configuration.area=file:/e:/opt/eclipse/3.1 M5a/configuration/
osgi.framework=file:/e:/opt/eclipse/3.1 M5a/plugins/org.eclipse.osgi_3.1.0/
osgi.framework.beginningstartlevel=1
osgi.framework.shape=folder
osgi.framework.version=3.0.0
osgi.frameworkClassPath=core.jar, console.jar, osgi.jar, resolver.jar,
defaultAdaptor.jar, eclipseAdaptor.jar
osgi.install.area=file:/e:/opt/eclipse/3.1 M5a/
osgi.instance.area=file:/e:/usr/donat/workspace/
osgi.instance.area.default=file:/C:/Documents and Settings/donatdon/workspace/
osgi.logfile=e:\usr\donat\workspace\.metadata\.log
osgi.manifest.cache=e:\opt\eclipse\3.1 M5a\configuration\org.eclipse.osgi\manifests
osgi.nl=en_US
osgi.os=win32
osgi.splashLocation=e:\opt\eclipse\3.1
M5a\plugins\org.eclipse.platform_3.1.0\splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath=e:\opt\eclipse\3.1 M5a\plugins
osgi.ws=win32
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=e:\opt\j2sdk\1.4.2_07\jre\lib\rt.jar;e:\opt\j2sdk\1.4.2_07\jre\lib\i18n.jar;e:\opt\j2sdk\1.4.2_07\jre\lib\sunrsasign.jar;e:\opt\j2sdk\1.4.2_07\jre\lib\jsse.jar;e:\opt\j2sdk\1.4.2_07\jre\lib\jce.jar;e:\opt\j2sdk\1.4.2_07\jre\lib\charsets.jar;e:\opt\j2sdk\1.4.2_07\jre\classes
sun.boot.library.path=e:\opt\j2sdk\1.4.2_07\jre\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium i486 i386
sun.io.unicode.encoding=UnicodeLittle
sun.java2d.fontpath=
sun.os.patch.level=Service Pack 2
user.country=US
user.dir=E:\opt\eclipse\3.1 M5a
user.home=C:\Documents and Settings\donatdon
user.language=en
user.name=donatdon
user.timezone=Europe/Paris
user.variant=

*** Features:
org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools"
org.eclipse.jdt.source (3.1.0) "Eclipse Java Development Tools SDK"
org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment"
org.eclipse.pde.source (3.1.0) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.platform (3.1.0) "Eclipse Platform"
org.eclipse.platform.source (3.1.0) "Eclipse Platform Plug-in Developer Resources"
org.eclipse.sdk (3.1.0) "Eclipse Project SDK"

*** Plug-in Registry:
org.apache.ant (1.6.2) "Apache Ant" [Resolved]
org.apache.lucene (1.4.3) "Apache Lucene" [Resolved]
org.eclipse.ant.core (3.1.0) "Ant Build Tool Core" [Resolved]
org.eclipse.ant.ui (3.1.0) "Ant UI" [Resolved]
org.eclipse.compare (3.1.0) "Compare Support" [Resolved]
org.eclipse.core.boot (3.0.0) "Core Boot" [Resolved]
org.eclipse.core.commands (3.1.0) "Commands" [Active]
org.eclipse.core.expressions (3.1.0) "Expression Language" [Active]
org.eclipse.core.filebuffers (3.1.0) "File Buffers" [Resolved]
org.eclipse.core.resources (3.1.0) "Core Resource Management" [Active]
org.eclipse.core.resources.compatibility (3.1.0) "Core Resource Management
Compatibility Fragment" [Resolved]
org.eclipse.core.resources.win32 (3.0.0) "Core Resource Management Win32
Fragment" [Resolved]
org.eclipse.core.runtime (3.1.0) "Core Runtime" [Active]
org.eclipse.core.runtime.compatibility (3.0.0) "Core Runtime Plug-in
Compatibility" [Active]
org.eclipse.core.variables (3.1.0) "Core Variables" [Resolved]
org.eclipse.debug.core (3.1.0) "Debug Core" [Active]
org.eclipse.debug.ui (3.1.0) "Debug UI" [Active]
org.eclipse.help (3.0.0) "Help System Core" [Active]
org.eclipse.help.appserver (3.0.0) "Help Application Server" [Resolved]
org.eclipse.help.base (3.0.0) "Help System Base" [Resolved]
org.eclipse.help.ui (3.0.0) "Help System UI" [Resolved]
org.eclipse.help.webapp (3.0.0) "Help System Webapp" [Resolved]
org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools" [Resolved]
org.eclipse.jdt.core (3.1.0) "Java Development Tools Core" [Resolved]
org.eclipse.jdt.debug (3.1.0) "JDI Debug Model" [Resolved]
org.eclipse.jdt.debug.ui (3.1.0) "JDI Debug UI" [Resolved]
org.eclipse.jdt.doc.isv (3.1.0) "Eclipse JDT Plug-in Developer Guide" [Resolved]
org.eclipse.jdt.doc.user (3.1.0) "Eclipse Java Development User Guide" [Resolved]
org.eclipse.jdt.junit (3.1.0) "Java Development Tools JUnit support" [Resolved]
org.eclipse.jdt.junit.runtime (3.1.0) "Java Development Tools JUnit runtime
support" [Resolved]
org.eclipse.jdt.launching (3.1.0) "Java Development Tools Launching Support"
[Resolved]
org.eclipse.jdt.source (3.1.0) "Eclipse Java Development Tools SDK" [Resolved]
org.eclipse.jdt.ui (3.1.0) "Java Development Tools UI" [Resolved]
org.eclipse.jface (3.1.0) "JFace" [Active]
org.eclipse.jface.text (3.1.0) "JFace Text" [Active]
org.eclipse.ltk.core.refactoring (3.1.0) "Refactoring Core" [Resolved]
org.eclipse.ltk.ui.refactoring (3.1.0) "Refactoring UI" [Resolved]
org.eclipse.osgi.services (3.0.0) "OSGi Release 3 Services" [Resolved]
org.eclipse.osgi.util (3.0.0) "OSGi R3 Utility Classes" [Resolved]
org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment" [Resolved]
org.eclipse.pde.build (3.1.0) "Plug-in Development Environment Build Support"
[Resolved]
org.eclipse.pde.core (3.1.0) "Plug-in Development Core" [Resolved]
org.eclipse.pde.doc.user (3.1.0) "Eclipse Plug-in Development User Guide" [Resolved]
org.eclipse.pde.junit.runtime (3.1.0) "PDE JUnit Plug-in Test" [Resolved]
org.eclipse.pde.runtime (3.1.0) "Plug-in Development Environment Runtime" [Resolved]
org.eclipse.pde.source (3.1.0) "Eclipse Plug-in Development Environment
Developer Resources" [Resolved]
org.eclipse.pde.ui (3.1.0) "Plug-in Development UI" [Resolved]
org.eclipse.platform (3.1.0) "Eclipse Platform" [Resolved]
org.eclipse.platform.doc.isv (3.1.0) "Eclipse Platform Plug-in Developer Guide"
[Resolved]
org.eclipse.platform.doc.user (3.1.0) "Eclipse Workbench User Guide" [Resolved]
org.eclipse.platform.source (3.1.0) "Eclipse Platform Plug-in Developer
Resources" [Resolved]
org.eclipse.platform.source.win32.win32.x86 (3.1.0) "Eclipse Platform Plug-in
Developer Resources" [Resolved]
org.eclipse.sdk (3.1.0) "Eclipse Project SDK" [Resolved]
org.eclipse.search (3.1.0) "Search Support" [Resolved]
org.eclipse.swt (3.1.0) "Standard Widget Toolkit" [Resolved]
org.eclipse.swt.win32 (3.1.0) "Standard Widget Toolkit for Windows" [Resolved]
org.eclipse.team.core (3.1.0) "Team Support Core" [Resolved]
org.eclipse.team.cvs.core (3.1.0) "CVS Team Provider Core" [Resolved]
org.eclipse.team.cvs.ssh (3.1.0) "CVS SSH Core" [Resolved]
org.eclipse.team.cvs.ssh2 (3.1.0) "CVS SSH2" [Resolved]
org.eclipse.team.cvs.ui (3.1.0) "CVS Team Provider UI" [Resolved]
org.eclipse.team.ui (3.1.0) "Team Support UI" [Resolved]
org.eclipse.text (3.1.0) "Text" [Active]
org.eclipse.tomcat (4.1.30) "Tomcat Wrapper" [Resolved]
org.eclipse.ui (3.1.0) "Eclipse UI" [Active]
org.eclipse.ui.cheatsheets (3.0.0) "Cheat Sheets" [Resolved]
org.eclipse.ui.console (3.1.0) "Console" [Resolved]
org.eclipse.ui.editors (3.1.0) "Default Text Editor" [Resolved]
org.eclipse.ui.externaltools (3.1.0) "External Tools" [Active]
org.eclipse.ui.forms (3.0.0) "Eclipse Forms" [Resolved]
org.eclipse.ui.ide (3.1.0) "Eclipse IDE UI" [Active]
org.eclipse.ui.intro (3.1.0) "Intro Plugin" [Resolved]
org.eclipse.ui.presentations.r21 (3.1.0) "R21 Presentation Plug-in" [Resolved]
org.eclipse.ui.views (3.1.0) "Views" [Active]
org.eclipse.ui.win32 (3.1.0) "Win32 fragment" [Resolved]
org.eclipse.ui.workbench (3.1.0) "Workbench" [Active]
org.eclipse.ui.workbench.compatibility (3.1.0) "Workbench Compatibility" [Resolved]
org.eclipse.ui.workbench.texteditor (3.1.0) "Text Editor Framework" [Resolved]
org.eclipse.update.configurator (3.0.0) "Install/Update Configurator" [Active]
org.eclipse.update.core (3.0.0) "Install/Update Core" [Active]
org.eclipse.update.core.win32 (3.0.0) "Install/Update Core for Windows" [Resolved]
org.eclipse.update.scheduler (3.0.0) "Automatic Updates Scheduler" [Active]
org.eclipse.update.ui (3.0.0) "Install/Update UI" [Active]
org.junit (3.8.1) "JUnit Testing Framework" [Resolved]
system.bundle (3.1.0) "OSGi System Bundle" [Active]

*** User Preferences:
#Fri Mar 11 18:38:42 CET 2005
file_export_version=3.0
@org.eclipse.ui=3.1.0
/instance/org.eclipse.ui/showIntro=false
\!/=

*** Update Manager Log:

Configuration=Tue Mar 08 11:48:56 CET 2005
Is current configuration=true
Comment 1 Kim Horne CLA Friend 2005-03-11 15:41:45 EST
Might be a dupe of 77414?  The user in that bug wasn't even able to get the
dialog open...
Comment 2 Jerome Zago CLA Friend 2005-03-14 05:24:22 EST
Hi, I have the same problem with the Eclipse 3.0.1 release, running on Windows
XP Professional 2002 SP1 (with all patches from Microsoft but SP2).

Eclipse also crashes after opening the "Add External JARs" dialog and moving the
mouse over any directory.

*** Date: 3/14/05 10:34 AM

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M200409161125
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
C:\OAMS\Programs\Eclipse\eclipse.exe -showsplash 600
-exitdata
C:\OAMS\Programs\Eclipse\eclipse.exe -exitdata a20_38
-vm
C:\WINDOWS\system32\javaw.exe

eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1110792884538
eclipse.vm=C:\WINDOWS\system32\javaw.exe
eclipse.vmargs=-cp
C:\OAMS\Programs\Eclipse\startup.jar
org.eclipse.core.launcher.Main

eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\OAMS\Programs\Eclipse\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_07\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_07\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2_07
java.io.tmpdir=C:\DOCUME~1\jza\LOCALS~1\Temp\
java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Java\jdk1.4.2_07\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Vim\vim63;C:\Program Files\Telelogic\CM Synergy 6.3\bin;C:\Program
Files\Telelogic\CM Synergy 6.3\bin\util;c:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;c:\oams\programs\ruby\bin;C:\OAMS\Programs\Cygwin\bin
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_07-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2_07
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2_07-b05
line.separator=

org.osgi.framework.executionenvironment=
org.osgi.framework.language=en
org.osgi.framework.os.name=WindowsXP
org.osgi.framework.os.version=5.1
org.osgi.framework.processor=x86
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.2.0
org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
os.arch=x86
os.name=Windows XP
os.version=5.1
osgi.arch=x86
osgi.bundles=org.eclipse.core.runtime@2:start,
org.eclipse.update.configurator@3:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore=c:\OAMS\Programs\Eclipse\configuration\org.eclipse.osgi\bundles
osgi.configuration.area=file:/c:/OAMS/Programs/Eclipse/configuration/
osgi.framework=file:/c:/OAMS/Programs/Eclipse/plugins/org.eclipse.osgi_3.0.1/
osgi.framework.beginningstartlevel=1
osgi.framework.version=3.0.0
osgi.frameworkClassPath=core.jar, console.jar, osgi.jar, resolver.jar,
defaultAdaptor.jar, eclipseAdaptor.jar
osgi.install.area=file:/c:/OAMS/Programs/Eclipse/
osgi.instance.area=file:/C:/OAMS/Programs/Eclipse/workspace/
osgi.logfile=C:\OAMS\Programs\Eclipse\workspace\.metadata\.log
osgi.manifest.cache=c:\OAMS\Programs\Eclipse\configuration\org.eclipse.osgi\manifests
osgi.nl=en_US
osgi.os=win32
osgi.splashLocation=c:\OAMS\Programs\Eclipse\plugins\org.eclipse.platform_3.0.1\splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.ws=win32
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_07\lib\rt.jar;C:\Program
Files\Java\j2re1.4.2_07\lib\i18n.jar;C:\Program
Files\Java\j2re1.4.2_07\lib\sunrsasign.jar;C:\Program
Files\Java\j2re1.4.2_07\lib\jsse.jar;C:\Program
Files\Java\j2re1.4.2_07\lib\jce.jar;C:\Program
Files\Java\j2re1.4.2_07\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_07\classes
sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_07\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium i486 i386
sun.io.unicode.encoding=UnicodeLittle
sun.java2d.fontpath=
sun.os.patch.level=Service Pack 1
user.country=US
user.dir=C:\OAMS\Programs\Eclipse
user.home=C:\Documents and Settings\jza
user.language=en
user.name=jza
user.timezone=Europe/Berlin
user.variant=
vendor=Apache Software Foundation
vendor-url=http://xml.apache.org/xalan-j
version=2.4.1

*** Features:
org.eclipse.jdt (3.0.1) "Eclipse Java Development Tools"
org.eclipse.jdt.source (3.0.1) "Eclipse Java Development Tools SDK"
org.eclipse.pde (3.0.1) "Eclipse Plug-in Development Environment"
org.eclipse.pde.source (3.0.1) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.platform (3.0.1) "Eclipse Platform"
org.eclipse.platform.source (3.0.1) "Eclipse Platform Plug-in Developer Resources"
org.eclipse.sdk (3.0.1) "Eclipse Project SDK"

*** Plug-in Registry:
org.apache.ant (1.6.2) "Apache Ant"
org.apache.lucene (1.3.1) "Apache Lucene"
org.eclipse.ant.core (3.0.0) "Ant Build Tool Core"
org.eclipse.ant.ui (3.0.1) "Ant UI"
org.eclipse.compare (3.0.0) "Compare Support"
org.eclipse.core.boot (3.0.0) "Core Boot"
org.eclipse.core.expressions (3.0.0) "Expression Language"
org.eclipse.core.filebuffers (3.0.1) "File Buffers"
org.eclipse.core.resources (3.0.1) "Core Resource Management"
org.eclipse.core.resources.win32 (3.0.0) "Core Resource Management Win32 Fragment"
org.eclipse.core.runtime (3.0.1) "Core Runtime"
org.eclipse.core.runtime.compatibility (3.0.0) "Core Runtime Plug-in Compatibility"
org.eclipse.core.variables (3.0.0) "Core Variables"
org.eclipse.debug.core (3.0.1) "Debug Core"
org.eclipse.debug.ui (3.0.1) "Debug UI"
org.eclipse.help (3.0.0) "Help System Core"
org.eclipse.help.appserver (3.0.0) "Help Application Server"
org.eclipse.help.base (3.0.1) "Help System Base"
org.eclipse.help.ide (3.0.0) "Help System IDE"
org.eclipse.help.ui (3.0.0) "Help System UI"
org.eclipse.help.webapp (3.0.1) "Help System Webapp"
org.eclipse.jdt (3.0.1) "Eclipse Java Development Tools"
org.eclipse.jdt.core (3.0.1) "Java Development Tools Core"
org.eclipse.jdt.debug (3.0.1) "JDI Debug Model"
org.eclipse.jdt.debug.ui (3.0.1) "JDI Debug UI"
org.eclipse.jdt.doc.isv (3.0.1) "Eclipse JDT Plug-in Developer Guide"
org.eclipse.jdt.doc.user (3.0.1) "Eclipse Java Development User Guide"
org.eclipse.jdt.junit (3.0.1) "Java Development Tools JUnit support"
org.eclipse.jdt.junit.runtime (3.0.0) "Java Development Tools JUnit runtime support"
org.eclipse.jdt.launching (3.0.1) "Java Development Tools Launching Support"
org.eclipse.jdt.source (3.0.1) "Eclipse Java Development Tools SDK"
org.eclipse.jdt.ui (3.0.1) "Java Development Tools UI"
org.eclipse.jface (3.0.0) "JFace"
org.eclipse.jface.text (3.0.1) "JFace Text"
org.eclipse.ltk.core.refactoring (3.0.1) "Refactoring Core"
org.eclipse.ltk.ui.refactoring (3.0.1) "Refactoring UI"
org.eclipse.osgi (3.0.1) "OSGi System Bundle"
org.eclipse.osgi.services (3.0.0) "OSGi Release 3 Services"
org.eclipse.osgi.util (3.0.0) "OSGi R3 Utility Classes"
org.eclipse.pde (3.0.1) "Eclipse Plug-in Development Environment"
org.eclipse.pde.build (3.0.1) "Plug-in Development Environment Build Support"
org.eclipse.pde.core (3.0.1) "Plug-in Development Core"
org.eclipse.pde.doc.user (3.0.0) "Eclipse Plug-in Development User Guide"
org.eclipse.pde.junit.runtime (3.0.0) "PDE JUnit Plug-in Test"
org.eclipse.pde.runtime (3.0.1) "Plug-in Development Environment Runtime"
org.eclipse.pde.source (3.0.1) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.pde.ui (3.0.1) "Plug-in Development UI"
org.eclipse.platform (3.0.1) "Eclipse Platform"
org.eclipse.platform.doc.isv (3.0.1) "Eclipse Platform Plug-in Developer Guide"
org.eclipse.platform.doc.user (3.0.1) "Eclipse Workbench User Guide"
org.eclipse.platform.source (3.0.1) "Eclipse Platform Plug-in Developer Resources"
org.eclipse.platform.source.win32.win32.x86 (3.0.1) "Eclipse Platform Plug-in
Developer Resources"
org.eclipse.sdk (3.0.1) "Eclipse Project SDK"
org.eclipse.search (3.0.1) "Search Support"
org.eclipse.swt (3.0.1) "Standard Widget Toolkit"
org.eclipse.swt.win32 (3.0.1) "Standard Widget Toolkit for Windows"
org.eclipse.team.core (3.0.0) "Team Support Core"
org.eclipse.team.cvs.core (3.0.1) "CVS Team Provider Core"
org.eclipse.team.cvs.ssh (3.0.0) "CVS SSH Core"
org.eclipse.team.cvs.ssh2 (3.0.0) "CVS SSH2"
org.eclipse.team.cvs.ui (3.0.1) "CVS Team Provider UI"
org.eclipse.team.ui (3.0.1) "Team Support UI"
org.eclipse.text (3.0.1) "Text"
org.eclipse.tomcat (4.1.30) "Tomcat Wrapper"
org.eclipse.ui (3.0.1) "Eclipse UI"
org.eclipse.ui.cheatsheets (3.0.1) "Cheat Sheets"
org.eclipse.ui.console (3.0.0) "Console"
org.eclipse.ui.editors (3.0.1) "Default Text Editor"
org.eclipse.ui.externaltools (3.0.1) "External Tools"
org.eclipse.ui.forms (3.0.0) "Eclipse Forms"
org.eclipse.ui.ide (3.0.1) "Eclipse IDE UI"
org.eclipse.ui.intro (3.0.1) "Intro Plugin"
org.eclipse.ui.presentations.r21 (3.0.1) "R21 Presentation Plug-in"
org.eclipse.ui.views (3.0.0) "Views"
org.eclipse.ui.win32 (3.0.1) "Win32 fragment"
org.eclipse.ui.workbench (3.0.1) "Workbench"
org.eclipse.ui.workbench.compatibility (3.0.0) "Workbench Compatibility"
org.eclipse.ui.workbench.texteditor (3.0.1) "Text Editor Framework"
org.eclipse.update.configurator (3.0.0) "Install/Update Configurator"
org.eclipse.update.core (3.0.1) "Install/Update Core"
org.eclipse.update.core.win32 (3.0.0) "Install/Update Core for Windows"
org.eclipse.update.scheduler (3.0.0) "Automatic Updates Scheduler"
org.eclipse.update.ui (3.0.1) "Install/Update UI"
org.junit (3.8.1) "JUnit Testing Framework"

*** User Preferences:
#Mon Mar 14 10:34:56 CET 2005
/instance/org.eclipse.jdt.ui/org.eclipse.jface.textfont=1|Courier
New|10|0|WINDOWS|1|0|0|0|0|0|0|0|0|1|0|0|0|0|Courier New;
/instance/org.eclipse.ui/showIntro=false
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles.version=6
@org.eclipse.ui=3.0.1
\!/=
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathContainer.MmlConverter|org.eclipse.jdt.launching.JRE_CONTAINER=<?xml
version\="1.0" encoding\="UTF-8"?>\r\n<classpath>\r\n<classpathentry
sourcepath\="C\:/Program Files/Java/jdk1.4.2_07/src.zip" kind\="lib"
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/rt.jar"/>\r\n<classpathentry
sourcepath\="C\:/Program Files/Java/jdk1.4.2_07/src.zip" kind\="lib"
path\="C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/sunrsasign.jar"/>\r\n<classpathentry
sourcepath\="C\:/Program Files/Java/jdk1.4.2_07/src.zip" kind\="lib"
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/jsse.jar"/>\r\n<classpathentry
sourcepath\="C\:/Program Files/Java/jdk1.4.2_07/src.zip" kind\="lib"
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/jce.jar"/>\r\n<classpathentry
sourcepath\="C\:/Program Files/Java/jdk1.4.2_07/src.zip" kind\="lib"
path\="C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/charsets.jar"/>\r\n<classpathentry kind\="lib"
path\="C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/ext/dnsns.jar"/>\r\n<classpathentry kind\="lib"
path\="C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/ext/ldapsec.jar"/>\r\n<classpathentry kind\="lib"
path\="C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/ext/localedata.jar"/>\r\n<classpathentry
kind\="lib" path\="C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/ext/sunjce_provider.jar"/>\r\n</classpath>\r\n
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.templates_migrated=true
/instance/org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML=<?xml
version\="1.0" encoding\="UTF-8"?>\r\n<vmSettings
defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1110790326363">\r\n<vmType
id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="0"
name\="j2re1.4.2_07" path\="C\:\\Program Files\\Java\\j2re1.4.2_07"
javadocURL\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<vm
id\="1110790326363" name\="jdk1.4.2_07" path\="C\:\\Program
Files\\Java\\jdk1.4.2_07"
javadocURL\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n</vmType>\r\n</vmSettings>\r\n
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_SRC=C\:/Program
Files/Java/jdk1.4.2_07/src.zip
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_LIB=C\:/Program
Files/Java/jdk1.4.2_07/jre/lib/rt.jar
/instance/org.eclipse.jdt.ui/useQuickDiffPrefPage=true
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.custom_templates=<?xml
version\="1.0" encoding\="UTF-8"?>\r\n<templates/>
@org.eclipse.jdt.ui=3.0.1
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_SRCROOT=
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JUNIT_HOME=c\:/OAMS/Programs/Eclipse/plugins/org.junit_3.8.1
/instance/org.eclipse.jdt.ui/tabWidthPropagated=true
/instance/org.eclipse.jdt.ui/Refactoring.ErrorPage.severityThreshold=2
/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.javadoclocations=<?xml
version\="1.0" encoding\="UTF-8"?>\r\n<javadoclocation>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/ext/ldapsec.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/sunrsasign.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/jce.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/ext/sunjce_provider.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/jsse.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/jce.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/ext/dnsns.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/ext/localedata.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/rt.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/charsets.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/ext/ldapsec.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/ext/localedata.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/ext/dnsns.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/jdk1.4.2_07/jre/lib/jsse.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/charsets.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/sunrsasign.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/ext/sunjce_provider.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n<location_01
path\="C\:/Program Files/Java/j2re1.4.2_07/lib/rt.jar"
url\="http\://java.sun.com/j2se/1.4.2/docs/api"/>\r\n</javadoclocation>\r\n
/instance/org.eclipse.jdt.ui/fontPropagated=true
/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=c\:/OAMS/Programs/Eclipse
/instance/org.eclipse.jdt.ui/useAnnotationsPrefPage=true
file_export_version=3.0
@org.eclipse.jdt.launching=3.0.1
@org.eclipse.jdt.core=3.0.1

*** Update Manager Log:

Configuration=Mon Mar 14 09:50:04 CET 2005
Is current configuration=true
Comment 3 Jerome Zago CLA Friend 2005-03-14 05:47:37 EST
Launching Eclipse with
-vm "C:\Program Files\Java\jdk1.4.2_07\jre\bin\javaw" (instead of nothing) fixes
the problem.
Comment 4 Xavier CLA Friend 2005-03-15 04:31:22 EST
Sorry, it doesn't solve the problem for me.
Here is how I start my eclipse:

"E:\opt\eclipse\3.1 M5a\eclipse.exe" -data e:\usr\donat\workspace -vm
"C:\Program Files\Java\j2re1.4.2_07\bin\javaw.exe" -vmargs -Xmx512M


(In reply to comment #3)
> Launching Eclipse with
> -vm "C:\Program Files\Java\jdk1.4.2_07\jre\bin\javaw" (instead of nothing) fixes
> the problem.

Comment 5 Veronika Irvine CLA Friend 2005-03-15 08:04:05 EST
Do you have a manifest file?

See "How do I make SWT show the Windows XP skins?" in the SWT FAQ:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-
home/faq.html#xpthemes

Carolyn, Steve fixed a bug in DirectoryDialog (see version 1.29) - perhaps 
there are more cases where the same thing can happen?
Comment 6 Xavier CLA Friend 2005-03-15 09:23:03 EST
(In reply to comment #5)
> Do you have a manifest file?

No I don't have that manifest file.
I tried copying the file
(http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/javaw.exe.manifest)
to my jre/bin directory (C:\Program Files\Java\j2re1.4.2_07\bin) but It doesn't
solve the problem.

Thanx for the link anyway.
Comment 7 Steve Northover CLA Friend 2005-03-28 20:57:15 EST
CAR, the bug we worked around was in DirectoryDialog.  Have you ever recreated 
this?  I have not been able to.  Perhaps we should apply the hack work around 
to FileDialog and see if this fixes it for those who can get the crash?

Does it happen every time?
Comment 8 Xavier CLA Friend 2005-03-29 03:12:49 EST
Yes, unfortunately this crash occurs systematically and is very painful if it 
happens when files you are working on have not been saved.

If you can attach or send any fix I would be pleased to test it for you.

I know many developers here in HP that didn't make the step to 3.x versions of 
Eclipse because of this instability.

Thank you,
Xavier
Comment 9 Steve Northover CLA Friend 2005-03-29 15:27:08 EST
CAR, please work out how Xavier can get a patched version of SWT with the same 
code we used to fix DirectoryDialog in FileDialog and see if the problem goes 
away for him.  Thanks.
Comment 10 Carolyn MacLeod CLA Friend 2005-03-29 16:53:50 EST
Steve, I believe you are talking about bug 60659?

As far as I can tell, we are not running async messages from FileDialog.
(We don't hook anything, so no callback, so not sure how we could be...)
Correct me if I am wrong.

So, I don't think the same workaround as for DirectoryDialog will do anything.
Comment 11 Carolyn MacLeod CLA Friend 2005-04-01 17:05:48 EST
Xavier,
I am going to attach a test swt.jar to this bug (hopefully... if it's not too 
big). Please download eclipse M5a, and overwrite the swt.jar in 
   eclipse\plugins\org.eclipse.swt.win32_3.1.0\ws\win32
And let me know:
1) if it fixes your crash problem
2) try launching with java.exe so you get a DOS window, and let me know what 
version of comctl32.dll is printed to the DOS window when you bring up the 
file dialog
Thanks!
Comment 12 Carolyn MacLeod CLA Friend 2005-04-01 17:06:56 EST
Created attachment 19469 [details]
Test swt.jar
Comment 13 Xavier CLA Friend 2005-04-04 06:12:41 EDT
Hi,

I still got the crash and it still seems to happen when the tooltip thing 
appears on a folder.

Here is what I do: I bring up a file dialog from the preferences panel (Import 
or export) I Change location to the c:\ for example, and move my mouse over 
the folders, I stop on one folder, the tooltip appears and Eclipse crashes.

For the comctl32.dll, I have this version printed out:
comctl32.dll version=5

If I go to my system32 I've got more details:
5.82 (xpsp_sp2_rtm.040803-2158)

Many thanks for your attempts and your time,
Xavier
Comment 14 Carolyn MacLeod CLA Friend 2005-04-04 10:22:15 EDT
Thanks, Xavier.
Sorry it didn't help.
I have tried the same exact thing that you do, and I don't crash.
Also, it is a very common operation, so I think that lots of people open the 
file dialog without crashing.
So there's something about your system that is "different", and it may take a 
little while to figure out what it is, but we'll work on it.

We definitely need to make sure that you try running with version 6 of the 
Microsoft common controls. I see that you are still running with version 5. 
This may fix the problem, so we need to try it.
To run with version 6 of the comctl32.dll, you need to have the 
file 'javaw.exe.manifest' in the same java 'jre\bin' or 'bin' directory that 
you launch eclipse from. For more information and background, see the 
explanation in this other bug, starting at this comment: 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=60659#c47

You should find the java.exe.manifest file in your
eclipse\plugins\org.eclipse.swt.win32_3.1.0\os\win32\x86
directory. Note that if you launch eclipse using java.exe, then you need to 
rename the file 'java.exe.manifest', but if you launch eclipse using javaw.exe 
(the default) then the filename 'javaw.exe.manifest' is ok. Make sure you copy 
the file to the exact directory that java is running from, i.e. you may have 
several instances of java, and it might be confusing which place to put the 
manifest file. Also, note that some people launch java.exe or javaw.exe from 
the jdk bin directory, and some launch it from the jre\bin directory. 
Personally, I have the manifest in a bunch of places so that it's there no 
matter which version of java I decide to run.

Anyhow, the bottom line is that when you run eclipse with the swt.jar that I 
just sent you, you want to see the following printed out in the console:

comctl32.dll version=6

If we're lucky, this will fix it. Please let me know.
Comment 15 Xavier CLA Friend 2005-04-11 04:33:45 EDT
Hi,

Sorry I was not there last week.
Well, I tried your fix concerning the comctl32.dll version this morning. I put
this manifest file in the right location and the version is now 6 instead of 5
previously, see the java.exe console dump:

   Selection changed call
   comctl32.dll version=6

Unfortunately we are not lucky and I still have the bug.

The problem doesn't seem to be on my machine only since we are many developers
here in HP having this problem. Maybe this is due to a corporate config ? I
really have no clue but I am not the only one experiencing this crash.

Thanx for your help so far, I would be pleased to test any other fix you'll tell me.

Regards,
Xavier
Comment 16 Xavier CLA Friend 2005-04-11 04:37:07 EDT
Created attachment 19733 [details]
Crash report dialog

This is the dialog that appears after Eclipse crashes, just to prove you I am
not joking on this ;-)
Comment 17 Carolyn MacLeod CLA Friend 2005-04-11 17:59:23 EDT
I believe you.  ;)

Let me make sure I understand exactly where the problem is...

1) Does the crash happen with an older vm, like jre1.4.2_06 or earlier?
2) Have you tried jre1.4.2_08?
3) Are you saying in comment 8 that the crash did NOT happen in eclipse 2.x?

I suspect that the VM doesn't make much difference, but if your colleagues 
don't crash using eclipse 2.x, I can at least look at what has changed in our 
code since then.
Comment 18 Carolyn MacLeod CLA Friend 2005-04-11 18:08:13 EDT
This may be the same as bug 53970, which reports that right-clicking on a 
folder in the file dialog crashes eclipse. Does right-clicking cause you to 
crash also?
Comment 19 Carolyn MacLeod CLA Friend 2005-04-11 18:11:36 EDT
Do you also crash (right-clicking a folder) in the native Directory dialog?

i.e. File -> Import -> Existing Project into Workspace -> Next -> Browse
Comment 20 Tim Hood CLA Friend 2005-04-14 18:22:46 EDT
What is the latest on this bug?

I'm using XP Service Pack 1 and getting exactly the same problem.

I tried eclipse 31m5a and the test swt.jar.

It printed out the following...

Unable to find Action Set: org.eclipse.help.ui.actions
comctl32.dll version=6

Dunno what the problem is with "Action Set" but the version of comctl32.dll is
shown.

Anyway I've tried eclipse 31m6 and various versions of the JVM and all show the
same problem.
Other XP SP1 machines here seem to have the same problem but Windows 2000 seems
okay.
At home on XP SP2 (Home Edition) it also seemed okay.

Any ideas?

I'm more than willing to try out any possible fixes or provide any more info.

From comment #19 the "native Directory dialog" seems okay.  It doesn't crash.



(In reply to comment #19)
> Do you also crash (right-clicking a folder) in the native Directory dialog?
> 
> i.e. File -> Import -> Existing Project into Workspace -> Next -> Browse
> 

Comment 21 Steve Northover CLA Friend 2005-04-18 20:15:41 EDT
Tim, does it crash for you with the jar from CAR?
Comment 22 Carolyn MacLeod CLA Friend 2005-04-18 23:08:55 EDT
Steve, comment #20 from Tim says he did try the test swt.jar, and he is still 
crashing.

Tim, you can ignore the missing action set for the help plugin - I mean, it's 
not what is making you crash.
Comment 23 Carolyn MacLeod CLA Friend 2005-04-19 01:00:51 EDT
Created attachment 20038 [details]
New test swt.jar allocates huge buffers for win32 file dialog API call

Xavier, Tim,

Try this new test jar. I made the buffer sizes for the 'returned file name' and
the 'initial directory path' ridiculously large, so that hopefully there won't
be any buffer overruns in the MS code (i.e. we call GetSaveFileName or
GetOpenFileName).

Please make sure that you allow a lot of heap space for your VM.
For example, start eclipse with at least   -vmargs -Xmx400M

Please let me know how it goes.
Thanks!
Carolyn
Comment 24 Xavier CLA Friend 2005-04-20 05:54:18 EDT
(In reply to comment #17)
> I believe you.  ;)
> 
> Let me make sure I understand exactly where the problem is...
> 
> 1) Does the crash happen with an older vm, like jre1.4.2_06 or earlier?

Yes

> 2) Have you tried jre1.4.2_08?

Yes same result

> 3) Are you saying in comment 8 that the crash did NOT happen in eclipse 2.x?

Yes

--

(In reply to comment #18)
> This may be the same as bug 53970, which reports that right-clicking on a 
> folder in the file dialog crashes eclipse. Does right-clicking cause you to 
> crash also?

As I was doing some tests with right click on a file in the file dialog I
realized that not only it didn't crash my Eclipse but also it prevents the crash
when I let the mouse on a folder long enough so the tooltip is displayed.

Very Strange workaround but it works, I tested several times with the same
behavior that when you right click first you don't crash otherwise you do.

There is maybe some initialization done in the right click that fix something...
this is strange anyway.

--

(In reply to comment #19)
> Do you also crash (right-clicking a folder) in the native Directory dialog?
> 
> i.e. File -> Import -> Existing Project into Workspace -> Next -> Browse

No it doesn't crash since there is no tooltip displayed on folders I think and
moreover files are not displayed (only folders).

--

(In reply to comment #23)
> Created an attachment (id=20038) [edit]
> New test swt.jar allocates huge buffers for win32 file dialog API call
> 
> Xavier, Tim,
> 
> Try this new test jar. I made the buffer sizes for the 'returned file name' and
> the 'initial directory path' ridiculously large, so that hopefully there won't
> be any buffer overruns in the MS code (i.e. we call GetSaveFileName or
> GetOpenFileName).
> 
> Please make sure that you allow a lot of heap space for your VM.
> For example, start eclipse with at least   -vmargs -Xmx400M
> 
> Please let me know how it goes.
> Thanks!
> Carolyn

I tried your brand new jar file, I already run Eclipse with -Xmx512M but it
doesn't change the behavior. Sorry.

Once again, many thanx for giving your time willingly ;-)

Regards,
Xavier
Comment 25 Tim Hood CLA Friend 2005-04-21 05:34:01 EDT
I also tried the new jar and unfortunately the crash still happens.

Would there be any benefit in me building SWT locally from source and 
attempting to debug on my PC ?
Comment 26 Tim Hood CLA Friend 2005-04-21 12:00:11 EDT
I've tried running eclipse as follows so I can see the JNI calls.....

C:\eclipse31m5a>"c:\program files\java\jdk1.5.0_01\bin\java.exe" -verbose:jni
-Xmx512M -Xcheck:jni -jar startup.jar

On my work machine which crashes I get...

.....
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
Checked JNI functions are being used to validate JNI usage
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method java.util.zip.CRC32.updateBytes ... JNI]
[Dynamic-linking native method java.io.RandomAccessFile.read ... JNI]
[Dynamic-linking native method java.io.RandomAccessFile.readBytes ... JNI]
[Dynamic-linking native method java.io.RandomAccessFile.seek ... JNI]
[Dynamic-linking native method java.io.RandomAccessFile.close0 ... JNI]
[Dynamic-linking native method java.io.FileInputStream.skip ... JNI]
comctl32.dll version=6
[Dynamic-linking native method
org.eclipse.swt.internal.win32.OS.GetOpenFileNameW ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.GetClassNameW
... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.DestroyCaret
... JNI]
Error occurred during initialization of VM
Unable to load native library: The specified procedure could not be found


On my son's home PC (XP Home Edition SP2) which works fine ...

.....
[Dynamic-linking native method java.util.zip.ZipFile.close ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.MoveMemory ... JNI]
[Dynamic-linking native method
org.eclipse.swt.internal.win32.OS.GetOpenFileNameW ... JNI]
[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.GetClassNameW
... JNI]
[Dynamic-linking native method
org.eclipse.swt.internal.win32.OS.CommDlgExtendedError ... JNI]
....

I presume the calls to "GetOpenFileNameW" and "GetClassNameW" are as the
FileDialog is opened.
Then on the working machine the call to "CommDlgExtendedError" is just after the
FileDialog has closed.

But what are the lines just as my work machine crashes....

[Dynamic-linking native method org.eclipse.swt.internal.win32.OS.DestroyCaret
... JNI]
Error occurred during initialization of VM
Unable to load native library: The specified procedure could not be found


Does this give anyone a clue as to what is happening?
Comment 27 Carolyn MacLeod CLA Friend 2005-04-21 16:00:46 EDT
Tim,
This is _very_ interesting. Good idea to trace JNI calls!

Next question:
Does your JNI call trace show DestroyCaret right before the crash every time?

If so, then it is a really big help, and we might be able to use that clue to 
track this down.

Thanks!
Carolyn
Comment 28 Carolyn MacLeod CLA Friend 2005-04-21 18:09:02 EDT
Xavier,

I agree that the workaround you discovered is Very Strange. It really makes 
one wonder what they (Mircosoft) are doing in their File Dialog code!

Would you be able to try running like Tim did in comment 26, with
   -verbose:jni -Xcheck:jni
in order to see if you crash after the same JNI call to DestroyCaret?

I will also have a look at everything that changed between eclipse 2.x and 
3.x, but one thing we do know changed is now we are allowing asynchronous 
events to occur while a native FileDialog is open. My next step would have 
been to turn that feature off and see if you still crash, but I want to 
explore the DestroyCaret angle first because it's more specific (i.e. we might 
be able to find the real problem, instead of masking it by turning off async 
events).
Comment 29 Tim Hood CLA Friend 2005-04-22 06:31:38 EDT
Carolyn, Xavier

I think I've solved it for me at least.  It didn't always stop with 
DestroyCaret as the last thing so I tried using 'WinDbg' to see if I could 
really see what was going on.  I got the following dumps from the command 
window and call stack.

I think what was going on is that the application/DLL CMExplorer.dll is hooked 
into Windows Explorer and was getting invoked as the cursor hovered over a 
file.  Then it loads other DLLs and then attempts to create a JVM of it's 
own.  I renamed the CMExplorer.dll and everything worked fine.  I'm 
investigating it with tech support of the company who make it to see if they 
can figure out what the underlying problem is.


Microsoft (R) Windows Debugger  Version 6.4.0007.2
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Program Files\Java\jdk1.5.0_01\bin\java.exe" -verbose:jni -
Xmx512M -jar startup.jar
Starting directory: c:\eclipse31m5a
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is:
ModLoad: 00400000 0040c000   java.exe
ModLoad: 7c900000 7c9b0000   ntdll.dll
ModLoad: 7c800000 7c8f4000   C:\WINDOWS\system32\kernel32.dll
ModLoad: 77dd0000 77e6b000   C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000   C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 77c10000 77c68000   C:\WINDOWS\system32\MSVCRT.dll
(1c8.cb4): Break instruction exception - code 80000003 (first chance)
eax=001a1eb4 ebx=7ffdc000 ecx=00000004 edx=00000010 esi=001a1f48 edi=001a1eb4
eip=7c901230 esp=0007fb20 ebp=0007fc94 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000202
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for 
ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc               int     3
0:000> g
ModLoad: 5cb70000 5cb96000   C:\WINDOWS\system32\ShimEng.dll
ModLoad: 6d6b0000 6d835000   C:\Program Files\Java\jdk1.5.0_01
\jre\bin\client\jvm.dll
ModLoad: 77d40000 77dd0000   C:\WINDOWS\system32\USER32.dll
ModLoad: 77f10000 77f56000   C:\WINDOWS\system32\GDI32.dll
ModLoad: 76b40000 76b6d000   C:\WINDOWS\system32\WINMM.dll
ModLoad: 6d2f0000 6d2f8000   C:\Program Files\Java\jdk1.5.0_01\jre\bin\hpi.dll
ModLoad: 76bf0000 76bfb000   C:\WINDOWS\system32\PSAPI.DLL
ModLoad: 6d680000 6d68c000   C:\Program Files\Java\jdk1.5.0_01
\jre\bin\verify.dll
ModLoad: 6d370000 6d38d000   C:\Program Files\Java\jdk1.5.0_01\jre\bin\java.dll
ModLoad: 6d6a0000 6d6af000   C:\Program Files\Java\jdk1.5.0_01\jre\bin\zip.dll
ModLoad: 6d530000 6d543000   C:\Program Files\Java\jdk1.5.0_01\jre\bin\net.dll
ModLoad: 71ab0000 71ac7000   C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71aa0000 71aa8000   C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 6d550000 6d559000   C:\Program Files\Java\jdk1.5.0_01\jre\bin\nio.dll
ModLoad: 035a0000 035ef000   
C:\eclipse31m5a\plugins\org.eclipse.swt.win32_3.1.0\os\win32\x86\swt-win32-
3123.dll
ModLoad: 774e0000 7761c000   C:\WINDOWS\system32\ole32.dll
ModLoad: 773d0000 774d2000   C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
ModLoad: 77f60000 77fd6000   C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 763b0000 763f9000   C:\WINDOWS\system32\comdlg32.dll
ModLoad: 7c9c0000 7d1d4000   C:\WINDOWS\system32\SHELL32.dll
ModLoad: 77120000 771ac000   C:\WINDOWS\system32\OLEAUT32.dll
ModLoad: 76390000 763ad000   C:\WINDOWS\system32\IMM32.dll
ModLoad: 74d90000 74dfb000   C:\WINDOWS\system32\USP10.dll
ModLoad: 5ad70000 5ada8000   C:\WINDOWS\system32\uxtheme.dll
ModLoad: 74720000 7476b000   C:\WINDOWS\system32\MSCTF.dll
ModLoad: 037c0000 037c8000   
C:\eclipse31m5a\plugins\org.eclipse.core.resources.win32_3.0.0\os\win32\x86
\core_3_1_0.dll
ModLoad: 74c80000 74cac000   C:\WINDOWS\system32\oleacc.dll
ModLoad: 76080000 760e5000   C:\WINDOWS\system32\MSVCP60.dll
ModLoad: 03980000 03c45000   C:\WINDOWS\system32\xpsp2res.dll
ModLoad: 76fd0000 7704f000   C:\WINDOWS\system32\CLBCATQ.DLL
ModLoad: 77050000 77115000   C:\WINDOWS\system32\COMRes.dll
ModLoad: 77c00000 77c08000   C:\WINDOWS\system32\VERSION.dll
ModLoad: 75cf0000 75d81000   C:\WINDOWS\System32\mlang.dll
ModLoad: 76380000 76385000   C:\WINDOWS\system32\msimg32.dll
(1c8.af4): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=02fba4a0 ebx=032ef008 ecx=00000000 edx=00000000 esi=06b700f8 edi=002913c8
eip=00a3942e esp=03d5f614 ebp=03d5f680 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
00a3942e 850500013d00     test    [003d0100],eax    ds:0023:003d0100=????????
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for 
C:\Program Files\Java\jdk1.5.0_01\jre\bin\client\jvm.dll -
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for 
C:\WINDOWS\system32\MSVCRT.dll -
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for 
C:\WINDOWS\system32\kernel32.dll -
0:017> g
(1c8.af4): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000007 ebx=00000006 ecx=00000007 edx=00000007 esi=0000006e edi=0000006e
eip=009e51cc esp=03d5f5c0 ebp=03d5f5e8 iopl=0         nv up ei ng nz na po cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010287
009e51cc 850500013d00     test    [003d0100],eax    ds:0023:003d0100=????????
0:017> g
ModLoad: 77b40000 77b62000   C:\WINDOWS\system32\appHelp.dll
ModLoad: 77a20000 77a74000   C:\WINDOWS\System32\cscui.dll
ModLoad: 76600000 7661d000   C:\WINDOWS\System32\CSCDLL.dll
ModLoad: 048d0000 049ec000   C:\Program Files\TortoiseCVS\TrtseShl.dll
ModLoad: 7c3a0000 7c41b000   C:\WINDOWS\system32\MSVCP71.dll
ModLoad: 7c340000 7c396000   C:\WINDOWS\system32\MSVCR71.dll
ModLoad: 04af0000 04b57000   C:\Program Files\TortoiseSVN\bin\tortoisesvn.dll
ModLoad: 771b0000 77256000   C:\WINDOWS\system32\WININET.dll
ModLoad: 77a80000 77b14000   C:\WINDOWS\system32\CRYPT32.dll
ModLoad: 77b20000 77b32000   C:\WINDOWS\system32\MSASN1.dll
ModLoad: 6eec0000 6eee0000   C:\Program Files\TortoiseSVN\bin\libapr.dll
ModLoad: 71a50000 71a8f000   C:\WINDOWS\system32\MSWSOCK.dll
ModLoad: 6ee60000 6ee89000   C:\Program Files\TortoiseSVN\bin\libaprutil.dll
ModLoad: 04b60000 04bf8000   C:\Program Files\TortoiseSVN\bin\libdb42.dll
ModLoad: 6ee50000 6ee5d000   C:\Program Files\TortoiseSVN\bin\libapriconv.dll
ModLoad: 04c00000 04c0c000   C:\Program Files\TortoiseSVN\bin\intl.dll
ModLoad: 76780000 76789000   C:\WINDOWS\system32\SHFOLDER.dll
ModLoad: 6e060000 6e066000   C:\Program Files\TortoiseSVN\iconv\windows-1252.so
ModLoad: 6ee40000 6ee45000   C:\Program Files\TortoiseSVN\iconv\_tbl_simple.so
ModLoad: 6e060000 6e066000   C:\Program Files\TortoiseSVN\iconv\windows-1252.so
ModLoad: 6ed50000 6ed55000   C:\Program Files\TortoiseSVN\iconv\utf-8.so
ModLoad: 6e060000 6e066000   C:\Program Files\TortoiseSVN\iconv\windows-1252.so
ModLoad: 6ee40000 6ee45000   C:\Program Files\TortoiseSVN\iconv\_tbl_simple.so
ModLoad: 6e060000 6e066000   C:\Program Files\TortoiseSVN\iconv\windows-1252.so
ModLoad: 6ed50000 6ed55000   C:\Program Files\TortoiseSVN\iconv\utf-8.so
ModLoad: 75f80000 7607c000   C:\WINDOWS\System32\browseui.dll
ModLoad: 77920000 77a13000   C:\WINDOWS\system32\SETUPAPI.dll
ModLoad: 76990000 769b5000   C:\WINDOWS\system32\ntshrui.dll
ModLoad: 76b20000 76b31000   C:\WINDOWS\system32\ATL.DLL
ModLoad: 5b860000 5b8b4000   C:\WINDOWS\system32\NETAPI32.dll
ModLoad: 769c0000 76a73000   C:\WINDOWS\system32\USERENV.dll
ModLoad: 77760000 778cc000   C:\WINDOWS\System32\shdocvw.dll
ModLoad: 754d0000 75550000   C:\WINDOWS\system32\CRYPTUI.dll
ModLoad: 76c30000 76c5e000   C:\WINDOWS\system32\WINTRUST.dll
ModLoad: 76c90000 76cb8000   C:\WINDOWS\system32\IMAGEHLP.dll
ModLoad: 76f60000 76f8c000   C:\WINDOWS\system32\WLDAP32.dll
ModLoad: 74e30000 74e9c000   C:\WINDOWS\system32\RichEd20.dll
ModLoad: 04e70000 04eda000   C:\Program Files\Telelogic\CM Synergy 6.3
\lib\CMExplorer.dll
ModLoad: 75a70000 75a91000   C:\WINDOWS\system32\MSVFW32.dll
ModLoad: 72830000 7292e000   C:\WINDOWS\system32\MFC42u.DLL
ModLoad: 5fd00000 5fd0d000   C:\WINDOWS\system32\MFC42LOC.DLL
ModLoad: 04fd0000 0524b000   C:\Program Files\Telelogic\CM Synergy 6.3
\jre\bin\server\jvm.dll
ModLoad: 6d1e0000 6d1e7000   C:\Program Files\Telelogic\CM Synergy 6.3
\jre\bin\hpi.dll
ModLoad: 6d310000 6d31e000   C:\Program Files\Telelogic\CM Synergy 6.3
\jre\bin\verify.dll
ModLoad: 6d220000 6d239000   C:\Program Files\Telelogic\CM Synergy 6.3
\jre\bin\java.dll
(1c8.e5c): Unknown exception - code c0000139 (first chance)
eax=00000000 ebx=00000000 ecx=0038e8a0 edx=00030608 esi=7c90e88e edi=00000001
eip=7c90eb94 esp=04d4ef6c ebp=04d4f068 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246
ntdll!KiFastSystemCallRet:
7c90eb94 c3               ret
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for 
C:\Program Files\Telelogic\CM Synergy 6.3\jre\bin\server\jvm.dll -
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for 
C:\Program Files\Telelogic\CM Synergy 6.3\lib\CMExplorer.dll -






 # ChildEBP RetAddr  Args to Child
WARNING: Stack unwind information not available. Following frames may be wrong.
00 04d4f068 7c81cab6 00000001 77e8f3b0 ffffffff ntdll!KiFastSystemCallRet
01 04d4f07c 77c39d45 00000001 04d4f098 77c39e78 kernel32!ExitProcess+0x14
02 04d4f088 77c39e78 00000001 00000000 04d4f0ac MSVCRT!strerror+0x2b4b
03 04d4f098 77c39e90 00000001 00000000 04060e50 MSVCRT!initterm+0x111
04 04d4f0ac 05130003 00000001 0509abbf 00000000 MSVCRT!exit+0x12
05 04d4f0c8 0509ad06 04d4f604 0512e65e 051f77a4 jvm_4fd0000!
JVM_FindSignal+0x54343
06 04d4f0d0 0512e65e 051f77a4 04d4f0e4 05215c3c jvm_4fd0000+0xcad06
07 04d4f604 0502994c 00000000 7c949d18 00030000 jvm_4fd0000!
JVM_FindSignal+0x5299e
08 04d4fbb4 050b5e1b 04d4fc2c 77c47fcc 00000000 jvm_4fd0000+0x5994c
09 04d4fbc4 04ea1f30 0340c830 04d4fc50 04d4fc2c jvm_4fd0000!
JNI_CreateJavaVM+0x4b
0a 00000000 00000000 00000000 00000000 00000000 CMExplorer!
Telelogic::ccm_client::remote::Java_com_continuus_ccm_1client_remote_Completion
NotifierNativeAdapter_nativeCompleted+0x29a0




Comment 30 Xavier CLA Friend 2005-04-22 10:20:16 EDT
(In reply to comment #28)

Awesome ! You mean the problem would come from Synergy !?

Indeed here in HP we all use Continuus (wich is crap IMHO) from Telelogic as
code manager.

But Tim, don't you break anything by renaming the dll ??

FYI my version of the dll in C:\Program Files\Telelogic\CM Synergy 6.3 is 1.0.3.23

Regards,
Xav
Comment 31 Tim Hood CLA Friend 2005-04-22 12:35:28 EDT
Xav

I just had a reply from Synergy tech support.  It's a known bug "We have a 
known bug on this: R20896 Synopsis: CMExplorer.dll makes IE and Mozilla crash".

Apparently it's fixed in Synergy 6.4.  For now if you don't use Active CM they 
say to "regsvr32 /u CMExplorer.dll" and reboot.

Tim
Comment 32 Xavier CLA Friend 2005-04-25 10:59:57 EDT
Oh great, it works ! Thank you Tim !!!

So this bug was not related to Eclipse finally...
This thing was tricky !

What should be do with the status of this bug now ?
Comment 33 Carolyn MacLeod CLA Friend 2005-04-25 15:14:19 EDT
Great! Good sleuthing, Tim! You too, Xavier!
Thank you both very much for your time and effort.

I am going to close this bug as "won't fix", which simply means that we aren't 
going to work around the problem... Synergy has to fix it. Which, as you noted 
in comment 31, they have already done.

Thanks again,
Carolyn
Comment 34 Xavier CLA Friend 2005-04-27 05:31:08 EDT
Thank you Carolyn, Tim and Steve for your precious help on this tricky crash
problem. That was a nice collaboration.
Comment 35 Steve Northover CLA Friend 2005-04-27 08:32:43 EDT
Open source works!
Comment 36 Carolyn MacLeod CLA Friend 2005-05-03 15:04:16 EDT
*** Bug 77454 has been marked as a duplicate of this bug. ***
Comment 37 simon CLA Friend 2008-03-12 11:53:01 EDT
*** Bug 222408 has been marked as a duplicate of this bug. ***
Comment 38 Eric Moffatt CLA Friend 2008-04-10 16:28:46 EDT
*** Bug 225005 has been marked as a duplicate of this bug. ***