Closed Bug 1747750 Opened 2 years ago Closed 2 years ago

navigator.gpu.requestAdapter() throws error: "Uncaught DOMException: No matching adapter found!"

Categories

(Core :: Graphics: WebGPU, defect)

Firefox 97
defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: levimwill, Assigned: kvark)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0

Steps to reproduce:

The following JavaScript was executed in Firefox nightly running on NixOS:

if(navigator.gpu)
const adapter = await navigator.gpu.requestAdapater()

Actual results:

The following error was displayed in the console:
"Uncaught DOMException: No matching adapter found!"

The following error was displayed in the terminal Firefox Nightly was launched from:
"Validation error without device target: no suitable adapter found"

Expected results:

The returned adapter from navigator.gpu.requestAdapter() should either be an GPU adapter object or null.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Component: Graphics: WebRender → Graphics: WebGPU

The severity field is not set for this bug.
:kvark, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dmalyshau)
Assignee: nobody → dmalyshau
Severity: -- → S3
Flags: needinfo?(dmalyshau)
Attachment #9258572 - Attachment description: Bug 1747750 - Return null WebGPU adapter Update wgpu to 6bc896f r=jimb → Bug 1747750 - Return null WebGPU adapter
Attachment #9258572 - Attachment description: Bug 1747750 - Return null WebGPU adapter → WIP: Bug 1747750 - Return null WebGPU adapter
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: