https://bugs.kde.org/show_bug.cgi?id=502500
Bug ID: 502500 Summary: Icons corrupted in generated project Classification: Developer tools Product: kapptemplate Version: 0.1.250390 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: argo...@gmail.com Reporter: argo...@gmail.com Target Milestone: --- SUMMARY Any binary files in templates can be corrupted when the project is generated. STEPS TO REPRODUCE 1. Run KAppTemplate 2. Generate a "C++ KDE Frameworks" project 3. Open the icons folder in the generated project 4. Open one of the icons or the svg OBSERVED RESULT An error "Loading ‘16-apps-corrupt.png’ failed. Loading meta information failed." was displayed in Gwenview instead of the expected image. Upon inspection of the file, it was found to be corrupted with many replacement chars (U+FFFD): $ cd /tmp/corrupt/icons $ xxd 16-apps-corrupt.png | head -n1 00000000: efbf bd50 4e47 0d0a 1a0a 0000 000d 4948 ...PNG........IH The installed file sizes are clearly larger: $ du -b * 1093 16-apps-corrupt.png 1488 22-apps-corrupt.png 2225 32-apps-corrupt.png 3378 48-apps-corrupt.png 202 CMakeLists.txt 3278 sc-apps-corrupt.svgz EXPECTED RESULT The first 16 bytes of the file should be: $ cd sdk/kapptemplate/src/templates/C++/kde-frameworks6/icons $ xxd 16-apps-%\{APPNAMELC\}.png | head -1 00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR $ du -b * 625 16-apps-%{APPNAMELC}.png 802 22-apps-%{APPNAMELC}.png 1231 32-apps-%{APPNAMELC}.png 1862 48-apps-%{APPNAMELC}.png 258 CMakeLists.txt 1780 sc-apps-%{APPNAMELC}.svgz SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 6.3.0 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 ADDITIONAL INFORMATION The installed archives found under /usr/share/kdevappwizard/templates are not corrupted, so this is not a packaging problem: $ cd sdk/kapptemplate/src/templates/C++/kde-frameworks6/icons $ cmp -l <(tar -jf /usr/share/kdevappwizard/templates/kde-frameworks6.tar.bz2 -x './icons/16-apps-%{APPNAMELC}.png' -O) 16-apps-%{APPNAMELC}.png && echo Same! Same! $ -- You are receiving this mail because: You are watching all bug changes.