Skip to content

Crash in TableBrowser when using *.sqbpro file from current release (3.11.2-1)  #2232

@hertzhaft

Description

@hertzhaft

Details for the issue

I am working with a fresh build (May 3, 2020).
I open a *.sqbpro project file created with the actual version 3.11.2-1.
It loads without error messages or warnings.
I open the TableBrowser to view table contents. The program crashes on some of the tables.

What did you expect to see?

The table content.

What did you see instead?

The program crashes with a segmentation fault.

Useful extra information

The error message on the command line is:

QFont::fromString: Invalid description '(empty)'

I rebuilt in Qt Creator.
When debugging, the crash happens in TableBrowser.cpp, line 786.

Relevant parts of the call stack:
1 TableBrowser::applySettings TableBrowser.cpp 786 0x5555557b6946
2 TableBrowser::unlockViewEditing TableBrowser.cpp 938 0x5555557b7803
3 TableBrowser::applySettings TableBrowser.cpp 777 0x5555557b684c
4 TableBrowser::updateTable TableBrowser.cpp 544 0x5555557b3ba4
5 TableBrowser::qt_static_metacall moc_TableBrowser.cpp 317 0x555555807bd2

It seems that, after parsing the older *.sqbpro XML file, some checks for unset values are missing when the results are applied to the UI.

The error message is not pointing to the real reason for the crash.
I think there should be a quiet and error-free migration from the v.3.11 project file format to 3.12.

What operating system are you using?

ArchLinux 5.6.10

What is your DB4S version?

Current build from source, 3.12.0-(alpha or betas)

Did you also

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions