Closed LiborBatek closed 1 year ago
also attaching image file which caused it... ac_DefaultMaterial_Roughness 1001
@LiborBatek This would be better to debug if the subprocess output would be logged as well.
Could you change this logic to something like this:
except subprocess.CalledProcessError as exc:
# Log subprocess output
self.log.error(exc.output)
# Log exception
self.log.error(traceback.format_exc())
raise
return out
And then try again?
The subprocess.CalledProcessError.output
should be the console output produced by the subprocess in the case of an exception. Likely maketx
will have logged more useful information there and can help us pinpoint the issue.
@BigRoy thx I invited guys to look on that ...I m just not able to do it myself being just poor cg artist :)
This is caused by "missing OCIO config" error in maketx
. Strange as it happens only to specific files in specific scenarios (and with OCIO config present). I'll add more details.
Could it be that the subprocess paths passed along don't get the backslashes or spaces in paths escaped correctly? So that only some OCIO paths might be invalid? We could try enforcing forward slashes?
@LiborBatek @antirotor Would this branch work?
Here's a diff without opening a PR directly.
Also that vendorized OCIO config being present would only be there if one would have correctly pulled the latest binaries and rebuild environment, etc. along with the recent refactoring instead of only checking out this branch. That could've also been the problem?
@LiborBatek is this still happening?
@antirotor did test it in latest develop and works normally without any glitch!
@antirotor did test it in latest develop and works normally without any glit
Unable to publish asset look because of crash during image texture conversion from PNG to tx format using maketx utility.
[cuID:OP-3944]