ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.48k stars 801 forks source link

Crash when switching graphic cards. #15995

Open tomasguinzburg opened 5 months ago

tomasguinzburg commented 5 months ago

Error Info

Error name: Error Error message: panicked at /home/runner/.cargo/git/checkouts/wgpu-53e70f8674b08dd4/daedf03/wgpu/src/backend/direct.rs:3111:5: wgpu error: Validation Error

Caused by: In Device::create_buffer Not enough memory left.

Error stack:

Error: panicked at /home/runner/.cargo/git/checkouts/wgpu-53e70f8674b08dd4/daedf03/wgpu/src/backend/direct.rs:3111:5:
wgpu error: Validation Error

Caused by:
    In Device::create_buffer
    Not enough memory left.

    at H.n.wbg.__wbg_new_a64e3f2afc2cf2f8 (https://agi.armorgames.com/ruffle/core.ruffle.67bc37f4e63c43ff9c64.js:1:56204)
    at core::ops::function::FnOnce::call_once{{vtable.shim}}::hbaaeff1a92f05ba2 (wasm://wasm/035cabca:wasm-function[10705]:0xa04127)
    at std::panicking::rust_panic_with_hook::h62090d3fc0630473 (wasm://wasm/035cabca:wasm-function[6570]:0x8f2a2a)
    at core::panicking::panic_fmt::hd79411a297d06dc8 (wasm://wasm/035cabca:wasm-function[10428]:0x9fdea4)
    at core::ops::function::Fn::call::h31fcd9672878c467 (wasm://wasm/035cabca:wasm-function[6874]:0x90981a)
    at wgpu::backend::direct::ErrorSinkRaw::handle_error::h55f5091b89514ccd (wasm://wasm/035cabca:wasm-function[5422]:0x88b06e)
    at <T as wgpu::context::DynContext>::device_create_buffer::he09ae140d329cd7d (wasm://wasm/035cabca:wasm-function[7665]:0x949252)
    at <wgpu::Device as wgpu::util::device::DeviceExt>::create_buffer_init::ha83c4d35c94ca577 (wasm://wasm/035cabca:wasm-function[1778]:0x51e580)
    at ruffle_render_wgpu::buffer_builder::BufferBuilder::finish::h2bb3abe555beb273 (wasm://wasm/035cabca:wasm-function[7979]:0x95b10b)
    at <ruffle_render_wgpu::backend::WgpuRenderBackend<T> as ruffle_render::backend::RenderBackend>::register_shape::ha5e18e18a685bf7a (wasm://wasm/035cabca:wasm-function[1437]:0x487a5c)

Player Info

Allows script access: true Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (Intel Inc., Intel(R) HD Graphics 630, OpenGL 4.1)" Adapter Device Type: IntegratedGpu Adapter Driver Name: "" Adapter Driver Info: "" Enabled features: Features(TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | PUSH_CONSTANTS | SHADER_UNUSED_VERTEX_OUTPUT) Available features: Features(CLEAR_TEXTURE) Current limits: Limits { max_texture_dimension_1d: 16384, max_texture_dimension_2d: 16384, max_texture_dimension_3d: 2048, max_texture_array_layers: 256, max_bind_groups: 4, max_bindings_per_bind_group: 1000, max_dynamic_uniform_buffers_per_pipeline_layout: 8, max_dynamic_storage_buffers_per_pipeline_layout: 0, max_sampled_textures_per_shader_stage: 16, max_samplers_per_shader_stage: 16, max_storage_buffers_per_shader_stage: 0, max_storage_textures_per_shader_stage: 0, max_uniform_buffers_per_shader_stage: 11, max_uniform_buffer_binding_size: 16384, max_storage_buffer_binding_size: 0, max_vertex_buffers: 8, max_buffer_size: 268435456, max_vertex_attributes: 16, max_vertex_buffer_array_stride: 255, min_uniform_buffer_offset_alignment: 256, min_storage_buffer_offset_alignment: 256, max_inter_stage_shader_components: 31, max_compute_workgroup_storage_size: 0, max_compute_invocations_per_workgroup: 0, max_compute_workgroup_size_x: 0, max_compute_workgroup_size_y: 0, max_compute_workgroup_size_z: 0, max_compute_workgroups_per_dimension: 0, max_push_constant_size: 96, max_non_sampler_bindings: 1000000 } Surface quality: high Surface samples: 4 Surface size: Extent3d { width: 550, height: 400, depth_or_array_layers: 1 }

Page Info

Page URL: https://armorgames.com/play/1716/gemcraft SWF URL: https://cache.armorgames.com/files/games/gemcraft-1716.swf?v=1373587520

Browser Info

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Platform: MacIntel Has touch support: false

Ruffle Info

Version: 0.1.0 Name: nightly 2024-01-08 Channel: nightly Built: 2024-01-08T00:15:28.895Z Commit: 47db84473a639c405289bb86ce238a83af574137 Is extension: false

Metadata

width: 640 height: 480 frameRate: 30 numFrames: 5 swfVersion: 8 backgroundColor: #000000 isActionScript3: false uncompressedLength: 4987275

tomasguinzburg commented 5 months ago

Hey! I encountered this error when switching from discrete to dynamic graphics on my Macbook Pro. Granted I'm running an outdated version of macOS so it might be it, reporting just for the record: