phetsims / balloons-and-static-electricity

"Balloons and Static Electricity" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/balloons-and-static-electricity
GNU General Public License v3.0
6 stars 10 forks source link

xhtml sim freezes when "About..." in PhET menu is selected #555

Closed stemilymill closed 2 years ago

stemilymill commented 2 years ago

Win10 Firefox and Chrome. For https://github.com/phetsims/qa/issues/721.

Clicking or selecting with keyboard nav "About..." in the PhET menu freezes the sim. This happens in every dev/rc version I've tested, but not in dev/rc versions of other recent sims (fourier, pH scale, etc)

https://user-images.githubusercontent.com/85511101/138527854-a9c03998-9a16-47b4-bb42-76a9133fbf13.mp4

Troubleshooting information: !!!!! DO NOT EDIT !!!!! Name: ‪Balloons and Static Electricity‬ URL: https://phet-dev.colorado.edu/html/balloons-and-static-electricity/1.5.0-rc.2/phet/xhtml/balloons-and-static-electricity_all.xhtml Version: 1.5.0-rc.2 2021-10-11 21:55:48 UTC Features missing: touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0 Language: en-US Window: 1408x668 Pixel Ratio: 1.3636363636363635/1 WebGL: WebGL 1.0 GLSL: WebGL GLSL ES 1.0 Vendor: Mozilla (ANGLE (Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0)) 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 didn't see this in the published version of Fourier, so it looks like this may be specific to BASE somehow.

Nancy-Salpepi commented 2 years ago

This is also happens with Mac iOS 11.6 + chrome. Console error

Screen Shot 2021-10-23 at 8 51 30 AM

:

jbphet commented 2 years ago

I've done some investigation into this, and have learned the following:

I think I will go ahead and remove the <br> tags from the credits in the 1.5 branch and then move this issue to the appropriate common code repo and assignee.

jbphet commented 2 years ago

I've fixed this in the 1.5 branch by removing the <br> tags in the credits strings, and it seems to have done the trick. There are a couple of line breaks in between first and last names as shown in the screenshot, but I think we can live with this.

image

I am not going to fix this on master, but will log a common code issue, since we should be able to use these tags like this.

KatieWoe commented 2 years ago

Looks good on Win 11, rc.3