ruffle-rs / ruffle

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

Error on https://www.neopets.com/games/play_flash.phtml #14531

Open Meganweaver87 opened 8 months ago

Meganweaver87 commented 8 months ago

Error Info

Error name: Error Error message: panicked at 'wgpu error: Validation Error

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

', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5 Error stack:

Error: panicked at 'wgpu error: Validation Error

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

', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:3019:5
    at V.n.wbg.__wbg_new_d258248ed531ff54 (https://unpkg.com/@ruffle-rs/ruffle@0.1.0-nightly.2023.8.10/core.ruffle.3e5549e66b78cebab52b.js:1:51553)
    at core::ops::function::FnOnce::call_once{{vtable.shim}}::h47c86d7a777c7d0f (wasm://wasm/02fd1a7a:wasm-function[9224]:0x8f2109)
    at std::panicking::rust_panic_with_hook::h6df5db7ad9f65dc8 (wasm://wasm/02fd1a7a:wasm-function[6059]:0x8006e9)
    at core::panicking::panic_fmt::h2d3c5586175098d9 (wasm://wasm/02fd1a7a:wasm-function[9067]:0x8edac3)
    at core::ops::function::Fn::call::h02c044f30db86e49 (wasm://wasm/02fd1a7a:wasm-function[6734]:0x83700a)
    at wgpu::backend::direct::ErrorSinkRaw::handle_error::h400c9dc3b8bd0ad1 (wasm://wasm/02fd1a7a:wasm-function[4845]:0x7693ae)
    at <T as wgpu::context::DynContext>::device_create_buffer::h105c0770c33c03ee (wasm://wasm/02fd1a7a:wasm-function[6938]:0x8472b5)
    at <wgpu::Device as wgpu::util::device::DeviceExt>::create_buffer_init::h75f5862619d1e672 (wasm://wasm/02fd1a7a:wasm-function[1520]:0x45d8aa)
    at core::cell::once::OnceCell<T>::get_or_try_init::outlined_call::hc2415cc812c270c4 (wasm://wasm/02fd1a7a:wasm-function[5544]:0x7dabd3)
    at ruffle_render_wgpu::surface::Surface::draw_commands_and_copy_to::hda6327b195751fe0 (wasm://wasm/02fd1a7a:wasm-function[1359]:0x41c179)

Player Info

Allows script access: true Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (Intel, Intel(R) UHD Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)" Adapter Device Type: IntegratedGpu Adapter Driver Name: "" Adapter Driver Info: "" Enabled features: Features(TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | PUSH_CONSTANTS) Available features: Features(TEXTURE_COMPRESSION_BC | CLEAR_TEXTURE | MULTIVIEW) 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: 640, 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: 60, 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 } Surface quality: high Surface samples: 4 Surface size: Extent3d { width: 550, height: 400, depth_or_array_layers: 1 }

Page Info

Page URL: https://www.neopets.com/games/play_flash.phtml?va=&game_id=353&nc_referer=&age=1&hiscore=969&sp=0&questionSet=&r=8801516&&width=550&height=400&quality=high&inpage=1 SWF URL: https://images.neopets.com/games/gaming_system/np6_loader_v2_18.swf

Browser Info

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36 Platform: Win32 Has touch support: false

Ruffle Info

Version: 0.1.0 Name: nightly 2023-08-10 Channel: nightly Built: 2023-08-10T00:23:43.496Z Commit: fb01473bb3a096d9afca4e464ce6961a45b09045 Is extension: false

Metadata

width: 1000 height: 1000 frameRate: 18 numFrames: 21 swfVersion: 6 backgroundColor: #000000 isActionScript3: false uncompressedLength: 8635

/ Hi, I'm Megan. I was playing a game on Neopets that isn't currently advertised in the "games room" area. I played Neopets with my sister when we were young (I'm 26 now) and still remember the names of some of the games. The game I was playing that crashed is called "Web of Vernax" and I accessed the game by using the website's search bar. All of the games are still accessible online, but links to them aren't provided in the games room. Some of them don't actually work (i.e. Korbats Lab), but this one was working for a while. Link to the Web of Vernax game page: https://www.neopets.com/games/game.phtml?game_id=353 This is what the URL looks like after I click the "play" button: https://www.neopets.com/games/game.phtml?)game_id=353&size=regular&quality=high&play=true I was able to play with no issues until the game crashed. The game window then told me that there was an unusual issue and requested that I file a bug. I didn't realize this was an open project and I'd like to contribute. I have experience with IT, QA (as you may have guessed, I'm great at breaking things and finding unusual errors), web development, and data science. If you have any questions about the issue or have trouble replicating it, please let me know! Otherwise, I'll see if there's some other way I can help. /

n0samu commented 8 months ago

Hi @Meganweaver87, thanks for your comment! It looks like your computer is using an integrated graphics card, which Ruffle is unfortunately not well-optimized for at the moment. This problem affects every game on lower-end hardware; there are many similar open issues. We need to optimize Ruffle's graphics rendering to reduce memory usage (both RAM and video memory). This will be a long-term project.