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

Weird graphical glitch #2993

Open
gigamonkey opened this issue Mar 1, 2022 · 5 comments
Open

Weird graphical glitch #2993

gigamonkey opened this issue Mar 1, 2022 · 5 comments

Comments

@gigamonkey
Copy link
Contributor

gigamonkey commented Mar 1, 2022

Today working on an animation fairly frequently my Snap workspace would glitch out and suddenly the animation would start drawing in miniature in the middle of the screen. Window screen cap here:

image

When the mini me window comes in it doesn't just blit in as a rectangle but kind of draws in pieces, almost like it's drawing where the sprites are moving but within the miniature window.

In fact, if you look closely at the screen shot you can see places where the miniature window hasn't been fully drawn in.

@gigamonkey
Copy link
Contributor Author

Here's the project. It doesn't happen all the time and I haven't been able to figure out how to cause it to happen.

https://snap.berkeley.edu/snap/snap.html#present:Username=gigamonkey&ProjectName=U5L2-Simulation

@gigamonkey
Copy link
Contributor Author

Another screen shot

image

@jmoenig
Copy link
Owner

jmoenig commented Mar 1, 2022

Hi, Peter, which browser are you using? I've seen this particular issue happen in recent versions of Firefox on MacOS, and haven't so far been able to find out exactly what the problem is. It seems to only happen in Firefox in the combination with recent MacOS releases when using many (offscreen) Canvas elements. Chromium/Chrome based browsers don't seem to have this problem, neither does Safari.

Generally I've found Firefox to be awesome, but recently browser and OS makers seem to have been breaking Canvas a lot (Google/Chrome far more frequently than Mozilla in my own experience). Usually they fix those issues within a couple of weeks, but this particular glitch has been going on in Firefox on MacOS for some months now. It seems to be linked to Snap projects using many "clones", which is using more Canvas instances, and my hunch is that something is simply running out of graphics resources wrt scaling Canvas contexts. My intermediate plan is to switch Snap over to the OffscreenCanvas API, but alas, Firefox isn't yet supporting any of that.

@jguille2
Copy link
Contributor

jguille2 commented Mar 1, 2022

I only comment... that I can't reproduce this issue on Linux (neither Chromium nor Firefox)

@gigamonkey
Copy link
Contributor Author

Yeah, I'm using Firefox on MacOS. And indeed this project is using many clones. I'll try Chrome and/or Safari then. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants