FS#75921 - [sqlitebrowser] crashes since new update (3.12.2-2)

Attached to Project: Community Packages
Opened by Samega 7Cattac (Samega 7Cattac) - Friday, 16 September 2022, 13:56 GMT
Last edited by Levente Polyak (anthraxx) - Tuesday, 25 October 2022, 21:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since version 3.12.2-2 the program crashes every time I try to modify a table with the error:
```
$ sqlitebrowser
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
/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)
```
If I downgrade to 3.12.2-1 this doesn't happen.


Additional info:
Package version: sqlitebrowser 3.12.2-2
Package link form oficial repo: https://archlinux.org/packages/community/x86_64/sqlitebrowser/
Upstream bug report: https://github.com/sqlitebrowser/sqlitebrowser/issues/3170
Similar upstream bug report (with fedora): https://github.com/sqlitebrowser/sqlitebrowser/issues/2779

Steps to reproduce:
1- Install last sqlitebrowser version (3.12.2-2)
2- Open a database file
3- Try to change a table
This task depends upon

Closed by  Levente Polyak (anthraxx)
Tuesday, 25 October 2022, 21:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.12.2-3
Comment by Toolybird (Toolybird) - Saturday, 17 September 2022, 01:28 GMT
Any chance you could compile with this patch [1] and test it again?

[1] https://github.com/sqlitebrowser/sqlitebrowser/commit/07f1d7aa
Comment by Toolybird (Toolybird) - Sunday, 16 October 2022, 19:43 GMT
No response from reporter. Appears to be fixed upstream. Assigning to PM for consideration.
Comment by Jean-Christophe Imbert (Bobyl) - Tuesday, 25 October 2022, 14:31 GMT
Same issue here with version 3.12.2-2
I confirm that the bug has been fixed upstream since there are no crashes when using sqlitebrowser built from source.

Loading...