Imagination PowerVR SDK Blog

PVRTexTool GUI Linux x64 can't save image

pvrtextool

#1

On CentOS 7.6 PVRTexTool GUI x64 can’t save encoded image. I’ve tried both from right-click and the pulldown menu. No error message even when the GUI launched from command line.


#2

Hi,

We have tried to reproduce this problem on Linux but we did not find nay problem on recent distributions. We did not try specifically with CentOS 7.6 but we think that this problem might be related to permissions on the folder you are trying to write to or, maybe, unicode characters in your path. Could you try writing the file somewhere else? Are you using our latest 18.2 release?

Thanks.

Carlos.


#3

Hi Carlos,

Yes I’m using the latest 18.2 release. I tried saving to /tmp/mysave.pvr and %HOME%/myimage.pvr and still no result. I don’t use unicode or special character or localization. echo $LC_ALL says C.

strace -e trace=open ./PVRTexToolGUI doesn’t even says it opens the save file path. Last few lines from strace, (The image I was trying to convert is at /tmp/elvenarcher_lv1.atlas/elvenarcher_lv1.png):

open("/tmp/elvenarcher_lv1.atlas/elvenarcher_lv1.png", O_RDONLY) = 10
open("/tmp/elvenarcher_lv1.atlas/elvenarcher_lv1.png", O_RDONLY) = 10
open("/tmp/elvenarcher_lv1.atlas/elvenarcher_lv1.png", O_RDONLY|O_CLOEXEC) = 10
open("/home/me/.pvrconfig/Imagination Technologies/com.powervr.PVRTexTool.plist.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 10
open("/home/me/.icons/Oxygen_White/cursors/cross", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/me/.icons/Oxygen_White/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/icons/Oxygen_White/cursors/cross", O_RDONLY) = 10
open("/home/me/.pvrconfig/Imagination Technologies/com.powervr.PVRTexTool.plist.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 10
open("/home/me/.pvrconfig/Imagination Technologies/com.powervr.PVRTexTool.plist.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 10
open("/home/me/.config/QtProject.conf", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 13
open("/home/me/.config/QtProject.conf.lock", O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0644) = 13
open("/home/me/.config/QtProject.conf.M32300", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = 14

Thank you for your time.


#4

Hi,

According to your trace, PVRTextool is not even trying to open the path, which is odd.
I would suggest to delete the PVRTextool plist file located at $HOME/.pvrconfig/Imagination Tech…
If the problem persist, we need the full strace, because the tool is probably trying to open the folder at a different point in time.
Another thing you could try would be to execute the tool with admin permissions (sudo -E ./PVRTextool), this will 100% sure remove any permission issue if that’s the problem here.

Regards.

Carlos.


#5

Hi Carlos,

Removing ~/.pvrconfig/Imagination\ Technologies/com.powervr.PVRTexTool.plist doesn’t help. Same result running the application on sudo or even login as root.

Attached is the result of strace /opt/Imagination/PowerVR_Graphics/PowerVR_Tools/PVRTexTool/GUI/Linux_x86_64/PVRTexToolGUI 1>pvrtraceroot.txt 2>&1 ran from root shell.

As you can see from the strace I opened a png at /tmp/elvenarcher_lv1.atlas/elvenarcher_lv1.png and I was trying to save to /tmp/elvenarcher_lv1.atlas/testsave.ktx (or pvr).

Regards,

Pietra.

pvrtraceroot.txt.zip (105.0 KB)


#6

Hi,

Could you run (under root) the following command:

chown -R yourusername:yourusername /opt/Imagination/PowerVR_Graphics/PowerVR_Tools

Then, try PVRTextool.

Thanks

Carlos.


#7

Hi Carlos,

I tried, same result. Failed saving with no error. I also tried disabling SELinux (sudo setenforce 0), reboot without devtool-8 environment (gcc 8 related env), none of them work.

Regards,

Pietra.


#8

Hi Pietra,

Could you try to save the file directly in /tmp. Does it work? I think there might be a problem with the dot in the path. I have tried on my virtual machine and it does not save if there is a dot in the folder name.

Regards.

Carlos.


#9

Hi Carlos,

Yes apparently the dot in the folder is what causes the problem. Without it I can save the file.

Looking forward to the new libPVRTexLib Linux_x86_64 so I can integrate it with our custom tool :slight_smile:

Thank you for your time Carlos.

Regards,

Pietra.