Closed Bug 292222 Opened 20 years ago Closed 20 years ago

Crash on some SVG with no gdi+ [@ nsStyleContext::GetStyleData]

Categories

(Core :: SVG, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: hubert+bmo, Assigned: tor)

References

()

Details

(Keywords: crash)

Crash Data

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050427 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050427 Firefox/1.0+

Mozilla crashes every time when I open this page:
http://orwellstat.hubertgajewski.com/stats/
I use SVG-build, svg.enabled: true.

TBid: 5422250

Reproducible: Always

Steps to Reproduce:
1. Go to http://orwellstat.hubertgajewski.com/stats/
2. Wait
3. Crash
gdiplus.dll installed:
wfm Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050430 Firefox/1.0+
wfm Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050430

gdiplus.dll not installed:
crash Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050430 Firefox/1.0+
wfm Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050430

also crashing on http://www.croczilla.com/svg/samples/svgtetris/svgtetris.svg

TalkbackIDs: TB5478573Y, TB5478018M, TB5476502Z
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB5478573Y
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB5478018M

identical Talkbacks for different sites

see http://www.mozilla.org/projects/svg/gdiplus/ for info and download link,
and install according to Redist.txt in the download:

For Windows 2000, Windows Millennium Edition, Windows NT 4.0 and Windows 98,
install gdiplus.dll into the private directory of the application not into the
system directory. 

I didn´t succeed using the system32 folder as suggested somewhere.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
Blocks: 279271
WFM on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050428
Firefox/1.0+ (Windows XP).

Win2k specific?
(In reply to comment #2)
> WFM on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050428
> Firefox/1.0+ (Windows XP).
> 
> Win2k specific?

did you read comment #1?

CRASH Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050430 Firefox/1.0+ 

CRASHING when gdiplus.dll NOT installed.
WindowsXP supplies gdiplus.dll, for older windows you´ve got to download it.

This crash happens on Firefox only, as Firefox supports svg.
Though Mozilla suite also comes with svg.enabled true, svg isn´t working, but
also don´t crash.

My recommendation:
reset svg.enabled default to disabled, as long as missing gdiplus.dll leads to
crash. This should be default for Win9x, WinNT, Win2k.
Assignee: general → tor
Status: NEW → ASSIGNED
Attachment #182516 - Flags: review?(alex)
Flags: blocking1.8b2+
Summary: Crash when I open page with SVG chart [@ nsStyleContext::GetStyleData] → Crash on some SVG with no gdi+ [@ nsStyleContext::GetStyleData]
Comment on attachment 182516 [details] [diff] [review]
allow nsSVGGlyphFrame::Init to complete to SetStyleContext when no renderer

If bailing before SetStyleContext() leads to a crash, shouldn't we also move
the mMetrics/mGeometry checks?
->
if (!render || !mMetrics || !mGeometry) {...}
Attachment #182516 - Flags: review?(alex) → review+
Attached patch Good pointSplinter Review
Attachment #182516 - Attachment is obsolete: true
Attachment #182527 - Flags: review?(alex)
Attachment #182527 - Flags: review?(alex) → review+
Attachment #182527 - Flags: approval1.8b2?
Comment on attachment 182527 [details] [diff] [review]
Good point

a=asa
Attachment #182527 - Flags: approval1.8b2? → approval1.8b2+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
VERIFIED FIXED with Deer Park Alpha 1 on Windows 2000.
Status: RESOLVED → VERIFIED
Crash Signature: [@ nsStyleContext::GetStyleData]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: