ruffle-rs / ruffle

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

Crash on stacko.swf #10640

Closed n0samu closed 1 year ago

n0samu commented 1 year ago

Describe what you were doing

Link to SWF: https://static.arcadespot.com/wp-content/uploads/2015/11/stacko.swf

The problem occurs after clicking the Play button on the main menu. This game used to work so this is a regression.

What does the crash message say?

panicked at 'wgpu error: Validation Error

Caused by: In a RenderPass note: encoder = <CommandBuffer-(2, 1317, Vulkan)> In a pass parameter note: command buffer = <CommandBuffer-(2, 1317, Vulkan)> all attachments must have the same sample count, found 1 != 4

', C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.15.1\src\backend\direct.rs:3024:5

Ruffle Version

0.1.0-nightly (81d907b 2023-04-09)

Affected platform

Desktop app

Operating system

Windows 10.0.19045 (Windows 10 Pro) [64-bit]

Additional information

Filename: stacko.swf

AVM2 Callstack

    at flash.display3D::Context3D/flash::display3D::Context3D::drawTriangles()
    at starling.display::QuadBatch/renderCustom()
    at starling.core::RenderSupport/finishQuadBatch()
    at starling.textures::RenderTexture/renderBundled()
    at starling.textures::RenderTexture/draw()
    at nepix.ui.panels.levels::LockedOverlay/show()
    at nepix.ui.panels.levels::LockedOverlay()
    at nepix.ui.panels.levels::LevelPack/initialize()
    at feathers.core::FeathersControl/initializeInternal()
    at feathers.core::FeathersControl/validate()
    at nepix.ui.panels.levels::LevelPack/validate()
    at feathers.layout::HorizontalLayout/validateItems()
    at feathers.layout::HorizontalLayout/layout()
    at feathers.controls::LayoutGroup/draw()
    at feathers.controls.supportClasses::LayoutViewPort/draw()
    at feathers.core::FeathersControl/validate()
    at feathers.controls::Scroller/refreshViewPortBoundsWithoutFixedScrollBars()
    at feathers.controls::Scroller/draw()
    at feathers.controls::ScrollContainer/draw()
    at feathers.core::FeathersControl/validate()
    at screens::LevelsScreen/initialize()
    at feathers.core::FeathersControl/initializeInternal()
    at feathers.core::FeathersControl/feathersControl_addedToStageHandler()
    at starling.events::EventDispatcher/invokeEvent()
    at starling.events::EventDispatcher/dispatchEvent()
    at starling.display::DisplayObject/dispatchEvent()
    at starling.display::DisplayObjectContainer/broadcastEvent()
    at starling.display::DisplayObjectContainer/broadcastEventWith()
    at starling.display::DisplayObjectContainer/addChildAt()
    at starling.display::DisplayObjectContainer/addChild()
    at feathers.controls.supportClasses::BaseScreenNavigator/showScreenInternal()
    at feathers.controls::ScreenNavigator/showScreen()
    at Function/ScreenNavigator.as$0:anonymous()
    at starling.events::EventDispatcher/invokeEvent()
    at starling.events::EventDispatcher/dispatchEvent()
    at starling.display::DisplayObject/dispatchEvent()
    at starling.events::EventDispatcher/dispatchEventWith()
    at screens::MyScreen/gotoScreen()
    at screens::MenuScreen/onButtonsHandler()
    at starling.events::EventDispatcher/invokeEvent()
    at starling.events::EventDispatcher/dispatchEvent()
    at starling.display::DisplayObject/dispatchEvent()
    at starling.events::EventDispatcher/dispatchEventWith()
    at feathers.controls::Button/trigger()
    at feathers.controls::Button/button_touchHandler()
    at starling.events::EventDispatcher/invokeEvent()
    at starling.events::TouchEvent/dispatch()
    at starling.events::Touch/dispatchEvent()
    at starling.events::TouchProcessor/processTouches()
    at starling.events::TouchProcessor/advanceTime()
    at starling.core::Starling/advanceTime()
    at starling.core::Starling/nextFrame()
    at starling.core::Starling/onEnterFrame()

Render Info

Renderer: wgpu Adapter Backend: Vulkan Adapter Name: "AMD FirePro W5100" Adapter Device Type: DiscreteGpu Adapter Driver Name: "AMD proprietary driver" Adapter Driver Info: "" Enabled features: PUSH_CONSTANTS | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES Available features: DEPTH_CLIP_CONTROL | DEPTH32FLOAT_STENCIL8 | TEXTURE_COMPRESSION_BC | INDIRECT_FIRST_INSTANCE | TIMESTAMP_QUERY | PIPELINE_STATISTICS_QUERY | MAPPABLE_PRIMARY_BUFFERS | TEXTURE_BINDING_ARRAY | BUFFER_BINDING_ARRAY | STORAGE_RESOURCE_BINDING_ARRAY | SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING | UNIFORM_BUFFER_AND_STORAGE_TEXTURE_ARRAY_NON_UNIFORM_INDEXING | PARTIALLY_BOUND_BINDING_ARRAY | MULTI_DRAW_INDIRECT | MULTI_DRAW_INDIRECT_COUNT | ADDRESS_MODE_CLAMP_TO_BORDER | POLYGON_MODE_LINE | POLYGON_MODE_POINT | SHADER_FLOAT64 | VERTEX_WRITABLE_STORAGE | CLEAR_TEXTURE | SPIRV_SHADER_PASSTHROUGH | SHADER_PRIMITIVE_INDEX | MULTIVIEW | TEXTURE_FORMAT_16BIT_NORM | ADDRESS_MODE_CLAMP_TO_ZERO | WRITE_TIMESTAMP_INSIDE_PASSES 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: 32, min_storage_buffer_offset_alignment: 32, 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: low Surface samples: 1 Surface size: Extent3d { width: 800, height: 600, depth_or_array_layers: 1 }

n0samu commented 1 year ago

Fixed by #10657