box/box-annotations

Box crashes when trying to hide preview while file is loading

Closed this issue · 0 comments

Environment:

  • Preview version: 2.9.0

Desktop:

  • OS: Windows 10
  • Browser: Chrome
  • Version: 74.0.3729.157

Steps to reproduce the problem:

  1. Open this codepen (everything is set up to reproduce)
  2. Observer console (possibly need to rerun/refresh page few times cause issue is sporadic)
    This codepen is emulating behaviour when the user is trying to close preview immediately after he opened it. Reproducible when annotations are configured through viewers prop.
    What is the expected behavior? (Screenshots can be helpful here)
    Preview hides successfully without errors
    What went wrong? (Screenshots can be helpful here)
    image
    Errors appear. Box preview crashes (continue trying to load). Some time later another error appears:
    image
    Preview state:
    image
    Link to application or sample code:
    codepen