Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to construct GPUOutOfMemoryError #24806

Closed
matthew-wong1 opened this issue Jul 31, 2024 · 0 comments · Fixed by #24807
Closed

Failed to construct GPUOutOfMemoryError #24806

matthew-wong1 opened this issue Jul 31, 2024 · 0 comments · Fixed by #24807
Assignees
Labels
bug Something isn't working correctly webgpu WebGPU API

Comments

@matthew-wong1
Copy link

I compiled Deno from source (fe884c5) and found that running the following file on macOS results in an uncaught TypeError:

const adapter = await navigator.gpu.requestAdapter();
const device = await adapter.requestDevice();
const texture = device.createTexture({
    dimension: "2d",
    format: "rgba32sint",
    size: {
        width: 4033,
        height: 2853,
        depthOrArrayLayers: 40
    },
    mipLevelCount: 4,
    usage: GPUTextureUsage.STORAGE_BINDING
})
Device::create_texture error: Not enough memory left.
error: Uncaught (in promise) TypeError: Failed to construct 'GPUOutOfMemoryError': 1 argument required, but only 0 present.
const texture = device.createTexture({
                       ^
    at Module.requiredArguments (ext:deno_webidl/00_webidl.js:716:11)
    at new GPUOutOfMemoryError (ext:deno_webgpu/01_webgpu.js:308:12)
    at InnerGPUDevice.pushError (ext:deno_webgpu/01_webgpu.js:1001:28)
    at GPUDevice.createTexture (ext:deno_webgpu/01_webgpu.js:1162:12)
    at file:///Users/matthew/Documents/msc/final_proj/WebGlitch/output/perses_result_5/failed_to_construct.js:3:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly webgpu WebGPU API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants