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

Sketchpad demo doesn't work after clicking another tab #1961

Closed
1 task done
aliabd opened this issue Aug 5, 2022 · 1 comment
Closed
1 task done

Sketchpad demo doesn't work after clicking another tab #1961

aliabd opened this issue Aug 5, 2022 · 1 comment
Assignees
Labels
bug Something isn't working docs/website Related to documentation or website

Comments

@aliabd
Copy link
Collaborator

aliabd commented Aug 5, 2022

Describe the bug

The pictionary demo on the landing page at https://gradio.app has a bug where it doesn't work if you click on a different tab and then back to it.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

See https://gradio.app

Screenshot

Screen.Recording.2022-08-05.at.3.36.46.PM.mov

Logs

Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at saveLine (https://gradio.s3-us-west-2.amazonaws.com/3.1.1/assets/index.9d04c032.js:970:15)
    at https://gradio.s3-us-west-2.amazonaws.com/3.1.1/assets/index.9d04c032.js:790:4
    at Array.forEach (<anonymous>)
    at draw_lines (https://gradio.s3-us-west-2.amazonaws.com/3.1.1/assets/index.9d04c032.js:776:9)
    at load_save_data (https://gradio.s3-us-west-2.amazonaws.com/3.1.1/assets/index.9d04c032.js:760:4)
    at handle_canvas_resize (https://gradio.s3-us-west-2.amazonaws.com/3.1.1/assets/index.9d04c032.js:844:3)
    at ResizeObserver.<anonymous> (https://gradio.s3-us-west-2.amazonaws.com/3.1.1/assets/index.9d04c032.js:701:5)

System Info

Chrome

Severity

serious, but I can work around it

@aliabd aliabd added the bug Something isn't working label Aug 5, 2022
@aliabd aliabd self-assigned this Aug 5, 2022
@aliabd aliabd added the docs/website Related to documentation or website label Aug 5, 2022
@aliabd aliabd added this to the 3.2 milestone Aug 5, 2022
@aliabd aliabd modified the milestones: 3.2, website-issues Aug 18, 2022
@abidlabs
Copy link
Member

Happy to report that this problem is fixed in 3.4 (cc @pngwn)!

Recording 2022-09-28 at 16 19 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs/website Related to documentation or website
Projects
None yet
Development

No branches or pull requests

2 participants