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

Error on https://www.superhry.cz/games/1485/ #2525

Closed
Chesters-CZ opened this issue Jan 14, 2021 · 6 comments
Closed

Error on https://www.superhry.cz/games/1485/ #2525

Chesters-CZ opened this issue Jan 14, 2021 · 6 comments
Labels
canvas Issues relating to the CanvasRenderingContext2D renderer error-report Automated error reports from Ruffle web build

Comments

@Chesters-CZ
Copy link

Error Info

Error name: Error
Error message: panicked at 'called Result::unwrap() on an Err value: JsValue(InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
Error: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
at Object. (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/core.ruffle.js:1:32682)
at Object. (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/core.ruffle.js:1:19781)
at __wbg_drawImage_801ad094f4734689 (:3:60847)
at web_sys::features::gen_CanvasRenderingContext2d::CanvasRenderingContext2d::draw_image_with_html_canvas_element::ha9de5d2aab9ff0dd (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[4410]:0x36c232)
at <ruffle_render_canvas::WebCanvasRenderBackend as ruffle_core::backend::render::RenderBackend>::pop_mask::ha6a53f4d027e5730 (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[1041]:0x22e628)
at ruffle_core::display_object::container::TDisplayObjectContainer::render_children::ha1dfb334281bffb0 (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[1187]:0x25202d)
at <ruffle_core::display_object::movie_clip::MovieClip as ruffle_core::display_object::TDisplayObject>::render::h9f6a20cad0eb4554 (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[3351]:0x34583b)
at <ruffle_core::display_object::DisplayObject as ruffle_core::display_object::TDisplayObject>::render::h60cbeccbff9a8088 (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[3123]:0x338d93)
at ruffle_core::display_object::container::TDisplayObjectContainer::render_children::ha1dfb334281bffb0 (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[1187]:0x251f3b)
at <ruffle_core::display_object::movie_clip::MovieClip as ruffle_core::display_object::TDisplayObject>::render::h9f6a20cad0eb4554 (chrome-extension://jmoobmambohhgekjgoalkegahmhgapio/dist/ea023900695f5748b1e9.module.wasm:wasm-function[3351]:0x34583b))', render/canvas/src/lib.rs:685:14

Player Info

Allows script access: true

Page Info

Page URL: https://www.superhry.cz/games/1485/
SWF URL: https://www.superhry.cz/cnt_img/001/1485.swf

Browser Info

Useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
OS: Win32

Ruffle Info

Version: 0.1.0
Name: nightly 2021-01-14
Channel: nightly
Built: 2021-01-14T01:08:37.174Z
Commit: c1c1c59

@zohebnsr
Copy link

I see nothing about Ruffle there. It's just flash.
Screen Shot 2021-01-15 at 1 09 38 AM

@Chesters-CZ
Copy link
Author

Chesters-CZ commented Jan 14, 2021 via email

@zohebnsr
Copy link

No, you don't need to enable Flash to use Ruffle. It works without it

@Chesters-CZ
Copy link
Author

Chesters-CZ commented Jan 14, 2021 via email

@zohebnsr
Copy link

zohebnsr commented Jan 14, 2021

Not Sure, How you integrated it, but this is how it works:

  • Download the Nightly Build, unzip it and name the folder whatever you like it to name.
  • Upload the whole folder to Websites' Root Directory. ruffle.js file should be accessible via https://www.superhry.cz/yourrufflefolder/ruffle.js
  • Now on your game page, add <script src="https://www.superhry.cz/yourrufflefolder/ruffle.js"></script> somewhere. Try both head and body where it works for you.
  • Now it should load.
  • If it doesn't (if you are using JS Minify Tool, try disabling and rechek.
  • There is no need to enable/disable flash. It has no connection with adobe flash.

@Herschel Herschel added the error-report Automated error reports from Ruffle web build label Oct 26, 2021
@n0samu n0samu added the canvas Issues relating to the CanvasRenderingContext2D renderer label Oct 5, 2022
@relrelb
Copy link
Contributor

relrelb commented Apr 22, 2023

Fixed by #7026.

@relrelb relrelb closed this as completed Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
canvas Issues relating to the CanvasRenderingContext2D renderer error-report Automated error reports from Ruffle web build
Projects
None yet
Development

No branches or pull requests

5 participants