Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved scores are always 0 bytes #31

Open
cyberic99 opened this issue Jul 11, 2017 · 9 comments
Open

Saved scores are always 0 bytes #31

cyberic99 opened this issue Jul 11, 2017 · 9 comments

Comments

@cyberic99
Copy link

To reproduce:

  • open iannix
  • draw a curve
  • save the score
    The file size is 0 bytes.

This is on linux, git 46714c2, self compiled.

@cyberic99
Copy link
Author

Is there a Iannix version where saving works?
or is there a workarkound, like serializing to json?

Thanks

@cyberic99
Copy link
Author

I'm sorry to ask, but do you recognize it as a bug and do you plan to try to fix it someday?
I know time is hard to find to fix bugs, but I can't understand the point of using IanniX if you can't save.

@umlaeute
Copy link
Contributor

umlaeute commented Sep 19, 2017

saving works here.

I'm using the version that comes with Debian (0.9.17~dfsg0-3, which is 0.9.17 with some additional patches, most of which have been included in upstream).

If you are using a Debian based distribution (e.g. ubuntu), i'd suggest using the packaged version.

@jobez
Copy link

jobez commented Oct 12, 2017

i am experiencing the same saving issues building from source also. this project is really interesting! thanks for sharing. im going be exploring the codebase and will try to grok how to get the save feature working. if you can give me any pointers i would be appreciative!

@umlaeute
Copy link
Contributor

@jobez which system? which Qt?

@jobez
Copy link

jobez commented Oct 12, 2017

i figured it out!
@umlaeute i am using nixos, which packaged the executable without preserving a functional location of the template file, which was causing the save issues. making sure the file was where the executable expected remedies the problem 💃

@cyberic99
Copy link
Author

@jobez can you be more specific about the template file please? where should it be loacted?
Thanks

@umlaeute
Copy link
Contributor

@cyberic99 IIRC, the template files must be in ./Tools/Templates/, relative to the iannix executable.

both the make install target is quite broken (as it requires a folder /usr/local/bin/Tools/Templates/) and you won't be able to use an out-of-tree build (e.g. if you build in build/, so you end up having an executable IanniX/build/iannix but the templates really live in IanniX/Tools/Templates/ then yo uare out of luck).
see also #22, #23

It really has to look somewhat like:

[email protected]:~/src/IanniX$ ls -l iannix Tools/Templates/
-rwxr-xr-x 1 foobar foobar 3563056 Oct 12 16:29 iannix

Tools/Templates/:
total 24
-rw-r--r-- 1 foobar foobar 16522 May 20 01:02 Cosmosf.txt
-rw-r--r-- 1 foobar foobar  3421 May 20 01:02 _IanniX.txt

@hamoid
Copy link

hamoid commented Mar 26, 2020

Thanks @umlaeute for writing!

I tried copying the Tools/ folder to the right location but that is not enough:

I also need to start the application from the command line from the folder where iannix is found.

If I just run it from QtCreator the Tools folder seem to have no effect, saving produces 0 bytes files and using undo deletes everything (#48)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants