Bug 34808 - Workbench freeze and crashes when run with the Apple Java 1.4.1 (final)
Summary: Workbench freeze and crashes when run with the Apple Java 1.4.1 (final)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P1 blocker (vote)
Target Milestone: 2.1 RC3   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 34914 34953 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-12 09:44 EST by Christian LEMER CLA
Modified: 2003-03-21 05:37 EST (History)
3 users (show)

See Also:


Attachments
macosx launcher (18.33 KB, application/octet-stream)
2003-03-12 17:51 EST, Andre Weinand CLA
no flags Details
source code patch (1.75 KB, text/plain)
2003-03-12 23:35 EST, Andre Weinand CLA
no flags Details
the fix (1.29 KB, patch)
2003-03-14 06:29 EST, Andre Weinand CLA
no flags Details | Diff
a better fix (1.82 KB, patch)
2003-03-14 07:18 EST, Andre Weinand CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian LEMER CLA 2003-03-12 09:44:25 EST
I updated to Java 1.4.1 (final version) using the standard OS X installer on a fresh OS X 1.2.4 install.

Run a fresh Runtime-Workbench selecting the JVM 1.4.1 OS X as JRE.

The "Main" application displays but the Welcome "editor" is not filled... then it crashes.

Error Log is empty!

Console.log report.
**********

Date/Time:  2003-03-12 11:48:49 +0100
OS Version: 10.2.4 (Build 6I32)
Host:       ucmbmac1.ulb.ac.be

Command:    Main
PID:        1245

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

*** Date: 12/03/03 15:37

*** System properties:
awt.toolkit=com.apple.mrj.internal.awt.publicpeers.VToolkit
com.apple.javaws.vmversions=1.4.1 1.3.1 
file.encoding=MacRoman
file.encoding.pkg=sun.io
file.separator=/
gopherProxySet=false
java.awt.fonts=
java.awt.graphicsenv=sun.awt.MacGraphicsEnvironment
java.awt.printerjob=com.apple.mrj.internal.awt.printing.MacPrinterJob
java.class.path=/Volumes/Users/chris/Desktop/eclipse-SDK-RC2/Eclipse.app/Contents/Resources/Java/startup.jar
java.class.version=47.0
java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext
java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home
java.io.tmpdir=/tmp
java.library.path=/Volumes/Users/chris/Desktop/eclipse-SDK-RC2/Eclipse.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/usr/lib:/usr/lib/java:/lib:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.3.1-root_1.3.1_020714-12:46
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.3
java.vendor=Apple Computer, Inc.
java.vendor.url=http://apple.com/
java.vendor.url.bug=http://developer.apple.com/java/
java.version=1.3.1
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="Apple Computer, Inc."
java.vm.version=1.3.1_03-69
line.separator=

mrj.version=3.3
os.arch=ppc
os.name=Mac OS X
os.version=10.2.4
path.separator=:
sun.boot.class.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign.jar:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar
sun.boot.library.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries
sun.cpu.endian=big
sun.cpu.isalist=
sun.io.unicode.encoding=UnicodeBig
user.dir=/Volumes/Users/chris/Desktop/eclipse-SDK-RC2
user.home=/Volumes/Users/chris
user.language=fr
user.name=chris
user.region=FR
user.timezone=Europe/Brussels

*** Features:
org.eclipse.platform (null) "org.eclipse.platform"

*** Plug-in Registry:
org.apache.ant (1.5.2) "Apache Ant"
org.apache.lucene (1.2.1) "Apache Lucene"
org.apache.xerces (4.0.7) "Xerces Based XML Parser"
org.eclipse.ant.core (2.1.0) "Ant Build Tool Core"
org.eclipse.compare (2.1.0) "Compare Support"
org.eclipse.core.boot (2.1.0) "Core Boot"
org.eclipse.core.resources (2.1.0) "Core Resource Management"
	org.eclipse.core.resources.macosx (2.1.0) "%fragmentName"
