lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.49k stars 2.26k forks source link

Engine often fails to start in the mobile web page when following broadcast games #11240

Open csaavedra opened 2 years ago

csaavedra commented 2 years ago

When following a broadcast and switching between games, sometimes the engine won't start analyzing the game and stay stuck in the "loading engine..." prompt. It is a bit weird because I think the engine is already loaded, because you can see some partial analysis going for some of the games. I haven't seen this happening when following broadcasts in a desktop browser, so this might be specific to the mobile web UI.

csaavedra commented 2 years ago

This also happens in puzzle streak, if you enable/disable the engine between puzzles, the same bug is triggered sometimes.

csaavedra commented 2 years ago

Just noticed this also happens in the desktop website, so it's not mobile-specific. In particular, I think it's easy to hit it if you go from a position that the cloud engine has analyzed to one that hasn't. Also, looking at the CPU usage it looks like the engine is actually running, but the prompt is stuck in "Loading engine...". Also, disabling the engine doesn't reduce CPU usage and the only way to get it to drop is to close the tab completely.

(both for mobile and desktop I am using Chrome)

benediktwerner commented 1 year ago

Don't really see this happen. Since you can reproduce it on a PC, can you check the browser console (F12 to open) for any errors?