Closed Bug 463307 Opened 16 years ago Closed 16 years ago

"ASSERTION: zero source size --- fix caller"

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect, P3)

x86
macOS
defect

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: jruderman, Assigned: roc)

References

Details

(4 keywords)

Attachments

(2 files)

Attached file testcase (deleted) —
###!!! ASSERTION: zero source size --- fix caller: '!aSubimage.IsEmpty()', file /Users/jruderman/central/gfx/src/thebes/nsThebesImage.cpp, line 448 This assertion was added in bug 458487.
Assignee: nobody → roc
Attached patch fix (deleted) — Splinter Review
Convert to gfxFloat a bit earlier to avoid an overflow in aPt.y - aDest.y
Attachment #349342 - Flags: superreview?(dbaron)
Attachment #349342 - Flags: review?(dbaron)
Comment on attachment 349342 [details] [diff] [review] fix The reason this patch fixes things is that it avoids integer overflow, right? These should be const methods: + gfxPoint TopLeft() { return pos; } + gfxPoint BottomRight() { return gfxPoint(XMost(), YMost()); } You might also consider making some things like devPixelDest const as well. r+sr=dbaron
Attachment #349342 - Flags: superreview?(dbaron)
Attachment #349342 - Flags: superreview+
Attachment #349342 - Flags: review?(dbaron)
Attachment #349342 - Flags: review+
(In reply to comment #2) > (From update of attachment 349342 [details] [diff] [review]) > The reason this patch fixes things is that it avoids integer overflow, right? Yes > These should be const methods: > + gfxPoint TopLeft() { return pos; } > + gfxPoint BottomRight() { return gfxPoint(XMost(), YMost()); } > > You might also consider making some things like devPixelDest const as well. OK
Flags: wanted1.9.1?
Whiteboard: [needs landing]
Comment on attachment 349342 [details] [diff] [review] fix Simple safe patch to fix an assertion
Pushed to trunk as 3f1286ff2118
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing] → [needs 191 approval]
Comment on attachment 349342 [details] [diff] [review] fix a191=beltzner
Attachment #349342 - Flags: approval1.9.1? → approval1.9.1+
Whiteboard: [needs 191 approval] → [needs 191 landing]
Flags: wanted1.9.1? → wanted1.9.1+
Priority: -- → P3
Keywords: fixed1.9.1
Whiteboard: [needs 191 landing]
Target Milestone: --- → mozilla1.9.1b3
Flags: in-testsuite+
I'm seeing the following assertion when running the test case on 1.9.1 branch with the following build Id: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090608 Shiretoko/3.5pre ID:20090608122057 This isn't seen on mozilla-central (with the same date) though.
I'm seeing the following assertion when running the test case on 1.9.1 branch with the following build Id: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090608 Shiretoko/3.5pre ID:20090608122057 ###!!! ASSERTION: We must be allowed to sample *some* source pixels!: '!sourceRect.Intersect(subimage).IsEmpty()', file /Users/adesai/debug/shiretoko/mozilla-1.9.1/gfx/src/thebes/nsThebesImage.cpp, line 497 ###!!! ASSERTION: We must be allowed to sample *some* source pixels!: '!sourceRect.Intersect(subimage).IsEmpty()', file /Users/adesai/debug/shiretoko/mozilla-1.9.1/gfx/src/thebes/nsThebesImage.cpp, line 497 This isn't seen on mozilla-central (with the same date) though.
(In reply to comment #10) > ###!!! ASSERTION: We must be allowed to sample *some* source pixels!: > '!sourceRect.Intersect(subimage).IsEmpty()', file > /Users/adesai/debug/shiretoko/mozilla-1.9.1/gfx/src/thebes/nsThebesImage.cpp, > line 497 This has been moved to bug 497214. Verified fixed with builds on trunk and 1.9.1: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090609 Minefield/3.6a1pre ID:20090609212135 Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090609 Shiretoko/3.5pre ID:20090609224410
Status: RESOLVED → VERIFIED
Target Milestone: mozilla1.9.1b3 → mozilla1.9.2a1
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: