phetsims / gravity-and-orbits

"Gravity And Orbits" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
12 stars 6 forks source link

Flickering Mass images #449

Closed KatieWoe closed 2 years ago

KatieWoe commented 2 years ago

Test device Dell Operating System Win 11 Browser Chrome (Have not yet seen on Firefox) Problem description For https://github.com/phetsims/qa/issues/838. Also seen in published, but I do not believe I have encountered this in the past, so it may be related to some recent update. The images of the sun, planet, moon, and satellite, next to the mass sliders may flicker in and out of visibility in the base sim. I have even seen this happen when first loading the sim and entering a page. The flickering seems to happen most consistently when moving the associated mass slider. It does not always happen and seems to happen most often when the sim has first loaded. Steps to reproduce

  1. Refresh the page (seems to happen most consistently on a fresh load)
  2. Go to the first screen
  3. Try the sun mass slider
  4. If this does not work, go to the Earth Moon scene and try the Earth mass slider (this seems fairly consistent for me)

Visuals

imagesdisappear

Troubleshooting information:

!!!!! DO NOT EDIT !!!!! Name: ‪Gravity and Orbits‬ URL: https://phet-dev.colorado.edu/html/gravity-and-orbits/1.6.0-rc.1/phet/gravity-and-orbits_all_phet.html Version: 1.6.0-rc.1 2022-09-27 17:23:51 UTC Features missing: applicationcache, applicationcache, touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Language: en-US Window: 1280x649 Pixel Ratio: 1.5/1 WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium) GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 30 uniform: 4096 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32) Max viewport: 32767x32767 OES_texture_float: true Dependencies JSON: {}
KatieWoe commented 2 years ago

I was able to see this on a Mac device after updating Chrome, but not before, so I think it is safe to think this has to do with a recent Chrome update, possibly within the last day or so.

jonathanolson commented 2 years ago

Reproducing this in chrome 105 on macOS.

jonathanolson commented 2 years ago
image

Can also get partial images

Nancy-Salpepi commented 2 years ago

I was also able to reproduce with mac + chrome 106 but haven't seen it on safari yet. When I switch to the planet/moon scene, the planet is missing initially but reappears once I move the slider. I also got flickering to occur while moving the slider.

https://user-images.githubusercontent.com/87318828/192849518-0b9b1618-eb66-4576-aa22-1522eccc1b5e.mp4

Nancy-Salpepi commented 2 years ago

After refreshing studio and switching to the planet/moon scene, moving Earth (instead of the slider) also produces the flickering.

arouinfar commented 2 years ago

When I switch to the planet/moon scene, the planet is missing initially but reappears once I move the slider.

This happened to me once in Mac/Chrome 106, but I otherwise haven't been able to reproduce this issue.

@samreid since this seems to be a Chrome issue, we can probably close as wontfix.

Nancy-Salpepi commented 2 years ago

@arouinfar to clarify--it is a chrome issue in general, not just on the mac. It was originally reported with Win11 + chrome.

samreid commented 2 years ago

@zepumph and I met with @jonathanolson and we considered this is probably a browser-specific bug. We may need to work around it via something like renderer: 'canvas'. But we would want to make sure to only do that for the icons and not for the bodies in the play area.

samreid commented 2 years ago

In the next round of QA, please make sure this change didn't introduce a performance degradation.

KatieWoe commented 2 years ago

The flashing seems fixed in RC 3. Leaving open to test performance.

KatieWoe commented 2 years ago

I haven't seen any new performance problems. Closing