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

Project Alnilam: GPU process crash in Chrome with WebGPU renderer #14788

Open
n0samu opened this issue Jan 16, 2024 · 0 comments
Open

Project Alnilam: GPU process crash in Chrome with WebGPU renderer #14788

n0samu opened this issue Jan 16, 2024 · 0 comments
Labels
A-web Area: Web & Extensions bug Something isn't working render-wgpu Issues relating to the wgpu renderer stage3d webgpu Issues with the the WebGPU wegpu backend

Comments

@n0samu
Copy link
Member

n0samu commented Jan 16, 2024

Describe the bug

With Ruffle's WebGPU renderer enabled in Chrome, the main menu screen of Project Alnilam works for a few seconds, but then Chrome's GPU process crashes and the entire browser window goes blank for a few seconds (until the process restarts):

GPU connection lost
Uncaught RangeError: Failed to execute 'createBuffer' on 'GPUDevice': createBuffer failed, size is too large for the implementation when mappedAtCreation == true
    at imports.wbg.__wbg_createBuffer_04daf0bfc4769a62 (339.js:2454:37)
    at <T as wgpu::context::DynContext>::device_create_buffer::h7d41835ba2bb1140 (036c7a8a:0x8b58f8)
    at <wgpu::Device as wgpu::util::device::DeviceExt>::create_buffer_init::h41cb3e9940d5a9bc (036c7a8a:0x537079)
    at ruffle_render_wgpu::surface::target::CommandTarget::new::hbe3fe42594749750 (036c7a8a:0x290c86)
    at ruffle_render_wgpu::surface::Surface::draw_commands::h767c2f4264cddbcd (036c7a8a:0x1f8097)
    at <ruffle_render_wgpu::backend::WgpuRenderBackend<T> as ruffle_render::backend::RenderBackend>::submit_frame::h6f416386f74b4b05 (036c7a8a:0x2473c3)
    at ruffle_web::Ruffle::tick::hfaf4d009e756f116 (036c7a8a:0x2f6158)
    at ruffle_web::Ruffle::new_internal::{{closure}}::{{closure}}::{{closure}}::h249fbc1c56de64f7 (036c7a8a:0xa8996c)
    at wasm_bindgen::convert::closures::invoke1_mut::h4fd247b9517b150f (036c7a8a:0xa638ba)
    at __wbg_adapter_57 (339.js:319:10)

And of course, this also crashes Ruffle.

Tested with the Chrome extension built from #14682, in its SWF player page.

Expected behavior

The game should not crash.

Content Location

project_alnilam.zip

Affected platform

Browser's extension

Operating system

Windows 10

Browser

Chromium 120

Additional information

No response

@n0samu n0samu added bug Something isn't working A-web Area: Web & Extensions render-wgpu Issues relating to the wgpu renderer stage3d labels Jan 16, 2024
@Aaron1011 Aaron1011 added the webgpu Issues with the the WebGPU wegpu backend label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web Area: Web & Extensions bug Something isn't working render-wgpu Issues relating to the wgpu renderer stage3d webgpu Issues with the the WebGPU wegpu backend
Projects
None yet
Development

No branches or pull requests

2 participants