ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Error on https://flashpointproject.github.io/flashpoint-database/search/

Open clefspeare opened this issue 2 years ago • 9 comments

Error Info

Error name: Error Error message: panicked at 'ShaderJob.target is not a BitmapData (FIXME - support other types)', core/src/avm2/globals/flash/display/shader_job.rs:160:10 Error stack:

339/W/n.wbg.__wbg_new_d258248ed531ff54@https://unpkg.com/@ruffle-rs/ruffle/core.ruffle.aa93540b793048da3495.js:1:51449
core::ops::function::FnOnce::call_once{{vtable.shim}}::h0e63761b8083e365@:wasm-function[9182]:0x8eb983
std::panicking::rust_panic_with_hook::h5cee2a9564faeb6d@:wasm-function[6045]:0x7fa563
core::panicking::panic_fmt::h8a19fa1eb63fbb67@:wasm-function[9026]:0x8e736b
core::option::expect_failed::hd65acbc4e2342087@:wasm-function[7939]:0x8a76f9
ruffle_core::avm2::globals::flash::display::shader_job::start::h3b851341e6b23fbf@:wasm-function[1279]:0x3eef8e
ruffle_core::avm2::function::Executable::exec::hb539235b671154fd@:wasm-function[830]:0x2bcdf6
ruffle_core::avm2::object::TObject::call_property::hcefb4fed0c103884@:wasm-function[1108]:0x385ea0
<ruffle_core::avm2::object::Object as ruffle_core::avm2::object::TObject>::call_property::h0699d031c205c2b4@:wasm-function[2768]:0x616d44
ruffle_core::avm2::activation::Activation::run_actions::hdacb60c3edcba5ee@:wasm-function[516]:0x2a8ec
ruffle_core::avm2::function::Executable::exec::hb539235b671154fd@:wasm-function[830]:0x2bcafa
<ruffle_core::avm2::object::Object as ruffle_core::avm2::object::TObject>::call::hb4519e9213a2d312@:wasm-function[984]:0x33f0bd
ruffle_core::avm2::events::dispatch_event_to_target::ha548825be82313ad@:wasm-function[917]:0x314e6f
ruffle_core::avm2::events::dispatch_event::h6e98c55e210686cb@:wasm-function[1224]:0x3cb3f2
ruffle_core::avm2::Avm2::dispatch_event::hb82daeadd8664f12@:wasm-function[1218]:0x3c8220
ruffle_core::avm2::object::loaderinfo_object::LoaderInfoObject::fire_init_and_complete_events::h881cedd38b526ccc@:wasm-function[1349]:0x413b6b
<ruffle_core::display_object::movie_clip::MovieClip as ruffle_core::display_object::TDisplayObject>::on_exit_frame::ha45ac40e0268511d@:wasm-function[3459]:0x6a11cb
<ruffle_core::display_object::DisplayObject as ruffle_core::display_object::TDisplayObject>::on_exit_frame::h0f0996f5579ce2a4@:wasm-function[2579]:0x5d7447
<ruffle_core::display_object::DisplayObject as ruffle_core::display_object::TDisplayObject>::on_exit_frame::h0f0996f5579ce2a4@:wasm-function[2579]:0x5d74f4
ruffle_core::avm2::Avm2::each_orphan_obj::h94a8032ce0603cc3@:wasm-function[4296]:0x71ffd5
ruffle_web::Ruffle::tick::he1b96f8c24d2012e@:wasm-function[788]:0x285d16
ruffle_web::Ruffle::new_internal::{{closure}}::{{closure}}::{{closure}}::h6ad13d6533f9cf07@:wasm-function[10973]:0x92ac84
<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::hd354b41698094348@:wasm-function[9822]:0x90867a
A@https://unpkg.com/@ruffle-rs/ruffle/core.ruffle.aa93540b793048da3495.js:1:2833
f@https://unpkg.com/@ruffle-rs/ruffle/core.ruffle.aa93540b793048da3495.js:1:2511

AVM2 stack:

    at flash.display::ShaderJob/flash::display::ShaderJob::start()
    at TheEnd/contentInitHandler()

Player Info

Allows script access: false Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (Intel, Intel(R) HD Graphics 400 Direct3D11 vs_5_0 ps_5_0)" 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

Page URL: https://flashpointproject.github.io/flashpoint-database/search/ SWF URL: https://flashpointproject.github.io/flashpoint-database/search/#5703fdc2-41d5-84ab-46ad-ca3326ad1c8e#5703fdc2-41d5-84ab-46ad-ca3326ad1c8e

Browser Info

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0 Platform: Win32 (I have had this same problem using Firefox on a Mac running Ventura) Has touch support: false

Ruffle Info

Version: 0.1.0 Name: nightly 2023-07-31 Channel: nightly Built: 2023-07-31T00:20:32.863Z Commit: 739583c35c5ac20a81f8a3a4893ca57a7ce1d7ec Is extension: false

Metadata

width: 730 height: 493 frameRate: 30 numFrames: 1 swfVersion: 10 backgroundColor: undefined isActionScript3: true uncompressedLength: 192629

clefspeare avatar Jul 31 '23 15:07 clefspeare

@clefspeare That SWF url is broken - can you link to the FlashPoint page?

Aaron1011 avatar Jul 31 '23 17:07 Aaron1011

@Aaron1011

Certainly! Edited the initial error report, here it is as well. https://flashpointproject.github.io/flashpoint-database/search/#5703fdc2-41d5-84ab-46ad-ca3326ad1c8e#5703fdc2-41d5-84ab-46ad-ca3326ad1c8e

clefspeare avatar Aug 01 '23 00:08 clefspeare

This now panics with

wgpu error: Validation Error

Caused by:
  In Device::create_texture
    Texture usages TextureUsages(RENDER_ATTACHMENT) are not allowed on a texture of type Rgba32Float due to downlevel restrictions


note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
AVM2 stack trace: 
	at flash.display::ShaderJob/start()
	at TheEnd/contentInitHandler()

for me

Lord-McSweeney avatar Nov 30 '25 00:11 Lord-McSweeney

What is the swf url here? Can't find it :(

SuchAFuriousDeath avatar Nov 30 '25 01:11 SuchAFuriousDeath

@SuchAFuriousDeath The game's flashpoint id is 5703fdc2-41d5-84ab-46ad-ca3326ad1c8e, I'm testing it using Flashpoint Nano

Lord-McSweeney avatar Nov 30 '25 03:11 Lord-McSweeney

Oh damn. I thought was an expired link or something, I am not familiar with Flashpoint, thanks!

SuchAFuriousDeath avatar Dec 02 '25 11:12 SuchAFuriousDeath

Maybe the title of the issue should be updated?

SuchAFuriousDeath avatar Dec 02 '25 11:12 SuchAFuriousDeath

I actually get this: 2025-12-02T11:50:35.977800Z ERROR ruffle_core::avm2::events: Error dispatching event EventObject { type: "init", class: flash.events::Event, ptr: 0x56142b1eeb40 } to handler FunctionObject { ptr: 0x561428913f50, name: "TheEnd/contentInitHandler()" } : TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set text() at TheEnd/showError() at TheEnd/contentInitHandler()

SuchAFuriousDeath avatar Dec 02 '25 11:12 SuchAFuriousDeath

Ok actually it seems that this issue is happening because the game is calling getStackTrace on an exception and Ruffle returns null. The underlying issue is the exception itself being thrown. I figured it out though and managed to make the game work!

SuchAFuriousDeath avatar Dec 02 '25 14:12 SuchAFuriousDeath