Closed
Bug 132647
Opened 23 years ago
Closed 23 years ago
Crash when save a document by changing the charset in Composer
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
VERIFIED
WORKSFORME
mozilla1.0
People
(Reporter: amyy, Assigned: tetsuroy)
Details
(Keywords: crash, intl, regression, Whiteboard: adt1)
Attachments
(1 file)
|
23.30 KB,
text/html
|
Details |
Build: 03-20 trunk build / WinXP
03-20 trunk build / Linux RH7.2
03-21 trunk build / Mac 10.1.3
Steps:
1. Launch browser and load any web site, e.g. http://www.yahoo.com
2. File | Edit Page to bring it into Composer window.
3. File | Save As Charset, select a charset that different than the original
document, and save it.
Result:
Crash
| Reporter | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Comment 2•23 years ago
|
||
Crash -> nsbeta1
And it's also a regression, I don't see it on 03-08 trunk build.
Severity: normal → critical
Keywords: nsbeta1,
regression
Comment 3•23 years ago
|
||
Moving comment from bug 132067 and cc'ing Brian:
------- Additional Comment #30 From Brian Nesse 2002-03-21 13:13 -------
Hmm, I wonder if it's only a coincidence that this is also going though the font
code that is also causing bug 132370 (Mac only). (i.e.
mozilla/gfx/src/mac/nsDeviceContextMac.cpp vs. mozilla\gfx\src\nsDeviceContext.cpp)
No, this seems like accessing corrupt style data. Attinasi was working on a bug
that could be related -- bug 124333.
| Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
| Assignee | ||
Comment 6•23 years ago
|
||
The crash doesn't always occure. I can consistantly get
a crash only when you visit www.yahoo.com and SaveAsCharset to
EUC-JP. Other conditions don't crash.
Once I got a crash, the trace is different from the TalkBack.
(however, I was able to get the same TalkBack trace once. )
Here it is:
_NMSG_WRITE(int 255) line 221
_FF_MSGBANNER() line 169 + 10 bytes
_amsg_exit(int 25) line 324
_purecall() line 35 + 7 bytes
nsAString::Equals(const nsAString & {...}, const nsStringComparator & {...})
line 737 + 24 bytes
nsFont::Equals(const nsFont & {...}) line 96 + 141 bytes
nsFontCache::GetMetricsFor(nsFontCache * const 0x1069c118, const nsFont & {...},
nsIAtom * 0x0460edc8, nsIFontMetrics * & 0x00000000) line 645 + 12 bytes
DeviceContextImpl::GetMetricsFor(DeviceContextImpl * const 0x0fd9e760, const
nsFont & {...}, nsIAtom * 0x0460edc8, nsIFontMetrics * & 0x00000000) line 303
ComputeLineHeight(nsIRenderingContext * 0x10a3bf50, nsIStyleContext *
0x107b7cf0) line 2205 + 63 bytes
nsHTMLReflowState::CalcLineHeight(nsIPresContext * 0x10474028,
nsIRenderingContext * 0x10a3bf50, nsIFrame * 0x107b7c7c) line 2245 + 18 bytes
nsBlockReflowState::nsBlockReflowState(const nsHTMLReflowState & {...},
nsIPresContext * 0x10474028, nsBlockFrame * 0x107b7c7c, const
nsHTMLReflowMetrics & {...}, int 0) line 178 + 26 bytes
nsBlockFrame::Reflow(nsBlockFrame * const 0x107b7c7c, nsIPresContext *
0x10474028, nsHTMLReflowMetrics & {...}, const nsHTMLReflowState & {...},
unsigned int & 0) line 735
nsLineLayout::ReflowFrame(nsIFrame * 0x107b7c7c, nsIFrame * * 0x0011b7dc,
unsigned int & 0, nsHTMLReflowMetrics * 0x00000000, int & 0) line 1088 + 43 bytes
nsBlockFrame::ReflowInlineFrame(nsBlockReflowState & {...}, nsLineLayout &
{...}, nsLineList_iterator {...}, nsIFrame * 0x107b7c7c, unsigned char *
0x0011b024) line 3694 + 29 bytes
nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState & {...}, nsLineLayout &
{...}, nsLineList_iterator {...}, int * 0x0011b30c, unsigned char * 0x0011b0b8,
int 0, int 0) line 3575 + 32 bytes
nsBlockFrame::DoReflowInlineFramesMalloc(nsBlockReflowState & {...},
nsLineList_iterator {...}, int * 0x0011b30c, unsigned char * 0x0011b0b8, int 0,
int 0) line 3479 + 40 bytes
In both cases, I see crashing in nsAString.
cc'ing alecf and jag for nsString
This isn't a string problem. See comment 4.
| Reporter | ||
Comment 8•23 years ago
|
||
> I can consistantly get a crash only when you visit www.yahoo.com and
> SaveAsCharset to EUC-JP. Other conditions don't crash.
It is true that on latast trunk build, I don't see the crash for each time, but
still quite offen for me. E.g. 03-26 trunk build on Mac 10.1.3, when tried to
save page http://home.netscape.com/ja to iso-2022-jp, yahoo.com to IBM-850...etc.
| Assignee | ||
Comment 9•23 years ago
|
||
124333 is nsbeta1-'ed.
| Assignee | ||
Comment 10•23 years ago
|
||
shanjian: since we own the font module, do we know what kind of changes
in Font Style might have caused this problem? (Comment #4)
Comment 11•23 years ago
|
||
Impact Platform: ALL
Impact language users: ALL 560M 100%
Probability of hitting the problem: MID, save file in composer with different
charset is normal action
Severity if hit the problem in the worst case: crash
Way of recover after hit the problem: none
Risk of the fix: unknown
Potential benefit of fix this problem: other problem that caused by trashed
styledata
I tried to reproduce this bug and was unable to.
| Reporter | ||
Comment 14•23 years ago
|
||
Hmm, now it works for me with 04-02 trunk build.
| Assignee | ||
Comment 15•23 years ago
|
||
good. can we close it?
| Assignee | ||
Comment 16•23 years ago
|
||
This might have fixed by other bug.
Marking WFM. Please reopen if disagree.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 17•23 years ago
|
||
Verified it's works for me on 04-04 trunk build.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•