Large scope box stuck in on-position
Background:
In certain cases, particularly with large CAD, Rhino, or Revit imports, the default scope box size can be larger than the maximum allowable project extents, leading to errors like the one shown below. If possible, it's recommended to limit the size of imported models to a "building-scale" size, rather than a city-scale for best performance. However, if you do get into this state, you can restore access to the existing LightStanza project by clearing the application local storage in your web-browser. Often switching to a different browser can resolve such errors, as well.
Resolution with Google Chrome / Microsoft Edge:
Open Developer Tools: Navigate to the website and press the F12 key on your keyboard, or right-click anywhere on the page and select Inspect or Inspect Element.
Go to the Application Tab: In the developer tools window, click on the Application tab (you might need to click the
>>icon to see it).Find Local Storage: In the left-hand menu, under the Storage section, expand Local Storage.
- Clear Data:
Click on the URL for app.lightstanza.com.
You can then either:
Right-click on the site's URL and select Clear.

- Close and Refresh: Close the developer tools and refresh the page (F5 or Ctrl+R).
Symptoms
When this issue occurs, you will likely see the error stack, shown below, when loading a LightStanza project.
Set maximum size exceeded
RangeError: Set maximum size exceeded
at Set.add (<anonymous>)
at SpatialCellHash.getCellsFromBBox (https://app.lightstanza.com/main.35437c8da7fadb36.js:104992:17)
at SpatialCellHash.addObject (https://app.lightstanza.com/main.35437c8da7fadb36.js:104822:24)
at ScopeBoxReactions.createScopeBox (https://app.lightstanza.com/main.35437c8da7fadb36.js:227482:30)
at https://app.lightstanza.com/main.35437c8da7fadb36.js:199826:72
at Generator.next (<anonymous>)
at asyncGeneratorStep (https://app.lightstanza.com/main.35437c8da7fadb36.js:52817:24)
at _next (https://app.lightstanza.com/main.35437c8da7fadb36.js:52836:9)
at https://app.lightstanza.com/main.35437c8da7fadb36.js:52841:7
at new ZoneAwarePromise (https://app.lightstanza.com/polyfills.2652913c0036cfe8.js:34571:21)
at https://app.lightstanza.com/main.35437c8da7fadb36.js:52833:12
at https://app.lightstanza.com/main.35437c8da7fadb36.js:199829:26
at Array.map (<anonymous>)
at https://app.lightstanza.com/main.35437c8da7fadb36.js:199818:46
at Generator.next (<anonymous>)
at asyncGeneratorStep (https://app.lightstanza.com/main.35437c8da7fadb36.js:52817:24)
