Closed
Bug 387564
Opened 17 years ago
Closed 17 years ago
sm crashes when setting message direction after changing charset
Categories
(Core :: Layout, defect, P4)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: eyalroz1, Assigned: smontagu)
References
Details
(Keywords: regression, Whiteboard: [dbaron-1.9:RpCt])
Attachments
(3 files, 3 obsolete files)
When viewing some messages in the soon-to-be-attached folder with the BiDi Mail UI extension enabled, there are:
SM trunk nightly ...
----------------------------
2007-07-01 no problems
2007-07-02 hang
2007-07-03 hang
2007-07-04 crash
...
2007-07-10 crash
Robert Kaiser suggests the culprit might be the following checkin:
2007-07-01 12:25 timeless%mozdev.org mozilla/js/jsd/jsd_xpc.cpp 1.82 25/18 Bug 385765 [@ jsdASObserver::Observe] You can't dereference a NULL nsCOMPtr with operator->()
r=dveditz sr=dveditz
Reporter | ||
Comment 1•17 years ago
|
||
The bug is triggered when the (single, Hebrew) message is selected.
Comment 2•17 years ago
|
||
Eyal said that http://talkback-public.mozilla.org/search/start.jsp?search=2&type=iid&id=TB33906923Z was the crash and that it regressed from -07-01 to -07-02, which led to this suspicion...
um, it should be easy to disable jsd (disable venkman, disable firebug, and then remove the jsd startup observer). if you still see the crash/hang, it isn't my fault.
please catch this in a debugger and grab me on irc.
Reporter | ||
Comment 4•17 years ago
|
||
(In reply to comment #3)
> disable venkman, disable firebug,
as extensions you mean?
> and then remove the jsd startup observer
How?
Reporter | ||
Comment 5•17 years ago
|
||
(In reply to comment #2)
> Eyal said that
http://talkback-public.mozilla.org/search/start.jsp?search=2&type=iid&id=TB33906923Z
> was the crash
No, I think this wasn't the crash. These crashes happen without talkback being triggered. This one is another crash IIRC.
> as extensions you mean?
yes
> and then remove the jsd startup observer
open the right compreg.dat and remove:
xpcom-autoregistration,JSDebugger Startup Observer,@mozilla.org/js/jsd/app-start-observer;2
app-startup,JSDebugger Startup Observer,service,@mozilla.org/js/jsd/app-start-observer;2
If those lines aren't there, then it isn't triggering itself on startup...
Reporter | ||
Comment 7•17 years ago
|
||
Have done as you suggested; bug still manifests with 2007-07-10 nightly (a crash).
Reporter | ||
Comment 8•17 years ago
|
||
Attachment #271696 -
Attachment is obsolete: true
Reporter | ||
Comment 9•17 years ago
|
||
The weird thing is, if I disable charset detection with this extension, it still triggers the crash, but if I remove the charset detection code altogether - it doesn't.
Attachment #271695 -
Attachment is obsolete: true
Reporter | ||
Comment 10•17 years ago
|
||
Now this is much more informative. The crash happens on the second call of the onload handler, after the charset is changed from "" (BTW, the fact that the charset has this value another bug, whose number I forget) to windows-1255. It is triggered by the attempt to set the direction style to rtl:
messageContentElement.style.direction = "rtl";
Attachment #271972 -
Attachment is obsolete: true
Reporter | ||
Updated•17 years ago
|
Summary: sm crashes when viewing message and using BiDi Mail UI → sm crashes when setting message direction after changing charset
Reporter | ||
Comment 11•17 years ago
|
||
Oh, small mistake: the reduced extension causes a hang, not a crash, with sm 2007-07-10 nightly.
Reporter | ||
Comment 12•17 years ago
|
||
With a debug build, pulled from cvs with MOZ_CO_DATE = 2007-07-11 00:00:00, instead of a crash or a hang, I get the following to assertions in infinite loop:
Assertion: redo line on totally empty line: 'aState.IsImpactedByFloat()', file ... mozilla/layout/generic/nsBlockFrame.cpp, line 3353
Assertion: unconstrained height on totally empty line: 'NS_UNCONSTRAINEDSIZE != aState.mAvilSpaceRect.height' file .../mozilla/layout/generic/nsBlockFrame.cpp, line 3355
I now have new suspects: July 1st checkins for:
2007-07-01 22:26 sharparrow1%yahoo.com mozilla/layout/generic/nsBlockReflowState.cpp 3.528 2/0 Bug 386147: Don't cut off floats at the bottom of the page (part 1). r+sr=roc
2007-07-01 22:19 sharparrow1%yahoo.com mozilla/layout/generic/nsBlockReflowState.cpp 3.527 2/0 Bug 343595: {inc} overflow:hidden float in overflow:hidden div doesn't get repositioned correctly. r+sr=roc
2007-07-01 18:20 roc+%cs.cmu.edu mozilla/layout/generic/nsTextFrameThebes.cpp 3.47 48/21 Bug 386122. Allow text runs to end at preformatted newlines. Speeds up loading of plain-text files a lot because we don't have to have a textrun for the entire file. r=smontagu
2007-07-01 18:15 roc+%cs.cmu.edu mozilla/layout/reftests/text/reftest.list 1.2 3/0 Bug 9101. Soft hyphen tests.
2007-07-01 18:14 roc+%cs.cmu.edu mozilla/layout/generic/nsTextFrameThebes.cpp 3.46 52/30 Bug 9101. Fix various soft-hyphen bugs, primarily related to detecting when hyphenation is needed during a second-pass break-forcing line reflow. r=smontagu
Comment 13•17 years ago
|
||
It's quite unlikely to be my checkins; it doesn't look like there are any floats involved.
Reporter | ||
Comment 14•17 years ago
|
||
finally, a stack trace
Reporter | ||
Updated•17 years ago
|
Keywords: regression
Version: unspecified → Trunk
Comment 15•17 years ago
|
||
(In reply to comment #13)
> It's quite unlikely to be my checkins; it doesn't look like there are any
> floats involved.
Umm, are you sure? The stack trace has aState.IsImpactedByFloat() stuff at the top...
Reporter | ||
Comment 16•17 years ago
|
||
The crash/hang happens with the patches upto 19:00 checked in, doesn't happen
with the patch upto 17:00. Ok, new prime suspect: bug 386122.
Depends on: 386122
Reporter | ||
Updated•17 years ago
|
Assignee: mail → nobody
Component: MailNews: Main Mail Window → Layout
Product: Mozilla Application Suite → Core
QA Contact: layout
Reporter | ||
Updated•17 years ago
|
Flags: blocking1.9?
Comment 17•17 years ago
|
||
(In reply to comment #15)
> (In reply to comment #13)
> > It's quite unlikely to be my checkins; it doesn't look like there are any
> > floats involved.
>
> Umm, are you sure? The stack trace has aState.IsImpactedByFloat() stuff at the
> top...
That's irrelevant; the assertion is firing because something that shouldn't happen without floats is in fact happening without floats.
Comment 18•17 years ago
|
||
Maybe related to bug 389428?
Reporter | ||
Comment 19•17 years ago
|
||
Probably not, as the checkin which triggers this does not involve gfxTextRun::CompressedGlyph::IsClusterStart AFAICT.
Updated•17 years ago
|
Flags: blocking1.9? → blocking1.9+
Updated•17 years ago
|
Whiteboard: [dbaron-1.9:RpCt]
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → smontagu
Assignee | ||
Comment 20•17 years ago
|
||
Is this still happening? I didn't manage to reproduce with current trunk
Reporter | ||
Comment 21•17 years ago
|
||
Still seeing it with sm trunk nightly from 2007-10-19.
Priority: -- → P4
Reporter | ||
Comment 22•17 years ago
|
||
Seems to WFM with sm trunk nightly from 2007-12-06.
Assignee | ||
Comment 23•17 years ago
|
||
Neither I nor the reporter can reproduce in current builds.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•