Bug 507993

Summary: Reconciliation report no longer appears
Product: [Applications] kmymoney Reporter: Paul Gover <pmw.gover>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.2.2
Sentry Crash Report:

Description Paul Gover 2025-08-07 18:59:52 UTC
SUMMARY
Running my monthly reconciliation, it works as previously, except the pop-up containing the two reports did not appear.  I need the reports!

STEPS TO REPRODUCE
1. Load an existing database which has been reconciled several times in the past.
2. Add some new transactions, and run the reconciliation process to arrive at a difference of 0 between the external statement total and the cleared transactions.
3. Finish the reconciliation.

OBSERVED RESULT

The "Reconciliation" line appears in the ledger, but nothing else happens.

EXPECTED RESULT

A pop-up window should appear, with two tabs, one for the Reconciliation Report, and one for the Outstanding Transactions report (as far as I can remember, I never use the second report)

SOFTWARE/OS VERSIONS
KMyMoney: 5.2.1
Alkimia: 8.2.1(I18N_ARGUMENT_MISSING) (build against 8.2.1(I18N_ARGUMENT_MISSING))
Gpgme: Unknown(I18N_ARGUMENT_MISSING) (build against 1.24.3(I18N_ARGUMENT_MISSING))
KDiagram: Unknown(I18N_ARGUMENT_MISSING) (build against (I18N_ARGUMENT_MISSING))
libical: Unknown(I18N_ARGUMENT_MISSING) (build against 3.0.20(I18N_ARGUMENT_MISSING))
libofx: Unknown(I18N_ARGUMENT_MISSING) (build against 0.10.9(I18N_ARGUMENT_MISSING))
KDE Frameworks: 6.13.0
Qt: Using 6.9.1 and built against 6.9.1
Gentoo Linux (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.16.0-ryzen


ADDITIONAL INFORMATION
Was all fine last month!
Other than that, I like 5.2.1 and the end of Qt5 etc.
Comment 1 Thomas Baumgart 2025-08-10 16:50:16 UTC
Did you check that the reconciliation report plugin shows up in the settings/plugins section and that it is enabled?
Comment 2 Paul Gover 2025-08-10 17:10:05 UTC
Yup, there right as rain, version 5.2.1
Comment 3 Jack 2025-08-14 21:24:08 UTC
To confirm - the reconciliation_report plugin does show as successfully loaded, you can run through the entire Reconciliation Wizard, and when it's done, all the "C" transactions have been changed to "R" and the new reconciliation date and amount are shown at the bottom of the ledger, but the reconciliation report does not get shown?
Comment 4 Paul Gover 2025-08-19 12:42:04 UTC
Sorry for the late response.
Yes, the wizard runs OK, the Cleared transactions become Reconciled, and the "Reconciliation" line is added with the appropriate date and the reconciled total.  Just no sign of the report popup.

I've just checked my installation history; the previous (successful) reconciliation was probably with version 5.1.95, so this problem might apply to 5.2.0.  I wonder if it's related to the change to tabbed ledger views.

I tried looking at stdout/stderr while finalizing the reconciliation, but there's nothing relevant to reports.  I also tried enabling the log in Settings->General->Support, but nothing appeared as a result, I guess 'cos I wasn't importing anything!
Comment 5 Thomas Baumgart 2025-08-20 19:07:46 UTC
Strange, there has been no change between 5.1.95 and 5.2.0 wrt the report. And that certainly has nothing to do with the change to tabbed ledger views. Could it be, that the report window is hidden behind some others?
Comment 6 Paul Gover 2025-08-21 20:47:12 UTC
I wondered if there was a window hiding somewhere, but no, not even a tiny one.  I thought maybe the option to hide the reconciliation wizard's intro page had take the report with it, but no, I can have the intro but there's still no report.
FWIW my kmymoneyrc file has two entries for the reconciliation wizard:
Reconciliation reportEnabled=true
reconciliationreportEnabled=true
I assume the first is just an old spelling; removing it changed nothing.
I'd happily do some diagnostics if I knew how.  I note a lack of Qdebug calls in the source :-(
Comment 7 Thomas Baumgart 2025-08-23 09:30:53 UTC
I added a few qDebug() outputs and fixed a possible cause to this in the master branch. Can you check using the latest master AppImage if the problem persists?
Comment 8 Thomas Baumgart 2025-08-23 21:37:31 UTC
Git commit d0aa7fe81c3782b26eaa9ec0878425697dc407d6 by Thomas Baumgart.
Committed on 22/08/2025 at 13:58.
Pushed by tbaumgart into branch 'master'.

Try to fix display of reconciliation report

- Enable QAction object
- Add some more debug output

M  +8    -1    kmymoney/plugins/reconciliationreport/kreconciliationreportdlg.cpp
M  +3    -0    kmymoney/plugins/reconciliationreport/reconciliationreport.cpp
M  +3    -0    kmymoney/views/reconciliationledgerviewpage.cpp

https://invent.kde.org/office/kmymoney/-/commit/d0aa7fe81c3782b26eaa9ec0878425697dc407d6
Comment 9 Paul Gover 2025-08-24 18:48:00 UTC
Thomas, 
The AppImage worked fine, and a Reconciliation report appeared as expected.
Many thanks.

(For some reason it wouldn't read my foo.kmy file until I manually decrypted it with GPG - I presume that's something to do with running the AppImage from a Desktop file & konsole session rather than through the KDE start menu item).
Comment 10 Paul Gover 2025-08-24 18:56:50 UTC
For good measure, I downloaded the stable AppImage kmymoney-5.2-4671-linux-gcc-x86_64.AppImage,
and that did NOT produce the report, so your changes appear to have fixed the problem.
Comment 11 Thomas Baumgart 2025-08-25 07:31:32 UTC
Git commit b305dcb74014b7dadb151c8e1d34a56d84bed394 by Thomas Baumgart.
Committed on 24/08/2025 at 10:23.
Pushed by tbaumgart into branch '5.2'.

Try to fix display of reconciliation report

- Enable QAction object
- Add some more debug output
(cherry picked from commit d0aa7fe81c3782b26eaa9ec0878425697dc407d6)

M  +8    -1    kmymoney/plugins/reconciliationreport/kreconciliationreportdlg.cpp
M  +3    -0    kmymoney/plugins/reconciliationreport/reconciliationreport.cpp
M  +3    -0    kmymoney/views/reconciliationledgerviewpage.cpp

https://invent.kde.org/office/kmymoney/-/commit/b305dcb74014b7dadb151c8e1d34a56d84bed394
Comment 12 Thomas Baumgart 2025-08-25 07:34:17 UTC
I have seen the GPG issue as well and it looks like the AppImage version is compiled against a newer version of some gpg libs than the one that is installed on the base system and those do not match the requirements anymore. Something that will go away after some time (update of the system).