Bug 411210 - KXStitch cannot open / recognize it's own files
Summary: KXStitch cannot open / recognize it's own files
Status: RESOLVED FIXED
Alias: None
Product: KXStitch
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Steve Allewell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-23 14:42 UTC by Debbie
Modified: 2019-08-25 20:17 UTC (History)
1 user (show)

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


Attachments
build.txt (28.11 KB, text/plain)
2019-08-24 20:25 UTC, Debbie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Debbie 2019-08-23 14:42:50 UTC
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
Comment 1 Debbie 2019-08-23 14:53:24 UTC
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.
Comment 2 Steve Allewell 2019-08-24 11:37:55 UTC
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
Comment 3 Debbie 2019-08-24 13:12:17 UTC
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!
Comment 4 Steve Allewell 2019-08-24 16:15:05 UTC
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
Comment 5 Debbie 2019-08-24 18:23:15 UTC
[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.
Comment 6 Debbie 2019-08-24 19:07:05 UTC
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.
Comment 7 Steve Allewell 2019-08-24 20:18:24 UTC
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
Comment 8 Debbie 2019-08-24 20:25:11 UTC
Created attachment 122328 [details]
build.txt
Comment 9 Steve Allewell 2019-08-24 21:16:12 UTC
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
Comment 10 Debbie 2019-08-24 21:58:24 UTC
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
Comment 11 Steve Allewell 2019-08-25 17:50:36 UTC
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
Comment 12 Debbie 2019-08-25 17:57:48 UTC
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!
Comment 13 Steve Allewell 2019-08-25 18:08:19 UTC
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
Comment 14 Debbie 2019-08-25 19:32:32 UTC
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
Comment 15 Steve Allewell 2019-08-25 20:17:15 UTC
You are very welcome, I'm glad we could get it sorted out.
Happy charting

Regards


Steve