cstitch_0.9.6_Linux does not create xst project file
Status: Beta
Brought to you by:
tomklein
Hi,
in cstitch_0.9.6_Linux (distribution Mageia) I would like to save a project to xst file. After save it creates a file with the name without .xst . But I can open it as txt file and see the data from cstitch, which I cannot open as the project again.
How to replicate:
check the name of the created file
try to open this file in cstitch: File → Open a saved project → cstitch crashes
Thanks for the report. For others reading this, this is an issue affecting Linux but not Windows.
1) There's no requirement that cstitch project files end in .xst (it's just a suggested extension to go with the program), and the file dialog on linux doesn't automatically add an extension (Windows does), so you would need to add an .xst extension on linux when you save if that's the file extension you want.
2) That said, you should be able to open a project file with any name, and you're right, currently you can't (the file has to have a "." somewhere in the name in order for it to appear in the File Open dialog), so I'll fix that. In the meantime you can either open your saved project from the "Recent projects" menu, or manually give your file an extension (any extension...) and then open it using the "Open a saved project" option.
3) Before I publish the fix for #2 I'd like to also figure out why the program is crashing. Can you give me more details on that? When you say "cstitch crashes", does that mean the program disappears? If so, what leads to the crash? In my testing, the project that was saved without an extension doesn't even show up in the "Open a saved project" dialog (that's what needs to be fixed), so were you opening some other file, or just hitting cancel on the Open File dialog, or ... ? Thanks.
Ok, so:
1) and 2):
3) I tried to open my last saved project and I have got:
[yullaw@localhost cstitch_0.9.6]$ /home/yullaw/Plocha/cstitch_0.9.6/cstitch
QPixmap::scaleWidth: Pixmap is a null pixmap
Empty image in recreateImage.
Unathorized access to memory (SIGSEGV)
But sorry, I was surprised that later I created a new project with the same file paths, pics, settings etc. and now all works. So I cannot replicate the crash again :) It seems like my project file was broken.
The latest downloads and source files have fixed this issue: you can save projects under any name (which was always the case (on linux)) and you can now open a project with any name, even if it doesn't have an extension.
I'll add "recently saved pdfs" to the list of possible new features to go in the next release.
Thanks!