Closed Bug 601928 Opened 16 years ago Closed 16 years ago

[D3D9] Crash after creation of temporary texture fails [@ mozilla::layers::ThebesLayerD3D9::DrawRegion(nsIntRegion const&)]

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta8+

People

(Reporter: bas.schouten, Assigned: bas.schouten)

Details

Attachments

(1 file, 1 obsolete file)

For some reason it appears there's situations where our creation of a temporary texture in system memory fails, and we proceed to reference a NULL pointer. We should bail when the creation of our temporary texture fails.
We should bail if this CreateTexture call fails. Although it's a bad sign that this occurs and might cause rendering issues, this is better than crashing. It would be good if we could figure out why this happens though. But for now let's kill the crash.
Attachment #480924 - Flags: review?(jmuizelaar)
Comment on attachment 480924 [details] [diff] [review] Check result of create texture for tmpTexture Any reason we shouldn't just OOM here?
Comment on attachment 480924 [details] [diff] [review] Check result of create texture for tmpTexture Or rather, this feels like we're just papering over a problem. I think we need to learn more before we ignore this.
Attachment #480924 - Flags: review?(jmuizelaar) → review-
(In reply to comment #4) > Comment on attachment 480924 [details] [diff] [review] > Check result of create texture for tmpTexture > > Or rather, this feels like we're just papering over a problem. I think we need > to learn more before we ignore this. Also, does this only happen on particular hardware?
As discussed on IRC. This also creates a useful helper function that will in the future allow us to expose error result codes in a variety of ways that seem useful. A follow up bug will be created to move other function calls to using this for error reporting.
Attachment #480924 - Attachment is obsolete: true
Attachment #480948 - Flags: review?(jmuizelaar)
Attachment #480948 - Flags: review?(jmuizelaar) → review+
Let's try to get this into nightlies right after b7 ships.
blocking2.0: ? → beta8+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: