I'm getting errors when running some etcpack.exe processes at the same time. It seems the processes use the same temporary file (tmp.ppm) therefore cannot access this file in a parallel way.
Could anybody please help me?
The error log:
[malitc-11]Mipmap level: 0
[malitc-1]Compressing. Output file: Z:\Projects\game\build\..\release\textures_android\ice_zone08_props_lm.ktx
error: Could not open file tmp.ppm
error: Could not read tmp.ppm file.
Hi katatunix,
This is something we are aware of. The latest version of TCT stores the temporary files in the execution directory rather than the temp directory and so as long as the two processes are started in different directories you won't have any issues.
Another (untested) workaround would be to set different temp directories for each instance of etcpack.
The 'recommended' fix, in this instance, is to not run etcpack in parallel.
Hope this helps,
Rich
For extra points, write a wrapper executable that invokes the real one with randomized temp directories!