Bug 501993 - Segfault when started in a path containing json files
Summary: Segfault when started in a path containing json files
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.1.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
: 500796 502503 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-25 18:34 UTC by bleader
Modified: 2025-04-07 18:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
minimal json used to reproduce the issue (23 bytes, application/json)
2025-03-25 18:34 UTC, bleader
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bleader 2025-03-25 18:34:19 UTC
Created attachment 179729 [details]
minimal json used to reproduce the issue

SUMMARY
Skrooge segfault on startup when the folder it is started in contains json files, which in my case is my my home, resulting in not being able to start skrooge from an app launcher.

STEPS TO REPRODUCE
1. go to a directory with json files
2. start skrooge

OBSERVED RESULT
Splash screen is shown for a brief instant and skrooge segfaults.

EXPECTED RESULT
skrooge starts properly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux - not running KDE
KDE Plasma Version:  not running KDE
KDE Frameworks Version: all k* packages in dependencies of skrooge are in 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I straced skrooge and it looks like it opens all the jsons it can find in the current folder. I also attached a minimal json with which this happens.

Backtrace is pretty short:
#0  0x00007ffff7b2f724 in KAboutPerson::name() const () from /usr/lib/libKF6CoreAddons.so.6
#1  0x00007ffff7e717f4 in SKGMainPanel::SKGMainPanel (this=<optimized out>, iSplashScreen=<optimized out>, iDocument=<optimized out>, this=<optimized out>, iSplashScreen=<optimized out>,
    iDocument=<optimized out>) at /usr/include/qt6/QtCore/qarraydatapointer.h:120
#2  0x0000555555557fb9 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/skrooge/skrooge-25.1.0/skrooge/main.cpp:209
Comment 1 Stephane MANKOWSKI 2025-03-25 20:16:21 UTC
Git commit 68bb04d80627aaafdb56ab0f575e08e73660efc7 by Stéphane MANKOWSKI.
Committed on 25/03/2025 at 20:15.
Pushed by smankowski into branch 'master'.

Segfault when started in a path containing json files

M  +2    -1    .vscode/settings.json
M  +1    -0    CHANGELOG
M  +9    -6    skgbasegui/skgmainpanel.cpp
M  +10   -9    skgbasemodeler/skgservices.cpp

https://invent.kde.org/office/skrooge/-/commit/68bb04d80627aaafdb56ab0f575e08e73660efc7
Comment 2 bleader 2025-03-25 20:33:41 UTC
That was fast, I can confirm it works, thank you very much.
Comment 3 Stephane MANKOWSKI 2025-03-26 20:38:51 UTC
*** Bug 500796 has been marked as a duplicate of this bug. ***
Comment 4 Stephane MANKOWSKI 2025-04-07 18:15:17 UTC
*** Bug 502503 has been marked as a duplicate of this bug. ***