[Webkit-unassigned] [Bug 202577] New: [WebGPU] Unexpected out-of-memory error when buffer is unmapped

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 4 02:30:36 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=202577

            Bug ID: 202577
           Summary: [WebGPU] Unexpected out-of-memory error when buffer is
                    unmapped
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: beaufort.francois at gmail.com

Created attachment 380205

  --> https://bugs.webkit.org/attachment.cgi?id=380205&action=review

Screenshot of devtools console

In Safari Technology Preview 92, code below should not log an out-of-memory error.

(async _ => {

  const adapter = await navigator.gpu.requestAdapter();
  const device = await adapter.requestDevice();

  device.pushErrorScope('out-of-memory');

  const buffer = device.createBuffer({
    size: 12,
    usage: GPUBufferUsage.COPY_SRC | GPUBufferUsage.MAP_READ,
  });

  await buffer.mapReadAsync();

  buffer.unmap();

  const error = await device.popErrorScope();
  console.log({error});

})();

Error is not logged if  buffer.unmap() is not called.
For info, I've caught this issue while running WebGPU CTS at https://gpuweb.github.io/cts/?runnow=1&q=cts:buffers

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191004/ffc1c976/attachment-0001.html>


More information about the webkit-unassigned mailing list