Closed
Bug 565120
Opened 16 years ago
Closed 16 years ago
[D2D] Shacknews.com fully loads but browser hangs eventually crashing after scrolling down the page.
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: geeknik, Assigned: bas.schouten)
References
()
Details
(Keywords: crash, regression)
Attachments
(3 files, 3 obsolete files)
|
171.03 KB,
text/plain
|
Details | |
|
6.37 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
|
3.32 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
I know that there was a D2D bug that was just fixed regarding the background not loading correctly on www.shacknews.com, and now the background loads, but the site does not and then the browser hangs and eventually crashes (usually within a minute of the hang).
[@ strcmp | nsPrefBranch::RemoveObserver(char const*, nsIObserver*) ]
http://crash-stats.mozilla.com/report/index/bp-d36885c3-0c79-468d-a188-8ec862100511
[@ dtoa]
http://crash-stats.mozilla.com/report/index/63117337-a1a5-4f38-a0c4-17dfc2100511
HTML5=on, DW=on, D2D=on, OOPP=on
| Reporter | ||
Comment 1•16 years ago
|
||
Latest nightly build doesn't crash on this site any more.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Comment 2•16 years ago
|
||
Okay, I lied. The page loads 100% now, but when I scroll down, the browser hangs and crashes.
[@ mozjs.dll@0x249e4 ]
http://crash-stats.mozilla.com/report/index/a22be51f-d948-41a0-bba8-97c582100512
Assignee: nobody → general
Status: RESOLVED → REOPENED
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Resolution: WORKSFORME → ---
| Reporter | ||
Updated•16 years ago
|
Summary: Shacknews.com partially loads and browser hangs eventually crashing. → Shacknews.com fully loads but browser hangs eventually crashing after scrolling down the page.
Comment 3•16 years ago
|
||
That crash has a strange build-id, which is why it doesn't have symbols. Are you using an hourly?
| Reporter | ||
Comment 4•16 years ago
|
||
Build 20100512060819 is what I got when I did a check for updates. Before that I was running the 5/11 Nightly.
| Reporter | ||
Comment 5•16 years ago
|
||
Not sure where that came from, but I did a check for updates again and got Build 20100512035952 which is the right nightly build for 5/12 and got this crash:
[@ dtoa]
http://crash-stats.mozilla.com/report/index/fa55b1d2-50f7-4d3f-8f6e-30ef22100512
I know there is a bug for [@ dtoa] but I'm not getting the crash anywhere but on Shacknews.com ever since the background fix for it landed. And looking at the output from WinDebug, I think this is going to be a D2D regression from that patch and not a Javascript issue. I've attached the debug log.
Comment 6•16 years ago
|
||
Can you confirm that by turning D2D off? Would be good, then we can get it over to the gfx folks.
| Reporter | ||
Comment 7•16 years ago
|
||
Browser definitely does not crash when I turn off D2D/DW rendering. Moving this to the appropriate component now.
I believe the landing of the patch in https://bugzilla.mozilla.org/show_bug.cgi?id=550398 is what is causing this issue.
Assignee: general → nobody
Component: JavaScript Engine → Graphics
Keywords: regression
QA Contact: general → thebes
Summary: Shacknews.com fully loads but browser hangs eventually crashing after scrolling down the page. → [D2D] Shacknews.com fully loads but browser hangs eventually crashing after scrolling down the page.
Updated•16 years ago
|
| Assignee | ||
Comment 8•16 years ago
|
||
Presumably the image downsampling might cause memory corruption because we're doing something wrong here. That's the only reason I can imagine it appears to be in JS. Will investigate.
Comment 9•16 years ago
|
||
Confirmed crash, I just tested also:
http://crash-stats.mozilla.com/report/pending/885676ab-c890-4aa6-a80d-0a4892100513
[@ memcpy | D3D10Level9.dll@0x10bae ]
| Assignee | ||
Comment 10•16 years ago
|
||
This is most likely a dupe of bug 560050.
| Reporter | ||
Comment 11•16 years ago
|
||
Doubt it Bas. Phonedog.com doesn't hang my machine with D2D/DW enabled.
| Assignee | ||
Comment 12•16 years ago
|
||
(In reply to comment #11)
> Doubt it Bas. Phonedog.com doesn't hang my machine with D2D/DW enabled.
Be sure to scroll around actively! Using the mouse and the slider manually, using the page up/down, the scrollwheel, etc! Any machine I've found (that's reasonably fast) seems to be able to hang on phonedog. But this was a couple of weeks ago.
| Reporter | ||
Comment 13•16 years ago
|
||
Yeah, I've gone around the entire site multiple times since the bug was first reported and haven't been able to replicate it, even a couple of weeks ago. I have an ATI Radeon 5870 (latest Catalyst drivers) and I'm willing to bet you and the Phonedog.com bug reporter have Nvidia cards. =)
| Assignee | ||
Comment 14•16 years ago
|
||
(In reply to comment #13)
> Yeah, I've gone around the entire site multiple times since the bug was first
> reported and haven't been able to replicate it, even a couple of weeks ago. I
> have an ATI Radeon 5870 (latest Catalyst drivers) and I'm willing to bet you
> and the Phonedog.com bug reporter have Nvidia cards. =)
Sadly, no Radeon 5850. Pretty much identical to yours chip-wise :-). I'll need to try and see if I can still repro it in current builds tomorrow.
Comment 15•16 years ago
|
||
(In reply to comment #9)
> Confirmed crash, I just tested also:
>
> http://crash-stats.mozilla.com/report/pending/885676ab-c890-4aa6-a80d-0a4892100513
>
> [@ memcpy | D3D10Level9.dll@0x10bae ]
I crash on this with latest nightly, Nvidia 7150 Win7 32bit but PhoneDog.com doesn't crash/hang for me either.
| Assignee | ||
Comment 16•16 years ago
|
||
I've found the cause of the crash. The issue is we have a source image surface pattern that lies outside of the destination surface. This causes my D2D code to get confused and do something silly, working on it.
| Assignee | ||
Comment 17•16 years ago
|
||
This patch will make us always just upload the entire surface in the dimension where it -will- fit. Making this situation closer to normal codepaths. This also happens to fix this bug but more fixing is required and coming up.
Assignee: nobody → bas.schouten
Status: REOPENED → ASSIGNED
Attachment #446418 -
Flags: review?(jmuizelaar)
| Assignee | ||
Comment 18•16 years ago
|
||
This patch fixes the actual problem. When a large image surface source after transformation does not touch the destination surface at all, just upload the complete row/column edge in that dimension so that EXTEND_PAD works correctly.
Additionally trigger software fallback to software if EXTEND_REPEAT or EXTEND_REFLECT is used with a Large image surface. We'll need some additional code to deal with this but it is not high priority (we pretty much never user these extend modes). I'll open a separate bug for this.
Attachment #446420 -
Flags: review?(jmuizelaar)
Comment 19•16 years ago
|
||
Both of these patches make the code pretty unreadable. Can we clean this stuff up somehow?
Comment 20•16 years ago
|
||
Looks like that second patch is similar to the first.. but with changes/adds.
| Assignee | ||
Comment 21•16 years ago
|
||
(In reply to comment #19)
> Both of these patches make the code pretty unreadable. Can we clean this stuff
> up somehow?
Erm, I'll see what I can do.
| Assignee | ||
Comment 22•16 years ago
|
||
Factored out into a separate function to address review comments.
Attachment #446418 -
Attachment is obsolete: true
Attachment #451574 -
Flags: review?(jmuizelaar)
Attachment #446418 -
Flags: review?(jmuizelaar)
| Assignee | ||
Comment 23•16 years ago
|
||
Attachment #446420 -
Attachment is obsolete: true
Attachment #451576 -
Flags: review?(jmuizelaar)
Attachment #446420 -
Flags: review?(jmuizelaar)
| Assignee | ||
Comment 24•16 years ago
|
||
Last patch was wrong.
Attachment #451576 -
Attachment is obsolete: true
Attachment #451942 -
Flags: review?(jmuizelaar)
Attachment #451576 -
Flags: review?(jmuizelaar)
Updated•16 years ago
|
Attachment #451574 -
Flags: review?(jmuizelaar) → review+
Updated•16 years ago
|
Attachment #451942 -
Flags: review?(jmuizelaar) → review+
| Assignee | ||
Comment 25•16 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/9cdb2c5ff1e9.
Pushed http://hg.mozilla.org/mozilla-central/rev/59150e307d88.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•