<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>501993</bug_id>
          
          <creation_ts>2025-03-25 18:34:19 +0000</creation_ts>
          <short_desc>Segfault when started in a path containing json files</short_desc>
          <delta_ts>2025-04-07 18:15:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>skrooge</product>
          <component>general</component>
          <version>25.1.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>25.1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="bleader">morel.dav</reporter>
          <assigned_to name="Stephane MANKOWSKI">stephane</assigned_to>
          <cc>info</cc>
          
          <cf_commitlink>https://invent.kde.org/office/skrooge/-/commit/68bb04d80627aaafdb56ab0f575e08e73660efc7</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2410526</commentid>
    <comment_count>0</comment_count>
      <attachid>179729</attachid>
    <who name="bleader">morel.dav</who>
    <bug_when>2025-03-25 18:34:19 +0000</bug_when>
    <thetext>Created attachment 179729
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=&lt;optimized out&gt;, iSplashScreen=&lt;optimized out&gt;, iDocument=&lt;optimized out&gt;, this=&lt;optimized out&gt;, iSplashScreen=&lt;optimized out&gt;,
    iDocument=&lt;optimized out&gt;) at /usr/include/qt6/QtCore/qarraydatapointer.h:120
#2  0x0000555555557fb9 in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /usr/src/debug/skrooge/skrooge-25.1.0/skrooge/main.cpp:209</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2410555</commentid>
    <comment_count>1</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2025-03-25 20:16:21 +0000</bug_when>
    <thetext>Git commit 68bb04d80627aaafdb56ab0f575e08e73660efc7 by Stéphane MANKOWSKI.
Committed on 25/03/2025 at 20:15.
Pushed by smankowski into branch &apos;master&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2410560</commentid>
    <comment_count>2</comment_count>
    <who name="bleader">morel.dav</who>
    <bug_when>2025-03-25 20:33:41 +0000</bug_when>
    <thetext>That was fast, I can confirm it works, thank you very much.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2410932</commentid>
    <comment_count>3</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2025-03-26 20:38:51 +0000</bug_when>
    <thetext>*** Bug 500796 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2413812</commentid>
    <comment_count>4</comment_count>
    <who name="Stephane MANKOWSKI">stephane</who>
    <bug_when>2025-04-07 18:15:17 +0000</bug_when>
    <thetext>*** Bug 502503 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>179729</attachid>
            <date>2025-03-25 18:34:19 +0000</date>
            <delta_ts>2025-03-25 18:34:19 +0000</delta_ts>
            <desc>minimal json used to reproduce the issue</desc>
            <filename>test.json</filename>
            <type>application/json</type>
            <size>23</size>
            <attacher name="bleader">morel.dav</attacher>
            
              <data encoding="base64">ewogICJhIjogMSwKICAiYiI6IDIKfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>