KXStitch cannot recognize any of it's saved files. I get the following error message: STEPS TO REPRODUCE 1. Open KXStitch 2. Create, then save a file 3. Try to open the file via "Open file ..." or "Open recent ..." dialogs OBSERVED RESULT "The file does not appear to be a recognized cross stitch file." EXPECTED RESULT SOFTWARE/OS VERSIONS Manjaro 18.0-4 XFCE Stable KDE Plasma framework: 5.60.0-1 KDE Plasma-integration 5.16.4-1 KDE Plasma Version: 5.16.4-1 KDE Frameworks Version: 5.60.0-1 Qt-base Version: 5.13.0-7.1 ADDITIONAL INFORMATION
I missed the "EXPECTED RESULT" in my original reporting of this bug ... the expected result is that KXStitch would open it's own .kxs files.
Hi Debbie There was a fix for this, assuming it is the same problem, just before 2.2.0 was released. There was a change in KDE/Qt somewhere after KDE 5.55.0/Qt 5.9.7 that appears to have caused this, which fits in with the versions you have. Can you confirm where you got your version of KXStitch from and I can do some further investigation. Thanks
Hello Steve, I get my soure from the AUR repository [Arch User Repository]. I also downloaded someone's flatpak [which also used the AUR as source], and also the 2.2.0 version straight from the KDE.org/KXStitch page and get the exact same results from all of those sources as well. Thanks!
Looking at the Arch user repository here: https://aur.archlinux.org/packages/kxstitch/ that is using version 2.1.1 that would have been affected by the bug. The flatpak, if that has come from the same repository, that will also be affected by the bug. I just tried downloading and installing the kxstitch-2.2.0 tarball from http://download.kde.org/stable/kxstitch/2.2.0/kxstitch-2.2.0.tar.xz compiled and installed, and that works as expected. if you look at the build and install log for the tarball, there will be a line similar to that below -- Installing: /usr/bin/kxstitch In a console, try the following command which kxstitch It should give the same as above. The only thing I can think of is that version from the flatpak or original arch installation is still there and taking precedence. Steve
[deb@deb-pc KXStitch]$ which kxstitch /usr/bin/kxstitch ============== Let me try deleting all versions of KXStitch then do a fresh install from the KDE repo.
I have deleted *every* instance of KXStitch and ran the build script for the KDG.org/KXStitch 2.2.0 ... when I attempt to execute the program, it core dumps ... -------------- [deb@deb-pc kxstitch-2.2.0]$ /bin/kxstitch QLayout: Attempting to add QLayout "" to MainWindow "MainWindow#", which already has a layout kf5.kxmlgui: cannot find .rc file "kxstitchui.rc" for component "kxstitch" Segmentation fault (core dumped) ============= Not sure what I've done wrong.
The QLayout message isn't a problem, the missing kxstitchui.rc is causing the failure. It points to an installation issue. If you can run the following to build it: ./build.sh | tee build.txt That will store the configuration and build details to be written to build.txt. If you send me that I can see what the installation looks like. Thanks
Created attachment 122328 [details] build.txt
The obvious thing that sticks out is the files are installed in /bin/ and /share/ I would expect these to be /usr/bin/ and /usr/share/ The build script gets this value from the following command qtpaths --install-prefix There is always the chance that this is returning an empty value for some reason, which would result on what we can see in the build.txt file. Your first post said you have Manjaro XFCE. I suspect you installed Qt and KDE as separate packages. How did you do that? Do other Qt/KDE applications work for you? I am going to build a virtual machine to test it and see what happens when I try to install it on that. It will probably take a few days though. Thanks
If I remember correctly, the first time I installed KXStitch via the AUR, I had to install many packages, including QT5 separately and prior to KXStitch. KXStitch is the only KDE program I run. Not to worry about taking however long is necessary. I appreciate that you are doing this on your own time. For the time being, I've gone back to designing my patterns via graph paper and colored pens. Thanks
Hi Debbie I have built a virtual machine, installing Manjaro-xfce-18.0.4-x86_64 I also installed all packages from the kf5 and qt5 groups using the package manager, this gives kde-5.60.0 and qt-5.13.0. I compiled and installed the kxstitch 2.2.0 package from kde, and everything works as expected. The command 'qtpaths --install-prefix' returns /usr as expected and kxstitch was installed to /usr/bin/ and /usr/share/ I think that something in your installation is broken, either when installing the kxstitch package or the flatpak, or maybe even previous to that. Try the 'qtpaths --install-prefix' on yours and see if it returns /usr or an empty value. Since you are only using kxstitch which uses qt and kde, it would be worth uninstalling anything qt and kde related and then reinstall the qt5 and kf5 package groups, then try again. Regarding /bin, that should be a link to /usr/bin Regarding /share, I don't see that in the installation I have. If you check what is in it, if there is only the kxstitch stuff, it would probably be safe to delete it so that /share no longer exists in the root directory. There should only be /usr/share/. Beyond that, I'm not sure what else to suggest. However it would be worth prompting the maintainer of the Arch KXStitch package to update it to 2.2.0 Let me know how you get on. Steve
Hey Steve, I ran the "qtpaths --install-prefix" with a "command not found. I will do as you suggest and delete everything kde and qt related and start fresh. I will let you know how it goes. Thank you again!
That would explain it then. You might get away with installing everything from the kf5 qt5 package groups which should then bring in qtpaths which should fix your problem. I'm guessing the original kxstitch package you installed only brought in the libraries. Steve
Okay ... I deleted all kde /qt5 / kf5 / Kxstitch related packages, then installed all the qt5 / kf5 group packages. Did a clean install of the 2.2.0 Kxstitch package and ALL WORKS! THANK YOU so very much for taking the time to work with me on this! I cannot tell you how much this program means to me in order not to have to rely on my *very* old windows XP laptop! I appreciate your patience and assistance. Debbie
You are very welcome, I'm glad we could get it sorted out. Happy charting Regards Steve