org.eclipse.core.runtime (2.1.0) "Core Runtime"
org.eclipse.debug.core (2.1.0) "Debug Core"
org.eclipse.debug.ui (2.1.0) "Debug UI"
org.eclipse.help (2.1.0) "Help System Core"
org.eclipse.help.appserver (2.1.0) "Help Application Server"
org.eclipse.help.ui (2.1.0) "Help System UI"
org.eclipse.help.webapp (2.1.0) "Help System Webapp"
org.eclipse.jdt (2.1.0) "Eclipse Java Development Tools"
org.eclipse.jdt.core (2.1.0) "Java Development Tools Core"
org.eclipse.jdt.debug (2.1.0) "JDI Debug Model"
org.eclipse.jdt.debug.ui (2.1.0) "JDI Debug UI"
org.eclipse.jdt.doc.isv (2.1.0) "Eclipse JDT Plug-in Developer Guide"
org.eclipse.jdt.doc.user (2.1.0) "Eclipse Java Development User Guide"
org.eclipse.jdt.junit (2.1.0) "Java Development Tools JUnit support"
org.eclipse.jdt.launching (2.1.0) "Java Development Tools Launching Support"
org.eclipse.jdt.launching.macosx (2.1.0) "Mac OS X Launcher"
org.eclipse.jdt.macosx (2.1.0) "Eclipse Java Development Tools (Mac OS X)"
org.eclipse.jdt.macosx.source (2.1.0) "Eclipse Java Development Tools SDK (Mac OS X)"
org.eclipse.jdt.source (2.1.0) "Eclipse Java Development Tools SDK"
org.eclipse.jdt.ui (2.1.0) "Java Development Tools UI"
org.eclipse.jface (2.1.0) "JFace"
org.eclipse.jface.text (2.1.0) "JFace Text"
org.eclipse.pde (2.1.0) "Eclipse Plug-in Development Environment"
org.eclipse.pde.build (2.1.0) "Plug-in Development Environment Build Support"
org.eclipse.pde.core (2.1.0) "Plug-in Development Core"
org.eclipse.pde.doc.user (2.1.0) "Eclipse Plug-in Development User Guide"
org.eclipse.pde.runtime (2.1.0) "Plug-in Development Environment Runtime"
org.eclipse.pde.source (2.1.0) "Eclipse Plug-in Development Environment Source Code"
org.eclipse.pde.ui (2.1.0) "Plug-in Development UI"
org.eclipse.platform (2.1.0) "Eclipse Platform"
org.eclipse.platform.doc.isv (2.1.0) "Eclipse Platform Plug-in Developer Guide"
org.eclipse.platform.doc.user (2.1.0) "Eclipse Workbench User Guide"
org.eclipse.platform.macosx.carbon (2.1.0) "Eclipse Platform (Mac OS X Carbon)"
org.eclipse.platform.macosx.carbon.source (2.1.0) "Eclipse Platform Plug-in Developer Resources (Mac OS X Carbon)"
org.eclipse.platform.source (2.1.0) "Eclipse Platform Plug-in Developer Resources"
org.eclipse.sdk.macosx.carbon (2.1.0) "Eclipse Project SDK (Mac OS X Carbon)"
org.eclipse.search (2.1.0) "Search Support"
org.eclipse.swt (2.1.0) "Standard Widget Toolkit"
	org.eclipse.swt.carbon (2.1.0) "%fragmentName"
org.eclipse.team.core (2.1.0) "Team Support Core"
org.eclipse.team.cvs.core (2.1.0) "CVS Team Provider Core"
org.eclipse.team.cvs.ssh (2.1.0) "CVS SSH Core"
org.eclipse.team.cvs.ui (2.1.0) "CVS Team Provider UI"
org.eclipse.team.ui (2.1.0) "Team Support UI"
org.eclipse.text (2.1.0) "Text"
org.eclipse.tomcat (4.0.6) "Tomcat Wrapper"
org.eclipse.ui (2.1.0) "Eclipse UI"
org.eclipse.ui.editors (2.1.0) "Default Text Editor"
org.eclipse.ui.externaltools (2.1.0) "External Tools"
org.eclipse.ui.views (2.1.0) "Views"
org.eclipse.ui.workbench (2.1.0) "Workbench"
org.eclipse.ui.workbench.texteditor (2.1.0) "Text Editor Framework"
org.eclipse.update.core (2.1.0) "Install/Update Core"
org.eclipse.update.ui (2.1.0) "Install/Update UI"
org.eclipse.update.ui.forms (2.1.0) "Install/Update Forms"
org.junit (3.8.1) "JUnit Testing Framework"

*** User Preferences:
#Wed Mar 12 15:37:38 CET 2003
org.eclipse.jdt.core=2.1.0
org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8"?>\n<vmSettings defaultVM\="52,org.eclipse.jdt.internal.launching.macosx.MacOSXType5,1.4.1">\n    <vmType id\="org.eclipse.jdt.internal.launching.macosx.MacOSXType">\n        <vm id\="1.3.1"\n            javadocURL\="file\:/Developer/Documentation/Java/Reference/1.3.1"\n            name\="JVM 1.3.1" path\="/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home"/>\n        <vm id\="1.4.1"\n            javadocURL\="file\:/Developer/Documentation/Java/Reference/1.4.1"\n            name\="JVM 1.4.1 (MacOS X Default)" path\="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home"/>\n    </vmType>\n</vmSettings>\n
org.eclipse.jdt.ui/fontPropagated=true
org.eclipse.jdt.core/org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_SRC=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home/src.jar
org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=/Volumes/Users/chris/Desktop/eclipse-SDK-RC2
org.eclipse.pde.core=2.1.0
org.eclipse.debug.ui=2.1.0
org.eclipse.debug.ui/org.eclipse.debug.ui.lastLaunchConfigSelection=<?xml version\="1.0" encoding\="UTF-8"?>\n<launchConfiguration local\="true" path\="New_configuration.launch"/>\n
org.eclipse.pde.core/platform_path=/Volumes/Users/chris/Desktop/eclipse-SDK-RC2
org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_SRCROOT=src
org.eclipse.jdt.ui/org.eclipse.jface.textfont=1|Monaco|12|0|CARBON|1|;
org.eclipse.ui.workbench=2.1.0
org.eclipse.ui.workbench/WELCOME_DIALOG=false
org.eclipse.jdt.launching=2.1.0
org.eclipse.jdt.ui=2.1.0
org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_LIB=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Classes/classes.jar

*** Update Manager Log:

Configuration=12 mars 03 15:37:39
Is current configuration=true

Date=12/03/03 15:37
Activities=file:/Volumes/Users/chris/Desktop/eclipse-SDK-RC2/
Action=Site installed
Status=Success

Date=12/03/03 15:37
Activities=file:/Volumes/Users/chris/Desktop/eclipse-SDK-RC2/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml
Action=Reconcile
Status=Success
Comment 1 DJ Houghton CLA 2003-03-12 13:33:02 EST
Andre, which VM do you use? Have you been able to get Eclipse running with this 
VM?
Comment 2 Christian LEMER CLA 2003-03-12 17:03:50 EST
I see that the bug report has been transferred to the platform-core... Maybe this is right or maybe my Summary was a little misleading.I just want to point out that the crash only appear when running a new workbench using VM 1.4.1 when I want to test new plugins that have been developed with 1.4.1 specific feature (like assert)In that case the "Main" application that appear when using the "Run as... Runtime Workbench" crashes.... just to be sure the bug is well described... it's a very very important issue for us!
Comment 3 Andre Weinand CLA 2003-03-12 17:50:50 EST
I'm on the IBM WebSphere conference right now, so my time to track the 1.4.1 final issues 
is somewhat limited. However, I've managed to download the 1.4.1. And I've found a 
workaraound for the problem that Eclipse started from the workspace under 1.4.1 would 
not activate and would crash after some mouseclicks. However, there seems to be a 
more severe issue with the 1.4.1 JVM which prevents me from rebuilding the workspace 
under 1.4.1.
Anyway, I've attached a new MacOS X launcher. Please give it a try.
Comment 4 Andre Weinand CLA 2003-03-12 17:51:40 EST
Created attachment 4080 [details]
macosx launcher
Comment 5 Christian LEMER CLA 2003-03-12 18:49:44 EST
I try with the new launcher and it seems to work for the different tests I've made. It's quite late in Belgium (00:30), so I could not go further but I'll install this version on 4 developer stations tomorrow (they are stuck with Java 1.4.1 anyway).

A have still a question about Java 1.4.1 support and could not find any answer after browsing the site with quite an effort... We are very happy with the OS X version of eclipse (even if it was supposed to be only an Early Access version as described in the project plan 2.1).  We would like to develop some eclipse plugins but using Java 1.4.1 specific features (i.e. assert). 

I notice that if I change the Java.JVMVersion in the Info.plist to 1.4.1 so that the eclipse application starts with Java 1.4.1, then it ends up with severe compilation problems (build failure with only big numbers as result). It's not really a big problem because I could run Eclipse in 1.3.1 and still compile and test using  Java 1.4.1 (It's fixed now with the new mac laucher you send me). But it seems that the plugins developped that way could only run in an Eclipse configured with as Java.JVMVersion 1.4.1...

So, before writing a bug report for this compilation issue, I would like to know if the Eclipse 2.1 for Mac OS X is supposed to be able to run with Java 1.4.1 as primary JVM... in other words, am I supposed to be able to run Plugins developed with Java 1.4.1 specific features?

Many thanks for your time and for the very efficient solution to the bug!

P.S.: I'm not very familiar with this bug report system... should I set the status to FIXED or should I wait the next IntegrationBuild, NightBuild or Release Candidate to do it?
Comment 6 Andre Weinand CLA 2003-03-12 23:23:50 EST
Yes, there is another severe bug #34658  that only shows up in the final version of 
Apple's 1.4.1 VM. A fix seems to have been found.
Comment 7 Andre Weinand CLA 2003-03-12 23:28:27 EST
fixed.
Comment 8 Andre Weinand CLA 2003-03-12 23:35:50 EST
Created attachment 4085 [details]
source code patch
Comment 9 Andre Weinand CLA 2003-03-12 23:37:50 EST
fixed for RC3
Comment 10 Darin Wright CLA 2003-03-13 11:25:29 EST
*** Bug 34914 has been marked as a duplicate of this bug. ***
Comment 11 ulrich köster CLA 2003-03-13 11:32:13 EST
Thanks for the patch Andre. Works great.
Comment 12 DJ Houghton CLA 2003-03-13 16:03:12 EST
*** Bug 34953 has been marked as a duplicate of this bug. ***
Comment 13 Andre Weinand CLA 2003-03-14 05:36:48 EST
Approved for RC3 by Erich and Andre
Comment 14 Andre Weinand CLA 2003-03-14 06:29:14 EST
Created attachment 4129 [details]
the fix
Comment 15 Andre Weinand CLA 2003-03-14 07:18:43 EST
Created attachment 4130 [details]
a better fix
Comment 16 Andre Weinand CLA 2003-03-14 07:20:18 EST
Fix reviewed by EG
released for I20030314
Comment 17 Martin Aeschlimann CLA 2003-03-21 05:08:00 EST
chris, can you verify that this bug is fixed ? Thanks a lot!
Comment 18 Andre Weinand CLA 2003-03-21 05:37:06 EST
[Chris, just add the comment "Verified for RC3" and check "Mark bug as Verified"]