Share

Synfig Animation Studio

Tracker: Bugs

5 Error trying to change value of Filename property - ID: 1988939
Last Update: Comment added ( dooglus )

To reproduce the error do the following:

- Import an image in PNG format.
- Save the file in direcory that is not the $HOME
- Close the file and re-open it (so the path to the image changes to be
relative to the location of the .sif file was saved)
- Select the image object.
- In the properties of the object go to "Filename" property and click the
"File" button.

You will get an error like this one:

-----
"The folder contents could not be displayed"

"Error getting information for '/home/<name of your user>/<relative path
used as value property>': No such file or directory"
-----

- After click "Ok" you will get the file dialog in your home directory.


The problem is the way that relative paths are used when trying to open the
file dialog. It misses the real absolute path to the location of the
original image. An example:

- My home folder is /home/yaco
- My .sif file is saved in /home/yaco/synfig/files/file-1.sif
- The imported image in file-1.sif is in
/home/yaco/synfig/files/images/image.png
- The value of the property is relative to the .sif location, so is:
images/image.png
- Now, when you try to change the image value clicking the "File" button,
the Open Dialog will try to open: $HOME + Relative path. In the example:
/home/yaco/images/. As that folder doesnt exists, you get the above error.


Franco Iacomella ( francoiacomella ) - 2008-06-09 14:20

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 6 )




Date: 2008-09-24 21:59
Sender: dooglusProject AdminAccepting Donations

Fixed in SVN r2071.


Date: 2008-09-24 19:19
Sender: dooglusProject AdminAccepting Donations

> In the properties of the object go to "Filename" property
> and click the "File" button

I don't see any "File" button. I see a row in the Params panel with
Filename in the Name column. The Value column has "../filename.png" and
the Type column has "string".

Ah, I see. If I stretch the Value column out wider and click on the
filename then a button appears to the right of the filename labelled
"Find". I guess that's what you mean. Clicking it doesn't cause any
problem, but it does list the contents of /home rather than /home/chris as
I would expect. ie. the ".." has been 'done' twice. Perhaps if the png
file was in somewhere other than the parent of the directory I saved the
.sifz to then I'd see your crash.


Date: 2008-08-13 19:24
Sender: gballintijnProject Admin


Duh, you actually have to make the second column wide enough for the find
button to appear.


Date: 2008-08-03 18:55
Sender: gballintijnProject Admin


What version of synfig are you using? What OS/distribution? If I click on
the image filename, I only get a text entry field, not a file open dialog.



Date: 2008-08-03 16:42
Sender: gballintijnProject Admin


What version of synfig are you using? What OS/distribution? If I click on
the image filename, I only get a text entry field, not a file open dialog.



Date: 2008-06-09 18:52
Sender: nobody

Logged In: NO

> - Select the image object.
> - In the properties of the object go to "Filename" property and click
the "File" button.

I tried to reproduce this. I selected the image *layer* then went to the
properties panel and found the filename line there, but I don't see any
buttons. There are 4 columns:

Name: STR Filename
Value: ../../../../tmp/foo.png
Type: string
Time Track: <blank>

How can I see the file button? Am I looking in the wrong place?


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-09-24 21:59 dooglus
resolution_id None 2008-09-24 21:59 dooglus
close_date - 2008-09-24 21:59 dooglus