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)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | beta8+ |
People
(Reporter: bas.schouten, Assigned: bas.schouten)
Details
Attachments
(1 file, 1 obsolete file)
|
3.28 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•16 years ago
|
||
Severity: normal → critical
blocking2.0: --- → ?
Version: unspecified → Trunk
| Assignee | ||
Comment 2•16 years ago
|
||
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 3•16 years ago
|
||
Comment on attachment 480924 [details] [diff] [review]
Check result of create texture for tmpTexture
Any reason we shouldn't just OOM here?
Comment 4•16 years ago
|
||
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-
Comment 5•16 years ago
|
||
(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?
| Assignee | ||
Comment 6•16 years ago
|
||
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)
Updated•16 years ago
|
Attachment #480948 -
Flags: review?(jmuizelaar) → review+
Comment 7•16 years ago
|
||
Let's try to get this into nightlies right after b7 ships.
blocking2.0: ? → beta8+
| Assignee | ||
Comment 8•16 years ago
|
||
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.
Description
•