Skip to content

[Bug]: Crash when re-enabling "AI" on first column after setting PK on second column #3953

@TheKite0

Description

@TheKite0

What did you do?

[DB] Browser for SQLite crashes when re-enabling the AI (Auto Increment) checkbox on the first column, after setting PK (Primary Key) on the second column. In this scenario, the AI checkbox is silently disabled (unchecked) on the first column, but PK remains checked on the second.

Steps to Reproduce:

  1. Create a new table
  2. Add two columns (e.g. id and title)
  3. In the first column (id), check AI → Note: PK is auto-checked as well
  4. In the second column (title), check PK → The AI in the first column is now silently unchecked (but PK remains in the second column)
  5. Now go back to the first column and re-check AI
  6. The application crashes immediately without warning or error message.
n.mov

Crash is 100% reproducible

What did you expect to see?

Either a warning should appear saying AI can only be enabled if that column is the sole primary key or AI should be greyed out / disabled unless PK is active on the same column

What did you see instead?

The application crashes immediately without warning or error message.

DB4S Version

3.13.1

What OS are you seeing the problem on?

MacOS

OS version

Sequoia 15.5

Relevant log output

Process:               DB Browser for SQLite [36691]
Path:                  /Applications/DB Browser for SQLite.app/Contents/MacOS/DB Browser for SQLite
Identifier:            net.sourceforge.sqlitebrowser
Version:               3.13.1 (3.13.1)
OS Version:            macOS 15.5 (24F74)
System Integrity Protection: enabled

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000001
Termination Reason:    SIGNAL 11 Segmentation fault

Crashed Thread:        0  Dispatch queue: com.apple.main-thread
Crash Function:        sqlb::Table::removeKeyFromConstraint(...)

Thread 0 Crashed:
0   DB Browser for SQLite    sqlb::Table::removeKeyFromConstraint(...) + 1123
1   DB Browser for SQLite    EditTableDialog::fieldItemChanged(...) + 6435
2   QtWidgets                QTreeWidgetItem::setData(...) + 1323
...

Prevention against duplicate issues

  • I have searched for similar issues

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy