Repository: sqlitebrowser/sqlitebrowser

Issue #3069: [Bug]: App crashing and closing on Linux when selecting "Modify Table"
Created: 2022-06-12T21:59:27Z
What did you do?
I opened the sqlitebrowser app, selected a database, right clicked a table, then selected "Modify Table". The app instantly crashes and closes. I tried both versions from Arch Linux's package manager and Flatpak and had the same results.
I run the application through a terminal, please check the log for more details.
What did you expect to see?
The table modification window to open.
What did you see instead?
The app instantly closed.
DB4S Version
3.12.2
What OS are you seeing the problem on?
Linux
OS version
Arch Linux with kernel 5.18.2-arch1-1
Relevant log output
/usr/include/c++/12.1.0/bits/basic_string.h:1292: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::front() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&]: Assertion '!empty()' failed.
Aborted (core dumped)
Prevention against duplicate issues

 I have searched for similar issues

Duplicate issue #1599: Application crashed during modify table
Created: 2018-11-01T19:26:10Z
Details for the issue
What did you do?

create new database
create new table
add few field
save changes
modify created table
add new few field
application crashed

What did you expect to see?
The application should after the save changes, add new field to table without crashed.
What did you see instead?
When the application crashed, console show this:
user@linux:~> sqlitebrowser 
kf5.kio.core: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf\nLoaded services file OK.\nWARNING: The 'netbios name' is too long (max. 15 chars).\n\n"
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5092, resource id: 33971598, major code: 40 (TranslateCoords), minor code: 0
executeSQL:  "ALTER TABLE `crash` ADD COLUMN \t`Field5`\tINTEGER" -> no such table: crash
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 12 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
KCrash: Application 'sqlitebrowser' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Stopped              sqlitebrowser

Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?

 Windows: ( version: ___ )
[X ] Linux: ( _distro: openSUSE  Tumbleweed)
 Mac OS: ( version: ___ )
 Other: ___

What is your DB4S version?

 3.11.0-alpha*
[X ] 3.10.1
 Other: ___

Did you also

 Try out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds
[ X] Search for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20

Closing comment (2022-07-05T12:06:03Z): This is a duplicate of #3069 and has been fixed.
If you can build from the most current source, all will be good again.