https://bugs.kde.org/show_bug.cgi?id=476995

Jan K <jprofeso...@o2.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jprofeso...@o2.pl

--- Comment #4 from Jan K <jprofeso...@o2.pl> ---
I have the same problem, also on Gentoo with its current stable versions of
qt5/plasma/kde frameworks etc.

It seems that the `Gwenview::PlaceTreeModel` from lib/placetreemodel.cpp
malfunctions. The file has not been changed for two years, so my guess is that
recent changes in KFilePlacesModel (KIO) broke gwenview.

As far as my debugger claims, `Gwenview::PlaceTreeModel::canFetchMore` always
returns `false` when I try to expand a folder.
So far I flinched from further debugging once I saw I'd have to rebuild qt &
KDE libs with debugging symbols. I might dig into it with some pointers…



Also, I can't tell if this is related or not, but it seems that in vicinity of
the class responsible for the folders tab a test case fails.
When I try `make test` I get:
===========================================================
make test
Running tests...
Test project /tmp/gwenview/build
(…)
      Start  5: placetreemodeltest
 5/14 Test  #5: placetreemodeltest ...............***Failed    1.16 sec```
========================================================
********* Start testing of PlaceTreeModelTest *********
Config: Using QtTest library 5.15.11, Qt 5.15.11 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 13.2.1 20230826), gentoo 2.14
PASS   : PlaceTreeModelTest::initTestCase()
QWARN  : PlaceTreeModelTest::testListPlaces() kf.kio.core: Malformed JSON
protocol file for protocol: "trash" , number of the ExtraNames fields should
match the number of ExtraTypes fields
QWARN  : PlaceTreeModelTest::testListPlaces() kf.kio.core: Malformed JSON
protocol file for protocol: "trash" , number of the ExtraNames fields should
match the number of ExtraTypes fields
FAIL!  : PlaceTreeModelTest::testListPlaces() Compared values are not the same
   Actual   (model.rowCount()): 11
   Expected (8)               : 8
   Loc: [/tmp/gwenview/tests/auto/placetreemodeltest.cpp(127)]
QWARN  : PlaceTreeModelTest::testListUrl1() kf.jobwidgets: Cannot register a
job with KUiServerV2JobTracker without QGuiApplication::desktopFileName
QWARN  : PlaceTreeModelTest::testListUrl1() kf.kio.core: Malformed JSON
protocol file for protocol: "trash" , number of the ExtraNames fields should
match the number of ExtraTypes fields
QWARN  : PlaceTreeModelTest::testListUrl1() org.kde.kdegraphics.gwenview.lib:
Unresolved mime type  "image/qoi"
QWARN  : PlaceTreeModelTest::testListUrl1() org.kde.kdegraphics.gwenview.lib:
Unresolved mime type  "image/x-mng"
QWARN  : PlaceTreeModelTest::testListUrl1() org.kde.kdegraphics.gwenview.lib:
Unresolved raw mime type  "image/x-samsung-srw"
PASS   : PlaceTreeModelTest::testListUrl1()
PASS   : PlaceTreeModelTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 1066ms
********* Finished testing of PlaceTreeModelTest *********
========================================================

This might be a red herring,  but it still raises my eyebrows that '/' is being
added twice, for once I added a loop to print the model, I got:
========================================================
    for(int i = 0 ; i < 11; ++i)
        qDebug("URL for index %d is: %s", i, model.urlForIndex(model.index(i,
0)).path().toLocal8Bit().data());
========================================================
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 0 is:
/tmp/placetreemodeltest-vstthm/url1
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 1 is:
/tmp/placetreemodeltest-vstthm/url2
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 2 is: /home/jasiu
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 3 is:
/home/jasiu/Desktop
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 4 is:
/home/jasiu/Documents
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 5 is:
/home/jasiu/Downloads
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 6 is:
/home/jasiu/Pictures
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 7 is: /
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 8 is: /
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 9 is: /files
QDEBUG : PlaceTreeModelTest::testListPlaces() URL for index 10 is: /locations
========================================================

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to