Bases: leaving a note that embeds an empty list view throws "Cannot read properties of undefined (reading 'measured')" in updateVirtualDisplay

Steps to reproduce

  1. Create a base Probe.base with a list view that matches nothing:
views:
  - type: list
    name: Empty list
    filters:
      and:
        - file.name == "does-not-exist"
    order:
      - file.name
  1. Create a note Probe.md containing only the embed ![[Probe.base#Empty list]].
  2. Open Probe.md, then open any other note (or run obsidian dev:errors clear, open Probe.md, open another note, run obsidian dev:errors).

Did you follow the troubleshooting guide?

Yes. Reproduced in the sandbox vault with no community plugins and the default theme; only core plugins (Bases) enabled.

Expected result

Switching away from the note produces no error.

Actual result

Two uncaught errors are logged each time the note is left:

Uncaught TypeError: Cannot read properties of undefined (reading 'measured')
TypeError: Cannot read properties of undefined (reading 'measured')
    at _1.updateVirtualDisplay (app://obsidian.md/app.js:548:38568)
    at app://obsidian.md/app.js:548:35939
    at r (app://obsidian.md/app.js:548:4889)

The same view as type: table (empty) does not throw, and a list view with at least one result does not throw either. So the trigger is specifically an embedded list view with zero results being unmounted.

Environment

  • Obsidian 1.15.0 (installer 1.14.5), macOS 27.0
  • Core plugin Bases, no community plugins, default theme