ruffle-rs / ruffle

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

Error on Lost Outpost #11671

Closed desertking closed 1 year ago

desertking commented 1 year ago

Error Info

Error name: Error Error message: panicked at 'assertion failed: (left == right) left: [R, G, B], right: [R, G, B, A]: Invalid 'dest' parameter register PixelBenderReg { index: 1, channels: [R, G, B], kind: Float }', render/naga-pixelbender/src/lib.rs:262:9 Error stack:

Error: panicked at 'assertion failed: `(left == right)`
  left: `[R, G, B]`,
 right: `[R, G, B, A]`: Invalid 'dest' parameter register PixelBenderReg { index: 1, channels: [R, G, B], kind: Float }', render/naga-pixelbender/src/lib.rs:262:9
    at U.n.wbg.__wbg_new_d258248ed531ff54 (https://www.spiele-umsonst.de/ruffle/core.ruffle.5dfd87665d54aa7c3b27.js:1:51306)
    at core::ops::function::FnOnce::call_once{{vtable.shim}}::hcb6f72ebd1a9c8bd (wasm://wasm/02c6a346:wasm-function[8635]:0x83ebbe)
    at std::panicking::rust_panic_with_hook::h85b7f6628c291e12 (wasm://wasm/02c6a346:wasm-function[5603]:0x766b9f)
    at core::panicking::panic_fmt::hf5c4cd929d4aaa9e (wasm://wasm/02c6a346:wasm-function[8499]:0x83a7f6)
    at core::panicking::assert_failed_inner::h2aa5e8e7fe201c6e (wasm://wasm/02c6a346:wasm-function[3499]:0x67f762)
    at <ruffle_render_wgpu::backend::WgpuRenderBackend<T> as ruffle_render::backend::RenderBackend>::compile_pixelbender_shader::h32721b91b5483ef8 (wasm://wasm/02c6a346:wasm-function[7142]:0x7d5fba)
    at ruffle_core::avm2::globals::flash::display::shader_data::init::hff8e040f78a1b1ba (wasm://wasm/02c6a346:wasm-function[960]:0x334d23)
    at ruffle_core::avm2::function::Executable::exec::h3325d83591e2f464 (wasm://wasm/02c6a346:wasm-function[811]:0x2ae214)
    at ruffle_core::avm2::object::TObject::call_property::h4741aae4da6be41a (wasm://wasm/02c6a346:wasm-function[1125]:0x397cb2)
    at <ruffle_core::avm2::object::Object as ruffle_core::avm2::object::TObject>::call_property::h0d99b33f9b54fbc7 (wasm://wasm/02c6a346:wasm-function[2690]:0x5ca73e)

AVM2 stack:

    at flash.display::ShaderData/flash::display::ShaderData::init()
    at flash.display::ShaderData()
    at flash.display::Shader/set byteCode()
    at flash.display::Shader()
    at Classes::Transition()
    at Classes::Init/firstRunComplete()
    at Classes.Attract::FirstRun/kill()
    at Classes.Attract::FirstRun/buttons_kill()
    at Classes.Attract::FirstRun/nextButton_pressed()

Player Info

Allows script access: false Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (Intel, Intel(R) UHD Graphics 620 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

SWF URL: https://www.spiele-umsonst.de/azad/downloads/flashgames/lostoutpost.swf

Browser Info

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

Ruffle Info

Version: 0.1.0 Name: nightly 2023-06-20 Channel: nightly Built: 2023-06-20T00:20:10.263Z Commit: 18fb5064d3c0244b82cfbee428759bc2a76aafbc Is extension: false

Metadata

width: 640 height: 480 frameRate: 35 numFrames: 3 swfVersion: 18 backgroundColor: #000000 isActionScript3: true uncompressedLength: 20555069

Aaron1011 commented 1 year ago

This no longer crashes on the latest master (though the game gets stuck on the 'comic' screen)