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

Bug 370362

Summary: Duplicate characters inserted with Dragon Naturally Speaking.
Product: [Eclipse Project] Platform Reporter: Ted Young <mail>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, erik.winge, mail
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ted Young CLA 2012-02-01 13:43:23 EST
Build Identifier: 201201191000

When using Dragon Actually Speaking version 11.5 to enter text into an editor, the 1st character is doubled. For example, when entering "test", "ttest" is inserted. Similarly, when inserting a new line, 2 new lines are inserted (i.e. the
is inserted twice).  

This behavior did not occur in Eclipse version 3.6. The behavior is reproducible in Java, XML, and HTML editors.

I understand that Dragon Naturally Speaking is not officially supported by Eclipse. However, I suspect this may be a general accessibility issue and might affect other systems. 

Since Dragon is not freely available I will be happy to assist in debugging and testing this issue.



Reproducible: Always

Steps to Reproduce:
1.Open a Java editor.
2.Dictate a phrase.
3.The 1st letter of the phrase will be duplicated.
Comment 1 Dani Megert CLA 2012-02-01 15:00:20 EST
> Since Dragon is not freely available I will be happy to assist in debugging 
> and testing this issue.

Can you try in one of the StyledText snippets:
http://www.eclipse.org/swt/snippets/

?
Comment 2 Ted Young CLA 2012-02-01 15:37:36 EST
I used a snippet and tested the StyledText component directly using the 3.7.1 version of SWT. Interestingly, the duplication occurs 100% of the time using the 64-bit version, but is much less frequent in the 32-bit version.

So, I set up a 2nd test. I used the 32-bit version of Eclipse on a 32-bit Java VM. As with the test above, the duplication occurs, but only rarely. However, the IDE stalls on the order of several seconds whenever the auto complete window is brought up.

Is there a way I can debug character handling?
Comment 3 Ted Young CLA 2012-02-01 15:51:15 EST
I performed a closer review of my environment and found an explanation for the intermittent behavior on the 32-bit version. Here is what I have so far:

64-bit version of SWT running on a 64-bit VM (or a 64-bit version of Eclipse running on a 64-bit VM): the duplication of initial letters occurs 100% of the time.

32-bit version of SWT running in a 32-bit VM (or a 32-bit version of Eclipse running on a 32-bit VM): no duplication occurs at all. Dragon works as expected.

Part of the problem in my previous post was due to the fact that I was running the 32-bit version of Eclipse on the 64-bit VM, which is apparently the default on my system. This was causing chaotic behavior.

Ted
Comment 4 Ted Young CLA 2012-02-01 20:20:21 EST
I found another Java-based text editor that I could run on a 64-bit VM (jEdit).  Despite using Swing, it exhibits the same duplication of initial characters that I was seeing in Eclipse. It appears that this issue is related to Dragon and the 64-bit VM, and is not isolated to Eclipse or SWT. As such, this issue can be closed.

Thank you for helping me diagnose this problem.
Comment 5 Dani Megert CLA 2012-04-03 03:53:26 EDT
*** Bug 375910 has been marked as a duplicate of this bug. ***
Comment 6 Erik Winge CLA 2012-04-03 05:51:10 EDT
I experience the same problem, as reported in Bug 375910. However, switching to 32 bits JRE/JDK 7 doesn't seem to help. Neither does downgrading to Eclipse 3.6.

Could the problem be with newer versions of Java?
Comment 7 Dani Megert CLA 2012-04-03 06:08:33 EDT
(In reply to comment #6)
> I experience the same problem, as reported in Bug 375910. However, switching to
> 32 bits JRE/JDK 7 doesn't seem to help. Neither does downgrading to Eclipse
> 3.6.
> 
> Could the problem be with newer versions of Java?

Could be. I would try JRE 6 and make sure that the JRE, Eclipse and Dragon work for the the same bit length.