[Sprite Sheet] If "Autoplay Animation" is not checked, error when playing it through event (Uncaught Type Error: Failed to execute 'drawImage' on...

47 views
Skip to first unread message

micsun-al

unread,
Feb 16, 2016, 8:04:28 PM2/16/16
to Google Web Designer beta
I'm getting the following error:

Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)'y @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:3884z @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:3887d.play @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:3890d.restart @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:3890gwd.actions.gwdSpritesheet.restart @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:3647gwd.auto_Page_resolvePageactivated @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:3648d @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:37b.gwdActivate @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:39(anonymous function) @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:52b @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:47d @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:37(anonymous function) @ index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:38
index.html?e=69&renderingType=2&leftOffset=0&topOffset=0&c=Uk4U0gevx0&t=1:120 Ad: handlePagePresenting(prev panel: page-intro, next panel: page-resolve)

This reproduces when doing the following:
  1. Make a second page (this is probably optional, but bleh).
  2. Drag the Sprite Sheet component in to your second page and associate a sprite sheet with it with valid values.
  3. Uncheck "Autoplay Animation" in the Sprite Sheet properties
  4. In the Events panel, add a new Event: (your second page name) --> Page > Page activated --> Sprite Sheet > Restarts the animation --> Your Sprite Sheet ID
  5. On the first page, add some button to get to the second page (this is probably optional, but bleh)
The error above reproduces.

Sukhbir Kaur

unread,
Feb 17, 2016, 1:04:16 PM2/17/16
to Google Web Designer beta
Hi ,

Thanks for reporting this issue.I'll log a bug on your behalf . Meanwhile you can try  this :

Add this event in  the second page 

Page1_1>Ready to present the page >Restarts the animation>Your Sprite Sheet ID

Thanks
Sukhbir
(GWD Team)



Reply all
Reply to author
Forward
0 new messages