Closed Bug 182926 Opened 22 years ago Closed 22 years ago

Xft2 font-family issues in Phoenix? [@ nsTextFrame::TextStyle::TextStyle]

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED INVALID

People

(Reporter: joshk, Assigned: blizzard)

References

()

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021201 Phoenix/0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021201 Phoenix/0.4 The page loads fine but when I scroll down even a notch phoenix will crash with: 0x411ed462 in nsTextFrame::TextStyle::TextStyle(nsIPresContext*, nsIRenderingContext&, nsIStyleContext*) () Backtrace shows: #0 0x411ed462 in nsTextFrame::TextStyle::TextStyle(nsIPresContext*, nsIRenderingContext&, nsIStyleContext*) () from /usr/local/lib/phoenix/components/libgklayout.so #1 0x411e3a40 in nsTextFrame::Paint(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsFramePaintLayer, unsigned) () from /usr/local/lib/phoenix/components/libgklayout.so #2 0x411911ed in nsContainerFrame::PaintChild(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsIFrame*, nsFramePaintLayer, unsigned) () from /usr/local/lib/phoenix/components/libgklayout.so #3 0x411910d6 in nsContainerFrame::PaintChildren(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsFramePaintLayer, unsigned) () from /usr/local/lib/phoenix/components/libgklayout.so #4 0x411a5258 in nsHTMLContainerFrame::Paint(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsFramePaintLayer, unsigned) () from /usr/local/lib/phoenix/components/libgklayout.so #5 0x411911ed in nsContainerFrame::PaintChild(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsIFrame*, nsFramePaintLayer, unsigned) () from /usr/local/lib/phoenix/components/libgklayout.so #6 0x41188c2c in nsBlockFrame::PaintChildren(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsFramePaintLayer, unsigned) () from /usr/local/lib/phoenix/components/libgklayout.so #7 0x41188986 in nsBlockFrame::Paint(nsIPresContext*, nsIRenderingContext&, nsRect const&, nsFramePaintLayer, unsigned) () This also happens on a few sourceforge pages (notably the CVS pages.) I was suspecting it could be my choice of monospaced font but changing it made no difference. Reproducible: Always Steps to Reproduce: 1. Load the page (see URL) 2. Scroll down one notch with the arrow keys or a scroll wheel Actual Results: Bye bye Phoenix :( Expected Results: NOT segfaulted
More recently this bug has become somewhat less meaningful: 0x414a2fb2 in NSGetModule () from /usr/lib/mozilla-1.3a/components/libgklayout.so and much more of the same for different addresses, then: #18 0x403804d7 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0 #19 0x403af4c8 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #20 0x403afad3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #21 0x403afad3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #22 0x403afc6c in g_main_run () from /usr/lib/libglib-1.2.so.0 #23 0x402d17f7 in gtk_main () from /usr/lib/libgtk-1.2.so.0 #24 0x40e14916 in NSGetModule () from /usr/lib/mozilla-1.3a/components/libwidget_gtk.so #26 0x0804f317 in xre_main(int, char**, nsXREAppData const&) () #27 0x0804e458 in xre_main(int, char**, nsXREAppData const&) () and then the libc main stuff. A bit of simple HTML coding lifted from one of the offending web pages showed that a style tag that overrode the font for monospace was the culprit. PRE, TT {font-family: courier, sans-serif} removing courier or adding courier as a 'monospace' alias made it work fine, and courier on its own crashed. i agree with timeless, this looks like an Xft2 problem. but see if blizzard knows anything about it...
a more up to date summary line :]
Summary: phoenix+xft segfaults in nsTextFrame::TextStyle (11/30 CVS) → Xft2 font-family issues in Phoenix?
simple example to show breakage under phoenix+xft+gtk1.2
there's an assertion in that function, i bet we're failing it. if we do, we'd crash...
Assignee: blaker → blizzard
Component: General → Layout: Fonts and Text
Product: Phoenix → Browser
QA Contact: asa → ian
Summary: Xft2 font-family issues in Phoenix? → Xft2 font-family issues in Phoenix? [@ nsTextFrame::TextStyle::TextStyle]
Version: unspecified → Trunk
Doesn't crash here with moz and my gtk2 build. Can you run phoenix with this: NSPR_LOG_MODULES=XftFontLoad:5 ./phonix and let me know what comes out? I want to know what font it's using.
Blocks: xft_tracking
Attached is the log based on what Chris told me to do. It seems like it's going in a loop or something?
That's logging right before the crash, right?
I doubt it would be doing any logging after the crash :] (yes, it logs and halts/crashes. i tested this out by using console output for the log)
A simple re-run of fc-cache fixed everything. GUI text doesn't appear as Xft now, if that's what you are fond of (used to appear in whatever I set my Serif font to)
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: