Open MartySVK opened 11 months ago
We're ending up with a TextLine
with an enormous width (1,000,000), which is causing us to produce a zero-height texture when we resize (trying to preserve the apsect ratio) to clamp the image to the max dimensions.
I traced this as far back as flashx.textLayout.compose.Parcel::getLineSlug
, which explicitly sets TextLine.MAX_LINE_WIDTH
(1,000,000) in some cases. I'm not familiar with our TextLine
support, so I don't know if getBounds
is supposed to ignore this, or if it's a bug that we're reaching param1.width = TextLine.MAX_LINE_WIDTH;
in the first place.
The panic also happens for me on desktop (Windows 10), not just web.
It works on desktop (Windows 10) for me, but it is frozen for few seconds
Error Info
Error name: Error Error message: panicked at /home/runner/.cargo/git/checkouts/wgpu-53e70f8674b08dd4/49d16f7/wgpu/src/backend/direct.rs:3056:5: wgpu error: Validation Error
Caused by: In Device::create_texture Dimension Y is zero
Error stack:
AVM2 stack:
Player Info
Allows script access: false Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (NVIDIA, NVIDIA GeForce GTX 1070 (0x00001BE1) Direct3D11 vs_5_0 ps_5_0, D3D11)" Adapter Device Type: Other Adapter Driver Name: "" Adapter Driver Info: "" Enabled features: Features(TEXTURE_COMPRESSION_BC | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | PUSH_CONSTANTS | SHADER_UNUSED_VERTEX_OUTPUT) Available features: Features(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: 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: 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.zahraj.sk/embed/pre-civilization-marble-age/ SWF URL: https://data.gameflare.com/games/7934/Qm7DbTq9VBoiZJ.swf
Browser Info
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Platform: Win32 Has touch support: false
Ruffle Info
Version: 0.1.0 Name: nightly 2023-11-10 Channel: nightly Built: 2023-11-10T00:25:11.047Z Commit: d98a2750a07e313bef80f6ed2bcd1cce3888f094 Is extension: false
Metadata
width: 800 height: 533 frameRate: 30 numFrames: 2 swfVersion: 34 backgroundColor: undefined isActionScript3: true uncompressedLength: 9733381