Fails to open all notes, related to dataviewjs

Probably related to all all the other Failed to open "" threads, but with a different spin. Opened it under “Help”, since third-party related issues are not accepted as bugs.

I heavily use Obsidian, also with dataviewjs, but it seems like made the mistake to perform some updates and since then everything is broken, namely Obsidian can’t open any note anymore as long as dataview(js) is enabled and a query on the currently opened note hits any results.

It’s very easy to reproduce: create a new vault, add the dataview plugin, enable dataviewjs, add a query to one note, like:

const regex = /[\d]{4}\-[\d]{2}\-[\d]{2}/g

function safe_match(t) {
	m = t.text.match(regex)
	if (m != null) {
		return m[0]
	}
}

const tasks = dv.pages().file.tasks.where(t => t.text.includes("#todo")).where(t => dv.date(safe_match(t)) !== null).where(t => dv.date(safe_match(t)) <= dv.date('today')).where(t => !t.completed)
dv.taskList(tasks)

Now add a second note with a task that matches, e.g.

- [ ] Testentry 2025-05-22 #todo

From now on, as long as the first note with the query is opened Obsidian can’t open any notes again - not even from files. It always returns Failed to open "".

Example vault:
Test2.zip (307.4 KB)

Debug info:

SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.8.10
	Operating system: Windows 10 Pro 10.0.19045
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Dataview v0.5.68

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.