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

Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0. #1033

Open
dustinlacewell opened this issue Apr 24, 2024 · 0 comments
Assignees
Labels
b-bug Something isn't working

Comments

@dustinlacewell
Copy link

Describe the bug
If a Node, such as a Rect is partially offscreen, then drawing child circles seems to randomly and sporadically throw exceptions:

The problem occurred here:
at Circle2.renderFromSource (/node_modules/.vite/deps/chunk-UV264IDF.js:47665:13)
at Circle2.render (/node_modules/.vite/deps/chunk-UV264IDF.js:47745:16)
at Goban.drawChildren (/node_modules/.vite/deps/chunk-UV264IDF.js:47768:13)
at Goban.draw (/node_modules/.vite/deps/chunk-UV264IDF.js:48793:10)
at Goban.cachedCanvas (/node_modules/.vite/deps/chunk-UV264IDF.js:47555:10)
at ComputedContext.invoke (/node_modules/.vite/deps/chunk-7ST4M4M3.js:5895:26)
at Goban.render (/node_modules/.vite/deps/chunk-UV264IDF.js:47740:28)
at View2D2.drawChildren (/node_modules/.vite/deps/chunk-UV264IDF.js:47768:13)
at View2D2.draw (/node_modules/.vite/deps/chunk-UV264IDF.js:48793:10)
at View2D2.render (/node_modules/.vite/deps/chunk-UV264IDF.js:47749:12)
at View2D2.render (/node_modules/.vite/deps/chunk-UV264IDF.js:50086:11)
at Scene2D.draw (/node_modules/.vite/deps/chunk-UV264IDF.js:70062:20)
at (/node_modules/.vite/deps/chunk-7ST4M4M3.js:4894:31)
at Scene2D.execute (/node_modules/.vite/deps/chunk-7ST4M4M3.js:5045:16)
at Scene2D.render (/node_modules/.vite/deps/chunk-7ST4M4M3.js:4894:12)
at async Stage.render (/node_modules/.vite/deps/chunk-7ST4M4M3.js:8731:5)
at async (/node_modules/.vite/deps/@motion-canvas_ui.js:53060:5)
at async AsyncEventDispatcher.dispatch (/node_modules/.vite/deps/chunk-7ST4M4M3.js:3140:5)
at async Player.run (/node_modules/.vite/deps/chunk-7ST4M4M3.js:8661:5)
at async (/node_modules/.vite/deps/chunk-7ST4M4M3.js:8674:11)

8mb.video-1Q2-M8aGs1zq.mp4

Package versions:

  • core: 3.15.2
  • two: 3.15.2
  • ui: 3.15.2
  • vitePlugin: 3.15.1
@dustinlacewell dustinlacewell added the b-bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants