Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on any SWF when using "Cache as Bitmap" in stage #17236

Closed
n1k1taar opened this issue Jul 23, 2024 · 2 comments
Closed

Crash on any SWF when using "Cache as Bitmap" in stage #17236

n1k1taar opened this issue Jul 23, 2024 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists panic Hit a panic

Comments

@n1k1taar
Copy link

Describe what you were doing

I wanted to try the “Cache as Bitmap” function in the “Stage” panel, but I get this error, in all the swf I've run (Different animations by Touhou, Earn to die 2012, Raze 1)

What does the crash message say?

panicked at core\src\display_object\stage.rs:216:16:
already mutably borrowed: BorrowError

Ruffle Version

0.1.0-nightly (e9c6108 2024-07-22)

Affected platform

Desktop app

Operating system

Windows 10.0.17763 (Windows 10 Enterprise LTSC 2019) [64-bit]

Additional information

Filename: Cucumber_[IOSYS_-_Touhou].swf

Render Info

Renderer: wgpu
Adapter Backend: Vulkan
Adapter Name: "AMD Radeon(TM) R4 Graphics"
Adapter Device Type: IntegratedGpu
Adapter Driver Name: "AMD proprietary driver"
Adapter Driver Info: "21.5.2"
Enabled features: Features(TEXTURE_COMPRESSION_BC | FLOAT32_FILTERABLE | TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | SHADER_UNUSED_VERTEX_OUTPUT)
Available features: Features(DEPTH_CLIP_CONTROL | DEPTH32FLOAT_STENCIL8 | TIMESTAMP_QUERY | INDIRECT_FIRST_INSTANCE | RG11B10UFLOAT_RENDERABLE | TEXTURE_FORMAT_16BIT_NORM | PIPELINE_STATISTICS_QUERY | TIMESTAMP_QUERY_INSIDE_ENCODERS | TIMESTAMP_QUERY_INSIDE_PASSES | 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 | PUSH_CONSTANTS | ADDRESS_MODE_CLAMP_TO_ZERO | ADDRESS_MODE_CLAMP_TO_BORDER | POLYGON_MODE_LINE | POLYGON_MODE_POINT | VERTEX_WRITABLE_STORAGE | CLEAR_TEXTURE | SPIRV_SHADER_PASSTHROUGH | MULTIVIEW | TEXTURE_FORMAT_NV12 | SHADER_F64 | SHADER_PRIMITIVE_INDEX | DUAL_SOURCE_BLENDING | SHADER_INT64 | SUBGROUP | SUBGROUP_VERTEX | SUBGROUP_BARRIER)
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: 2147483648, 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: 128, max_color_attachments: 8, max_color_attachment_bytes_per_sample: 32, 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, min_subgroup_size: 0, max_subgroup_size: 0, max_push_constant_size: 0, max_non_sampler_bindings: 1000000 }
Surface quality: low
Surface samples: 1
Surface size: (800, 600, 1)

@n1k1taar n1k1taar added bug Something isn't working panic Hit a panic labels Jul 23, 2024
@Croworbit
Copy link

Croworbit commented Jul 23, 2024

I think the stage should never be 'cached as bitmap' and that is why you get a crash

duplicate of #12735

@kjarosh
Copy link
Member

kjarosh commented Jul 23, 2024

Duplicate of #12735

@kjarosh kjarosh marked this as a duplicate of #12735 Jul 23, 2024
@kjarosh kjarosh closed this as completed Jul 23, 2024
@sleepycatcoding sleepycatcoding added the duplicate This issue or pull request already exists label Jul 23, 2024
@kjarosh kjarosh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists panic Hit a panic
Projects
None yet
Development

No branches or pull requests

4 participants