sqlitebrowser / sqlitebrowser/sqlitebrowser

[Bug]: When DB Browser freezes on a long query, it CLEARS your sqbpro file

Open
#3,157 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Execute SQL projects
Dominant language
C++
Stars
24.6k
Forks
2.4k
Avg merge
3d 49m
Merged PRs (30d)
3

Description

What did you do?
  • Ran a long query
  • Tried canceling
  • DB Browser froze
  • Terminated program
  • sqbpro file goes to 0 bytes
What did you expect to see?

Not to zero out my file

What did you see instead?

It zeroed out my file. This is the SECOND time this has happened. The first time, I didn't have a backup of all my SQL, so I lost a TON of it and had to rewrite it all. That burned me good, so I have taken to backing up and even versioning my sqbpro file. It just happened again. While I still have my last backup, I still lost an hour's worth of SQL.

image

DB4S Version

3.12.2

What OS are you seeing the problem on?

Windows

OS version

Windows 7

Relevant log output

No response

Prevention against duplicate issues
  • I have searched for similar issues

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence in DB4S 3.12.2 on Windows 7: run a long query, cancel it, terminate the frozen program, and inspect the sqbpro file. Done means identifying why the file becomes 0 bytes and preserving its contents after this failure path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sqlite
Domain
database, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.