Skip to content

"Query Execution Failed" loop when attempting to open a deleted SQLite database #470

@bradsokol

Description

@bradsokol

What happened?

When I attempt to open a non-existant SQLite database using a connection that I previously created in TablePro, a "Query Execution Failed" message is displayed. Dismissing the message results in it re-appearing. The app is stuck in a loop and must be force quit.

Steps to reproduce

  1. In TablePro, create a connection to an existing SQLite database.
  2. Select a table in the sidebar.
  3. Close TablePro.
  4. Delete/move/rename the database file.
  5. Re-open TablePro.
  6. Attempt to open the connection created in step 1. The "Query Execution Failed" alert is diplayed.
  7. Click either the "Ask AI to Fix" or "OK" buttons on the alert. The alert disappears then reappears. Since it is a modal alert, the app is unusable and must be force quit.

If a table is not selected in the sidebar before closing TablePro (step 2 above), the app will re-open the connection cleanly. The issue only happens when a table is selected.

Expected behavior

A message indicating that the database/connection could not be opened. When dismissed, return to the app. Alternatively, the "Ask AI to Fix" option could guide me to re-connect to the database file, if it stil exists.

Database type

SQLite

TablePro version

0.15

macOS version & chip

macOS 26.4 / Apple silicon

Screenshots / Logs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions