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

Bug 369753

Summary: UTF-16 Encoding Causing Eclipse to Crash
Product: [Eclipse Project] JDT Reporter: David Yost <dyost>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.8Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
.metadata .log none

Description David Yost CLA 2012-01-25 17:09:18 EST
Build Identifier: 20110916-0149

I have a project that is not primarily using UTF-16.  There are a couple of database scripts attached to the project however that I need to be stored in UTF-16 in the project because they have French characters in them and I need them to create a UTF-16 encoded database to support these characters.  The problem is that when I set the encoding to UTF-16 (I have also tried LE/BE just for the heck of it) the application crashes either when I hit OK on the properties dialog box, or when I try to open the file in the TextEditor in eclipse it crashes.  

I marked this as critical since it does cause an application crash for me and this is becoming an increasingly urgent matter since I've been trying to figure out what's going on for a few days now.  Hopefully you guys can help me figure out what's going on and get a fix together soon.

Thanks,
David

Reproducible: Sometimes

Steps to Reproduce:
1.Right click on a .sql file in an existing project with text file encoding inherited from container as Cp1252 and click on properties.
2.Under the resource tab in the Text file encoding section select Other: then pick UTF-16 from the drop down.
3.Click OK on the properties box to close the window and apply the changes.
4.If Eclipse does not lock up at this point open the file in the Eclipse TextEditor.
Comment 1 Remy Suen CLA 2012-01-25 18:46:25 EST
What JVM are you using?

Look for a VM crash log.
Comment 2 Dani Megert CLA 2012-01-26 03:20:21 EST
(In reply to comment #1)
> What JVM are you using?
> 
> Look for a VM crash log.

This is either next to the java.exe or the eclipse.exe.

Also, please attach your yourWorkspace/.metadata/.log  here.
Comment 3 David Yost CLA 2012-01-26 10:57:41 EST
Created attachment 210123 [details]
.metadata .log
Comment 4 Dani Megert CLA 2012-01-26 11:42:20 EST
David, which JRE are you using?

Is this reproducible? And if so, even directly after starting the workbench?

Also, can you reproduce the bug with this build:
http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/index.php
Comment 5 David Yost CLA 2012-01-26 12:23:38 EST
How do I check what JRE I'm using?  I want to say 1.7 but I'm not sure if that's the right number and can't seem to find it anywhere.  Also, I was able to find a way around the issue by not having to use UTF-16 encoding on the file I was using so this is no longer a critical issue for me.  As far as the new build how do I check what version of Eclipse I have?  All I see in the about is the build id not the version number and the exe file itself has no version number that I can see in the properties dialog.
Comment 6 Dani Megert CLA 2012-02-06 05:11:11 EST
(In reply to comment #5)
> How do I check what JRE I'm using?  I want to say 1.7 but I'm not sure if
> that's the right number and can't seem to find it anywhere.
1. Help > About Eclipse SDK
2. click 'Installation Details'
3. click 'Configuration'

Look for the 'java.vendor' and 'java.version' system properties.


> As far as the new
> build how do I check what version of Eclipse I have?  All I see in the about 
> is the build id not the version number

Then you have some strange install. The version should be in the 'About Eclipse SDK' dialog directly above 'Build id'.
Comment 7 Dani Megert CLA 2012-02-08 02:30:24 EST
There's not much I can do without steps / more info.