Bug 492791 - Warning “qt.modeltest: Inconsistent parent() implementation detected” when starting kmymoney if compiled with cmake option -DUSE_MODELTEST=1
Summary: Warning “qt.modeltest: Inconsistent parent() implementation detected” when st...
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-08 10:22 UTC by Ralf Habacker
Modified: 2024-09-08 10:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2024-09-08 10:22:58 UTC
SUMMARY
Running kmymoney from master branch configured with -DUSE_MODELTEST=1 shows the mentioned warning in the log.

STEPS TO REPRODUCE
1. build kmymoney from git master 
2. start kmymoney 
3. load a simple file

OBSERVED RESULT
In the log there 

Open file QUrl("file:///home/xxx/new-bug.xml")
Start verifying account hierarchy
End verifying account hierarchy
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,1,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent "Anlagen"
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,1,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,2,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,2,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,3,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,3,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,4,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,4,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,5,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,5,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,6,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,6,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,7,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent "0,00"
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,7,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,8,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent "0,00"
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,8,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,9,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,9,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,10,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,10,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,11,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,11,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
qt.modeltest: Inconsistent parent() implementation detected:
qt.modeltest:     index= QModelIndex(0,0,0x3174130,AccountsModel(0x2e919c0, name = "AccountsModel")) exp. parent= QModelIndex(1,12,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel")) act. parent= QModelIndex(1,0,0x326b0a0,AccountsModel(0x2e919c0, name = "AccountsModel"))
qt.modeltest:     row= 0 col= 0 depth= 1
qt.modeltest:     data for child "checking"
qt.modeltest:     data for parent ""
qt.modeltest: FAIL! Compared values are not the same:
   Actual (model->parent(index)) QModelIndex(1,0,0x326b0a0,0x2e919c0)
   Expected (parent) QModelIndex(1,12,0x326b0a0,0x2e919c0)
   (qabstractitemmodeltester.cpp:567)
Model for accounts loaded with 7 items in 0 ms
Model for parameters loaded with 2 items
Model for currencies loaded with 1 items
Start calculating balances: 0 splits
End calculating balances
EXPECTED RESULT
This warning should not be shown

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.5
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.14.21-150500.55.73-default (64-bit)
Graphics Platform: offscreen
Processors: 20 × 13th Gen Intel® Core™ i5-13600KF
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2

ADDITIONAL INFORMATION
This issue has been initial detected at job https://invent.kde.org/office/kmymoney/-/jobs/2101733#L2422 for merge request https://invent.kde.org/office/kmymoney/-/merge_requests/230