Issue with Cine Mode and Grid Size Change on Slow Internet (4G)

Description:

I am encountering an issue in a viewer application when changing the grid layout from multiple to single while cine mode is actively playing images in all grids. This issue becomes particularly noticeable on a slow or moderate internet connection (e.g., slow 4G).

Here’s the detailed scenario:

  1. Initial Behavior:
  • Cine mode is playing images in all grids.
  • The viewer is in the “multiple grid” layout.
  1. Steps to Reproduce:
  • While the images are still loading or playing in cine mode, change the grid layout from multiple grids to a single grid.
  • This triggers an error, and a snackbar displays the message:
    An error occurred in route /viewer
  1. Additional Observations:
  • On slower internet connections, the issue becomes more frequent due to delayed loading of images.
  • If the grid size is changed rapidly (e.g., switching between layouts quickly), multiple errors are thrown, further exacerbating the problem.

This behavior can be observed on the deployed sample viewer also. (https://viewer.ohif.org)

I mean what can you do on slow internet? Gmail becomes slow too, right?