igorlira / dirplayer-rs

A web-compatible Shockwave Player emulator written in Rust
GNU General Public License v3.0
50 stars 10 forks source link

Panic on Panda Pang #11

Open n0samu opened 3 months ago

n0samu commented 3 months ago

Testing out the new Chrome extension on Andkon, I get a panic on Panda Pang:

execute_task #1 url: https://andkon.com/arcade/obstacles/pandapang/pandapang.dcr resolved: https://andkon.com/arcade/obstacles/pandapang/pandapang.dcr
Checksums don't match! Stored: 1959440782 Computed: 3556422030
ScoreFrameData 389 1006 48
frame 0 channel 4 flags=1
frame 0 channel 6 flags=4096
frame 0 channel 7 flags=4096
frame 0 channel 8 flags=4096
frame 0 channel 9 flags=4096
frame 0 channel 10 flags=4096
frame 0 channel 11 flags=4096
frame 0 channel 12 flags=4096
frame 0 channel 13 flags=4096
frame 0 channel 14 flags=4096
frame 0 channel 15 flags=4096
frame 0 channel 16 flags=4096
frame 0 channel 17 flags=4096
frame 0 channel 18 flags=4096
frame 0 channel 19 flags=4096
frame 0 channel 20 flags=4096
frame 0 channel 21 flags=4096
frame 0 channel 22 flags=4096
frame 0 channel 23 flags=4096
frame 0 channel 24 flags=4096
frame 0 channel 33 flags=4096
frame 0 channel 34 flags=4096
frame 0 channel 35 flags=4096
frame 0 channel 36 flags=4096
frame 0 channel 37 flags=4096
frame 0 channel 38 flags=4096
frame 0 channel 39 flags=4096
frame 0 channel 40 flags=4096
panicked at src/director/chunks/score.rs:164:31:
called `Result::unwrap()` on an `Err` value: Custom { kind: UnexpectedEof, error: "failed to read 4 bytes from offset 8" }

Stack:

Error
    at e.wbg.__wbg_new_abda76e883ba8a5f (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/assets/content-script.tsx.333bfd69.js:33:6491)
    at core::ops::function::Fn::call::hecf83e0b50b6d28d (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[1268]:0xd5566)
    at std::panicking::rust_panic_with_hook::h62090d3fc0630473 (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[492]:0xa379e)
    at core::panicking::panic_fmt::hd79411a297d06dc8 (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[961]:0xce338)
    at core::result::unwrap_failed::h59d2e017e8867fe4 (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[624]:0xacd0a)
    at vm_rust::director::file::get_chunk::h181e51ea99b19c79 (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[131]:0x5095e)
    at vm_rust::director::file::get_first_chunk::hb27b5327e484ad27 (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[589]:0xaaad9)
    at vm_rust::director::file::read_director_file_bytes::h4ef8dc9bd29d9773 (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[120]:0x29342)
    at <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll::h37b67c441c68271d (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[771]:0xc092e)
    at wasm_bindgen_futures::queue::Queue::new::{{closure}}::h5ad7ef8d556d5a9d (chrome-extension://gpgalkgegfekkmaknocegonkakahkhbc/vm-rust/pkg/vm_rust_bg.wasm:wasm-function[361]:0x932c1)

e.wbg.__wbg_error_f851667af71bcfc6 @ content-script.tsx.333bfd69.js:33
vm_rust_bg.wasm:0xa37c4 Uncaught RuntimeError: unreachable
    at std::panicking::rust_panic_with_hook::h62090d3fc0630473 (vm_rust_bg.wasm:0xa37c4)
    at core::panicking::panic_fmt::hd79411a297d06dc8 (vm_rust_bg.wasm:0xce338)
    at core::result::unwrap_failed::h59d2e017e8867fe4 (vm_rust_bg.wasm:0xacd0a)
    at vm_rust::director::file::get_chunk::h181e51ea99b19c79 (vm_rust_bg.wasm:0x5095e)
    at vm_rust::director::file::get_first_chunk::hb27b5327e484ad27 (vm_rust_bg.wasm:0xaaad9)
    at vm_rust::director::file::read_director_file_bytes::h4ef8dc9bd29d9773 (vm_rust_bg.wasm:0x29342)
    at <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll::h37b67c441c68271d (vm_rust_bg.wasm:0xc092e)
    at wasm_bindgen_futures::queue::Queue::new::{{closure}}::h5ad7ef8d556d5a9d (vm_rust_bg.wasm:0x932c1)
    at wasm_bindgen::convert::closures::invoke1_mut::h8464e5333a66dbd0 (vm_rust_bg.wasm:0xd0242)
    at Lg (content-script.tsx.333bfd69.js:33:525)