ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Error on Polarity (Regression)

Open Computerdude77 opened this issue 2 years ago • 5 comments

Error Info

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

Caused by: In Device::create_texture Dimension X is zero

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

Error: panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_texture
    Dimension X is zero

', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.2/src/backend/direct.rs:3019:5
    at imports.wbg.__wbg_new_d258248ed531ff54 (chrome-extension://eakfnemabcnggjhkbbjdaebbeijhjijo/dist/339.js:2400:21)
    at core::ops::function::FnOnce::call_once{{vtable.shim}}::hb515a2c9ffd29eb6 (wasm://wasm/02f80ed2:wasm-function[9162]:0x8e287b)
    at std::panicking::rust_panic_with_hook::h5cee2a9564faeb6d (wasm://wasm/02f80ed2:wasm-function[6023]:0x7f07c3)
    at core::panicking::panic_fmt::h8a19fa1eb63fbb67 (wasm://wasm/02f80ed2:wasm-function[9006]:0x8de263)
    at core::ops::function::Fn::call::h7391d934fac8ff6c (wasm://wasm/02f80ed2:wasm-function[6702]:0x827ec1)
    at wgpu::backend::direct::ErrorSinkRaw::handle_error::h5a183f2e818979d2 (wasm://wasm/02f80ed2:wasm-function[4821]:0x75dbda)
    at <T as wgpu::context::DynContext>::device_create_texture::h4767ca2a0595025d (wasm://wasm/02f80ed2:wasm-function[6677]:0x8263d4)
    at wgpu::Device::create_texture::h3345244aa639ce74 (wasm://wasm/02f80ed2:wasm-function[5086]:0x79ee75)
    at <ruffle_render_wgpu::backend::WgpuRenderBackend<T> as ruffle_render::backend::RenderBackend>::register_bitmap::h151fb34ebb06c84e (wasm://wasm/02f80ed2:wasm-function[1840]:0x4f54da)
    at ruffle_core::bitmap::bitmap_data::BitmapData::bitmap_handle::hf16e587351aa81be (wasm://wasm/02f80ed2:wasm-function[1316]:0x3fe46b)

Player Info

Allows script access: true Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (NVIDIA, NVIDIA GeForce GTX 1050 Ti Direct3D11 vs_5_0 ps_5_0, D3D11)" Adapter Device Type: Other 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: http://www.stimunationgames.com/games/polarity/ SWF URL: http://www.stimunationgames.com/games/polarity/polarity.swf

Browser Info

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

Ruffle Info

Version: 0.1.0 Name: nightly 2023-07-25 Channel: nightly Built: 2023-07-25T00:24:31.987Z Commit: f2c9237ea13fa95eae9bfebd1828e1baa2411c64 Is extension: true

Metadata

width: 448 height: 480 frameRate: 50 numFrames: 12 swfVersion: 8 backgroundColor: #000033 isActionScript3: false uncompressedLength: 7386281

Steps to Replicate / Extra Info

This error occurs when the "Start" button is clicked on the title screen. I have tested this on multiple computers and got the same error to occur. This also seems to be a regression, as the error only started occurring on the 2023-07-16 nightly. Before that, the game would load, but have some other issues, as you can see from #9931.

Computerdude77 avatar Jul 25 '23 06:07 Computerdude77

Hmm, typo? This actually started with nightly 2023-07-06, probably caused by our filter implementation but exposed by #11813.

n0samu avatar Jul 25 '23 09:07 n0samu

So this is a very interesting discovery. So I checked to see if I messed up and somehow mislabeled the version by running it in the 2023-07-15 nightly, and it appears I was not wrong and it does boot up in this version. But I also checked the 2023-07-06 nightly you mentioned to see if the crash occurs, and turns out it does. I had to go through the versions in-between to figure this out, but for some reason, starting with the 2023-07-10 nightly, the game doesn't crash at all. This happened until the version mentioned in my original regression post, so that is really odd, wonder what happened there. Here are the versions getting into the menu where it should be crashing to show that this was not an error on my part, and just the error disappearing and reappearing between those versions for whatever reason.

Ruffle 2023-07-10 nightly screenshot (where the issue disappears): Screenshot 2023-07-25 042428

Ruffle 2023-07-15 nightly screenshot (the last one before the issue reappears): Screenshot 2023-07-25 041925

Computerdude77 avatar Jul 25 '23 09:07 Computerdude77

I don't think that's accurate, either. Strangely enough, I'm finding that whether or not Ruffle crashes in any nightly build 2023-07-06 or later is determined by how fast I click the Play button on the main menu. If I click it fast enough, I avoid the crash. I think the crash must be caused by the glow filter around the planet on the main menu, and getting out of the main menu fast enough avoids whatever filter state causes the error?

n0samu avatar Jul 25 '23 09:07 n0samu

Okay, so I went back and did more testing, and what you are saying is correct, and my initial analysis was wrong. I did the same thing you did where I clicked the play button before the planet was glowing, and it does let you through the main menu, even on the most recent nightly. I even found out by doing this that the original "smoke" bug from the other issue was fixed, but the audio is still peaking when starting. I will go note that down on the other issue for this, as that separate issue is technically fixed. Thanks for the help in figuring this out!

Computerdude77 avatar Jul 25 '23 09:07 Computerdude77

Still a problem with latest nightly

waspennator avatar Jun 13 '25 12:06 waspennator