Closed
Bug 8205
Opened 27 years ago
Closed 27 years ago
Editor crashes when trying to render traditional chinese (hanzi) on the Mac
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: tague, Assigned: kinmoz)
References
Details
The editor crashes with an PowerPC unmapped memory exception in
nsRangeList::SetOriginalAnchorPoint when attempting to type hanzi in Traditional
Chinese. The problem doesn't occur until the pinyin is first converted to Hanzi
. This may be an input method problem or it could be a layout problem with
Chinese, so I'm going to assign to myself first to triage - then will reassign
later if it isn't an IME problem.
Assignee: tague → rickg
Status: ASSIGNED → NEW
Component: Internationalization → Layout
Moving this bug from internationalization to layout. The problem is not with
the TSM code. I'm getting a null rendering context error after the IMETextTxn
inserts the chinese hanzi text into the document, which causes a crash.
Steve -- I'd like you to confirm that the transaction is well formed before I
spend time tracing this. THANKS!
tague, could you please use the editor API logging code to capture your test
case?
1. fire up the editor
2. debug > start log
3. do the insert to cause the problem.
4. attach the log (journal.js in your bin directory) and the test case HTML file
in it's original state to this report.
I'll take a look. How high a priority is this bug? It's set to P3
severity=normal, which seems low for a crash.
that won't be possible.
the editor API logging isn't implemented for the IME API's.
Assignee: buster → kin
Status: ASSIGNED → NEW
Target Milestone: M9 → M10
Kin, can you work with tague to enable API logging for IME, if it isn't already
done.
I can modify the logging mechanism to log the IME transactions and API calls.
But since none of the IME API calls are exposed to JavaScript, we can't replay
them.
Comment 8•27 years ago
|
||
tague or teruko: can this be reproduced on any other platforms?
I looked into what it would take to expose the IME editor methods to JavaScript
for API Logging. The one snag I see is that the SetCompositionString() uses
nsIDOMTextRangeList which is not XPIDLized. I don't see any way to recreate an
nsIDOMTextRangeList in JavaScript.
Tague, can you remind me why the IME stuff couldn't use nsEditor::InsertText()?
| Reporter | ||
Comment 10•27 years ago
|
||
InsertText is a simple insert into the text buffer, IME's require a more complex
editing method. The entire composition string has to be modified until the
string is committed - at which point the composition string becomes fixed and
doesn't change. InsertText won't support this.
Also, the IME composition string requires more complex logic for setting the
selection and insertion point than insert text. Depending on the text range
information sent from the front end/platform dependent code, it may draw a
selection or an insertion point.
Originally, we had faked IME text insertion using a combination of setting the
selection and repeated InsertText's; however, that was only a temporary measure
to get us going - the IME composition string text also needs to have cursor
movement and selections set -- which can't be done if we are using the selection
to delete the previous composition string.
-----
Also moving this to M9, I really need this fixed sooner than later, since I am
in a big push right now to get outside developers testing against their favorite
input methods.
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 11•27 years ago
|
||
this got fixed somewhere down the line
Updated•27 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•