FS#71351 - [ghostwriter] Ghostwriter 2.0.1-1 segfaults on fresh install

Attached to Project: Community Packages
Opened by Sagi Schwarz (sagischwarz) - Thursday, 24 June 2021, 12:22 GMT
Last edited by Balló György (City-busz) - Friday, 24 March 2023, 08:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When installing Ghostwriter without having an older version installed and at least once run before (so that ~/.config/ghostwriter/ghostwriter.conf exists), the application crashes:

Thread 1 "ghostwriter" received signal SIGSEGV, Segmentation fault.
0x00007ffff7eaed38 in vtable for QHBoxLayout () from /usr/lib/libQt5Widgets.so.5
(gdb) where
#0 0x00007ffff7eaed38 in vtable for QHBoxLayout () at /usr/lib/libQt5Widgets.so.5
#1 0x00007ffff79a3c8c in QLayout::totalSizeHint() const () at /usr/lib/libQt5Widgets.so.5
#2 0x00007ffff79a8382 in QWidgetItemV2::updateCacheIfNecessary() const () at /usr/lib/libQt5Widgets.so.5
#3 0x00007ffff79a86d6 in QWidgetItemV2::minimumSize() const () at /usr/lib/libQt5Widgets.so.5
#4 0x00007ffff7ae3c73 in () at /usr/lib/libQt5Widgets.so.5
#5 0x00007ffff79a3c35 in QLayout::totalMinimumSize() const () at /usr/lib/libQt5Widgets.so.5
#6 0x00007ffff79a523f in QLayout::activate() () at /usr/lib/libQt5Widgets.so.5
#7 0x00007ffff79c6ae6 in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#8 0x00005555555f2e4f in ()
#9 0x000055555559953f in ()
#10 0x00007ffff66b5b25 in __libc_start_main () at /usr/lib/libc.so.6
#11 0x000055555559a53e in ()

Steps to reproduce:
- Remove ~/.config/ghostwriter/ghostwriter.conf
- Start Ghostwriter 2.0.1-1

Steps to mitigate
- Downgrade to Ghostwriter 1.8.1-4
- Run Ghostwriter once, so that a valid `~/.config/ghostwriter/ghostwriter.conf` file is created
- Update to Ghostwriter 2.0.1-1

Upstream issue: https://github.com/wereturtle/ghostwriter/issues/626
This task depends upon

Closed by  Balló György (City-busz)
Friday, 24 March 2023, 08:38 GMT
Reason for closing:  Upstream