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)
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: jruderman, Assigned: roc)
References
Details
(4 keywords)
Attachments
(2 files)
256 bytes,
text/html
|
Details | |
6.23 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
###!!! 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 | ||
Updated•16 years ago
|
Assignee: nobody → roc
Assignee | ||
Comment 1•16 years ago
|
||
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+
Assignee | ||
Comment 3•16 years ago
|
||
(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
Assignee | ||
Updated•16 years ago
|
Flags: wanted1.9.1?
Whiteboard: [needs landing]
Assignee | ||
Updated•16 years ago
|
Attachment #349342 -
Flags: approval1.9.1?
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 349342 [details] [diff] [review] fix Simple safe patch to fix an assertion
Assignee | ||
Comment 5•16 years ago
|
||
Pushed to trunk as 3f1286ff2118
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing] → [needs 191 approval]
Comment 6•16 years ago
|
||
Comment on attachment 349342 [details] [diff] [review] fix a191=beltzner
Attachment #349342 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs 191 approval] → [needs 191 landing]
Assignee | ||
Updated•16 years ago
|
Flags: wanted1.9.1? → wanted1.9.1+
Priority: -- → P3
And: http://hg.mozilla.org/mozilla-central/rev/9335c05bb78b http://hg.mozilla.org/releases/mozilla-1.9.1/rev/a25ae170ffd0 (broke the tree a second time, then I found the bustage fix)
Reporter | ||
Updated•16 years ago
|
Flags: in-testsuite+
Comment 9•15 years ago
|
||
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.
Comment 10•15 years ago
|
||
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.
Comment 11•15 years ago
|
||
(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
Keywords: fixed1.9.1 → verified1.9.1
Target Milestone: mozilla1.9.1b3 → mozilla1.9.2a1
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•