Bug 32045 - Chinese GP - XtDestroyWidget
Summary: Chinese GP - XtDestroyWidget
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-Motif
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
: 27022 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-17 13:40 EST by Grant Gayed CLA Friend
Modified: 2008-04-14 10:30 EDT (History)
5 users (show)

See Also:


Attachments
snippet that recreates the GP (671 bytes, text/plain)
2003-02-17 13:42 EST, Grant Gayed CLA Friend
no flags Details
trace (7.02 KB, application/octet-stream)
2003-02-17 13:47 EST, Grant Gayed CLA Friend
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA Friend 2003-02-17 13:40:58 EST
M5 build

Run the attached snippet, and do the following:
- click in the Shell, and a new child Shell will be shown
- click in its Text, and turn on its IME (ctrl+space)
- now repeatedly:
  - press ESC to dismiss the child shell
  - click in the parent shell to create a new child shell
- eventually this will cause the attached GP

Thoughts:
- This seems to result from the IME following you around from one shell to the 
other, since turning off the IME makes the problem go away, and also since this 
does not happen in japanese where the IME is built into each shell
- It only happens if the child shell contains a Text or StyledText.  If it 
contains a Button, Canvas, etc. it doesn't happen
- This is the main problem that makes Eclipse in Chinese (gb2312 or gb18030) 
currently unusable
Comment 1 Grant Gayed CLA Friend 2003-02-17 13:42:08 EST
Created attachment 3527 [details]
snippet that recreates the GP
Comment 2 Grant Gayed CLA Friend 2003-02-17 13:47:58 EST
Created attachment 3528 [details]
trace
Comment 3 Grant Gayed CLA Friend 2003-02-18 15:04:43 EST
Felipe's back, so reassigning.
Comment 4 Grant Gayed CLA Friend 2003-02-27 11:47:22 EST
*** Bug 27022 has been marked as a duplicate of this bug. ***
Comment 5 Grant Gayed CLA Friend 2003-03-03 16:53:32 EST
I can make the snippet work by setting the XmNpreeditType on all Shells to Root 
at creation time.  This causes almost no behavioural difference on Chinese, but 
on Japanese it makes a big ugly input dialog appear.

So perhaps this property can be changed iff running under Chinese.  I'm not 
sure if there are other side effects of changing this property from its default 
value, but I'm guessing that there aren't.
Comment 6 Grant Gayed CLA Friend 2003-03-06 10:59:27 EST
Fuse-san, do you have a suggestion w.r.t. whether or not setting XmNpreeditType 
to Root when running in Chinese is a bad idea?
Comment 7 Masayuki Fuse CLA Friend 2003-03-07 02:16:26 EST
It makes sense because over the spot is used for Japanese, while root window is 
used for Chinese. XmNpreeditType should be used to change these mode.
Comment 8 Grant Gayed CLA Friend 2003-03-11 12:34:11 EST
Felipe pointed out to me that this seems to be a bug in chinput, which is 
RedHat's default Chinese IME.  When using a different IME this problem does not 
occur.
Comment 9 Grant Gayed CLA Friend 2003-03-18 14:11:57 EST
Downgrading to P2 since a bug needs to be logged with chinput, and I get the 
impression that chinput is not a common IME to use.
Comment 10 Felipe Heidrich CLA Friend 2004-06-23 16:57:15 EDT
This still happens with latest chinput (miniChinput 0.0.3-57).
It can be related with Bug67040.
Comment 11 Mike Wilson CLA Friend 2008-04-12 10:30:34 EDT
So bug 67040 has been fixed, and the remaining issues seems to be a problem with chinput. Should this bug be closed as NOT_ECLIPSE?
Comment 12 Steve Northover CLA Friend 2008-04-14 10:30:47 EDT
NOT_ECLIPSE