schnitzeltony / meta-qt5-extra

OE layer for desktop environments based on Qt5 (KDE KF5+Plasma+Apps / lirios / lxqt / lumina)
MIT License
29 stars 32 forks source link

KArchiveFile data() returns less data then size() #86

Closed kpopv closed 3 years ago

kpopv commented 3 years ago

I'm experiencing a bug with KArchive 5.73 in the dunfell branch which I reported to KDE: https://bugs.kde.org/show_bug.cgi?id=437778 . However, it appears this bug isn't triggered when building the same KArchive from source so I'm looking into whether this is something yocto specific.

Attached is a minimal example tst_KArchiveTest.txt to reproduce the issue. Is someone able to confirm whether or not this is an issue?

FAIL! : KArchiveTest::sizeVsDataDiscrepancy() Compared values are not the same Actual (file1->data().size()): 5685248 Expected (data1.size()) : 5757690 Loc: [tst_KArchiveTest.cpp(56)]

dev-0x7C6 commented 3 years ago

Maybe libraries that're used by it causing problem? Like you suggested libz, maybe it's worth to try different versions? https://layers.openembedded.org/layerindex/recipe/89425/

Not sure if KArchive is using libz for zip files, but probably is.

kpopv commented 3 years ago

Thank you for the suggestion, indeed, it seems related to the specific libz we're using:

I've filed a bug against that specific version's project: https://github.com/jtkukunas/zlib/issues/33

schnitzeltony commented 3 years ago

Just for the record: As soon as I can be of support - let me know :parking:

kpopv commented 3 years ago

As we've verified https://github.com/jtkukunas/zlib/issues/33 is the root cause, this issue can be closed. Thank you for the support!