Closed Bug 194644 Opened 22 years ago Closed 22 years ago

ISO10646-1 fonts not recognised + Talkback crashes in Xprint module [@ nsRenderingContextXlib::GetTextDimensions]

Categories

(Core Graveyard :: Printing: Xprint, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.3final

People

(Reporter: smontagu, Assigned: roland.mainz)

References

Details

(Keywords: crash, regression, topcrash, Whiteboard: fixed1.3)

Crash Data

Attachments

(3 files)

Some recent talkback reports with crashes in Xprint
Attached file Talkback report
The TB IDs are: 17296826 17285461 17285457 17285455 17218471 17204322 17204321
Swapping QA<---->Owner...
Assignee: katakai → Roland.Mainz
OS: Windows 2000 → Linux
QA Contact: Roland.Mainz → katakai
Looks something in nsRenderingContextXlib::GetTextDimensions() is going wrong... two problems: - The crash seems to be related to the existance of certain fonts. For example I cannot reproduce the crash while printing http://www.aljazeera.net when I do not have any arabic fonts installed. - The "fast test measurement" code path is only enabled on i386 platforms, marking it hard for me to hunt this issue... ;-(
Status: NEW → ASSIGNED
Summary: Talkback crashes in Xprint module → Talkback crashes in Xprint module [nsRenderingContextXlib::GetTextDimensions()]
Depends on: 194651
I filed bug 194651 ("Need workaround for crashers in nsRenderingContextXlib::GetTextDimensions()") to get a quick workaround for 1.3final and use this bug to hunt the root of the problem...
Keywords: crash
Target Milestone: --- → mozilla1.4beta
rbs/smontagu: Is it (theoretically) possible that someone may (accidently) pass |nsnull| for the |GetTextDimensions|'s |aString| argument ?
The problem in nsRenderingContextXlib::GetTextDimensions when printing Arabic is conceivably related to bug 188759, which I hope to check in the fix for today.
Attached file Stack from TB 17218471
The stacks in the talkback reports are all much the same. Here is one example.
Looks that |mCCMap| is |nsnull|: -- snip -- WARNING: SetUpFontCharSetInfo: charset = 'jis_0201', file nsFontMetricsXlib.cpp, line 2581 Program received signal SIGSEGV, Segmentation fault. 0x42a604b9 in nsRenderingContextXlib::GetTextDimensions (this=0x8a09d40, aString=0xbfff5ac4, aLength=7, aDimensions=@0xbfff5820, aFontID=0x0) at nsRenderingContextXlib.cpp:2027 2027 if (CCMAP_HAS_CHAR((*font)->mCCMap, c)) { (gdb) print font $1 = (nsFontXlib **) 0x8a68cd4 (gdb) print *font $2 = (nsFontXlib *) 0x8a6b5b0 (gdb) print (*font)->mCCMap $3 = (PRUint16 *) 0x0 -- snip --
The issue was more simple than I thought... :) Actually the issue is identical to the bug that all iso106464-1 fonts cause crashes or are inaccessible by the Xlib port. After some reaching I figured-out that the original patch from bug 187125 ("GTK+ and Xlib gfx should support multiple device instances") forgot to handle the special case of the ISO-10646-1 fonts - this patch now fixes that.
Target Milestone: mozilla1.4beta → mozilla1.3beta
Comment on attachment 115444 [details] [diff] [review] Patch for 2003-02-07-08-trunk Requesting r=/sr= ...
Attachment #115444 - Flags: superreview?(roc+moz)
Attachment #115444 - Flags: review?(smontagu)
Summary: Talkback crashes in Xprint module [nsRenderingContextXlib::GetTextDimensions()] → ISO10646-1 fonts not recognised + Talkback crashes in Xprint module [nsRenderingContextXlib::GetTextDimensions()]
Severity: normal → blocker
Flags: blocking1.3?
Priority: -- → P1
Whiteboard: [patch in hand, waiting for r=/sr=/a=]
Target Milestone: mozilla1.3beta → mozilla1.3final
Comment on attachment 115444 [details] [diff] [review] Patch for 2003-02-07-08-trunk r=smontagu
Attachment #115444 - Flags: review?(smontagu) → review+
Attachment #115444 - Flags: superreview?(roc+moz) → superreview+
Comment on attachment 115444 [details] [diff] [review] Patch for 2003-02-07-08-trunk Requesting a= for 1.3final branch...
Attachment #115444 - Flags: approval1.3?
Comment on attachment 115444 [details] [diff] [review] Patch for 2003-02-07-08-trunk a=asa (on behalf of drivers) for checkin to the 1.3 branch.
Attachment #115444 - Flags: approval1.3? → approval1.3+
Flags: blocking1.3? → blocking1.3-
adding topcrash to keywords (for posterity)
Keywords: topcrash
Summary: ISO10646-1 fonts not recognised + Talkback crashes in Xprint module [nsRenderingContextXlib::GetTextDimensions()] → ISO10646-1 fonts not recognised + Talkback crashes in Xprint module [@ nsRenderingContextXlib::GetTextDimensions]
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: [patch in hand, waiting for r=/sr=/a=] → [patch in hand, waiting for r=/sr=/a=] fixed1.3
Whiteboard: [patch in hand, waiting for r=/sr=/a=] fixed1.3 → fixed1.3
Product: Core → Core Graveyard
Crash Signature: [@ nsRenderingContextXlib::GetTextDimensions]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: