ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.58k stars 810 forks source link

Issue running typing-maniac.swf #18234

Open jrversteegh opened 3 days ago

jrversteegh commented 3 days ago

Describe what you were doing

Trying to run typing maniac (old facebook game) and got error.type.zip

What does the crash message say?

panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-22.1.0/src/device/queue.rs:299:22: called Result::unwrap() on an Err value: OutOfMemory

Ruffle Version

0.1.0-nightly (66a909d539470e7586e1f5ca5ef22e441cead9ad 2024-10-09)

Affected platform

Desktop app

Operating system

Linux Mint 22.0.0 (wilma) [64-bit]

Additional information

No response

jrversteegh commented 3 days ago

This error occurs even when running without parameter so has nothing to do with the flash file, but with amdgpu interaction it looks like:

2024-10-10T20:42:42.051488Z INFO ruffle_desktop::gui::controller: Using preferred backend Vulkan radv/amdgpu: Failed to allocate a buffer: radv/amdgpu: size : 0 bytes radv/amdgpu: alignment : 0 bytes radv/amdgpu: domains : 4 radv/amdgpu: Failed to allocate a buffer: radv/amdgpu: size : 0 bytes radv/amdgpu: alignment : 0 bytes radv/amdgpu: domains : 4 thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-22.1.0/src/device/queue.rs:299:22: called Result::unwrap() on an Err value: OutOfMemory stack backtrace: 0: 0x587f06c79205 - ::fmt::h1b9dad2a88e955ff 1: 0x587f06ca755b - core::fmt::write::h4b5a1270214bc4a7 2: 0x587f06c747df - std::io::Write::write_fmt::hd04af345a50c312d 3: 0x587f06c7a741 - std::panicking::default_hook::{{closure}}::h96ab15e9936be7ed 4: 0x587f06c7a41c - std::panicking::default_hook::h3cacb9c27561ad33 5: 0x587f05866be1 - ruffle_desktop::init::{{closure}}::h48897d5c450ac19e 6: 0x587f06c7afdf - std::panicking::rust_panic_with_hook::hfe205f6954b2c97b 7: 0x587f06c7ac07 - std::panicking::begin_panic_handler::{{closure}}::h6cb44b3a50f28c44 8: 0x587f06c796c9 - std::sys::backtrace::__rust_end_short_backtrace::hf1c1f2a92799bb0e 9: 0x587f06c7a894 - rust_begin_unwind 10: 0x587f056fff03 - core::panicking::panic_fmt::h3d8fc78294164da7 11: 0x587f057003d6 - core::result::unwrap_failed::hfa79a499befff387 12: 0x587f0690d70b - wgpu_core::device::resource::Device::new::he598b2b22a773260 13: 0x587f0681e307 - wgpu_core::instance::Adapter::create_device_and_queue::he1ae56793b229920 14: 0x587f068dffc2 - wgpu_core::instance::::adapter_request_device::h279e13ace7e32707 Aborted (core dumped)

adrian17 commented 3 days ago

FYI, I ran your SWF and I think it won't work anyway, as it's trying to load some SWF from an URL that no longer works?

That said, it's still a weird error you got. Can you send us your vulkaninfo --summary? I'll probably pass them to wgpu library folks as it feels like an issue on their side, this happens on early graphics initialization on their side.