Skip to content

Changing a Text filter to contains crashes the app with Invalid view resource context #1392

Open
logseq/logseq
#13885

Description

@tiensonqin

What happened

Changing a tag-table Text-property filter from is to text contains immediately replaces the whole app with Something went wrong, before a search string can be entered. text not contains has the same result. Reloading alone keeps the error; Undo followed by reload restores the original equality filter.

Minimal reproduction

Use a disposable DB graph. This was reproduced with one ordinary block, one tag, and one fresh Text property; no queries, custom templates, child blocks, or imports are needed.

  1. Create a page and one block named QA filter one.
  2. Tag it with a new tag, QAFilterMinimal.
  3. Open the tag page. Expand its schema, choose Add property, create QA Minimal Note, and select Text.
  4. Return to the original block and set QA Minimal Note to Apple. Save, reload, and verify the value remains.
  5. Open the tag page again. Its table has one row with Apple.
  6. Click the table's funnel/filter button, choose QA Minimal Note, check Apple, and dismiss the picker. Verify the healthy clause QA Minimal Note is Apple and one matching row.
  7. Click the is operator in that clause, then choose text contains.
  8. Do not type anything. The app immediately shows Something went wrong instead of the table and filter editor.

The same failure occurs when step 7 selects text not contains.

Expected

The operator changes and exposes a text input so the user can enter a search string. An incomplete filter should remain editable without taking down the app.

Actual, frequency, and recovery

  • is → text contains: 2/2, across two separately created tag/Text-property fixtures in one disposable graph. The second fixture is the one-block reproduction above.
  • is → text not contains: 1/1 on the first fixture.
  • The first fixture had Apple, apple, and banana; its completed equality filter correctly selected only Apple before conversion.
  • Reload alone after the first crash still showed the full-app error.
  • Ctrl+Z once, then Ctrl+R restored the original is Apple filter and healthy table. This recovery worked after each of the three trials. Undo alone did not dismiss the error boundary in the explicitly observed negative-contains trial.
  • No block-content loss was observed. This report is about a persisted invalid view/filter state and the resulting UI failure.

Runtime evidence

Electron renderer log at 2026-10-02 01:02:23 UTC, immediately after the operator change:

The above error occurred in the <loaded-view-aux> component.
[frontend.ui] ... :message "Invalid view resource context"
React ErrorBoundary Error: Invalid view resource context

Source investigation

This appears to be a mismatch between the UI's edit-in-progress filter representation and resource-context validation, rather than the case-comparison behavior:

This is a source-backed explanation, not a runtime trace of the stored clause or a proven introducing commit.

Related reports checked

  • #1322 / logseq#13487: case-sensitive negative contains. This failure happens before text can be entered, so that comparison could not be reached through this UI flow.
  • #1368 / logseq#13538, and logseq#13547: deleted rows/owners and different resource errors. No entity is deleted here.
  • Closed #526: older linked-reference filter toLowerCase error with a different trigger.

No exact duplicate was found in open/closed db-test issues or active Logseq PRs.

Platform

  • Desktop Electron development build, Logseq DB 2.0.1
  • Debian GNU/Linux 13, x86_64
  • Electron 42.3.0 / Chromium 148.0.7778.180
  • Official master commit 22263c36204c86949df6cb4bfa278be0aa215353
  • Renderer and Node worker loaded revision verified; no production-source modifications
  • Reproduced with actual native mouse/keyboard interaction on 2026-10-02
  • Web app untested: the available cloud-browser route to the local dev server is restricted. No cross-platform claim

Activity

  1. yuxi-liu-wired commented on Oct 27, 2026

    @yuxi-liu-wired

    Fixed in logseq/logseq#13884 (fix(views): table filters keep working when a clause is empty or matches text values). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.

  2. added 5 commits that reference this issue on Oct 28, 2026
    252b566
    52b3ff9
    5c3a343
    1e31f6d
    5526095
  3. added 8 commits that reference this issue on Nov 11, 2026
    784690f
    09571ae
    172b035
    2c8731e
    98ffcd7
    c3a4368
    df55f27
    e411cca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions