Hi Larry! oiiotool 1.png -o 1.tx : works oiiotool 1.png -o 1.exr: just closes without any error message
I made a cmd script to check that ---- 1.cmd ---- oiiotool 1.png -o 1.tx if errorlevel 0 ( echo "tx OK" ) else ( echo "error tx" ) oiiotool 1.png 1.exr if errorlevel 0 ( echo "exr bad params" ) else ( echo "error exr bad params" ) oiiotool 1.png -o 1.exr if errorlevel 0 ( echo "exr OK" ) else ( echo "error exr" ) ---- 1.cmd ---- here is an output "tx OK" "error exr bad params" "exr OK" openexr is mingw-w64-x86_64-openexr-2.2.0-2 Regards Anton ----- Original Message ----- From: "OpenImageIO developers" <[email protected]> To: "OpenImageIO developers" <[email protected]> Cc: Sent: Mon, 2 May 2016 12:16:12 -0700 Subject: Re: [Oiio-dev] make_texture can't copy file on windows Interesting! Do you know what version of OpenEXR you are building against? One more experiment: oiiotool 1.png -o out.exr i.e., can you make it write an OpenEXR file at all, even outside the context of making MIP maps? On May 2, 2016, at 11:57 AM, Антон Сергунов <[email protected] [1]> wrote: Hi Larry! I've played a bit with maketx. "maketx 1.png" - works. 1.tx produced "maketx 1.png -o out.tx" - works "maketx 1.png -o out.exr" - Gives me exactly the same error: maketx ERROR: could not rename file: File specified cannot be found Regards Anton пн, 2 мая 2016 г. в 23:36, Larry Gritz <[email protected] [2]>: Does it work if you try to make a texture from the command line with 'maketx'? > On May 1, 2016, at 10:26 PM, Антон Сергунов <[email protected] [3]> wrote: > > Hello OIIO! > > I have a piece of code: > ImageBuf buf; > <fill buf here> > ImageSpec config; > config.attribute("maketx:verbose", 5); > if(!ImageBufAlgo::make_texture( > ImageBufAlgo::MakeTextureMode::MakeTxTexture, > buf, outPath, config, &errorStream)) { > throwMessage << "Can't make texture: " << OpenImageIO::geterror(); > throw std::runtime_error(throwMessage.str()); > } > > It works fine on Linux but on windows it returns false and in errorStream I have: > prep 0.00s (333.4 MB) > read "" 0.00s (333.4 MB) > misc2 0.00s (333.4 MB) > misc3 0.00s (333.4 MB) > resize & data convert 0.00s (334.1 MB) > SHA-1: 87510C3B7D31C68EE5D91355986F27CE4F3F40F1 > SHA-1 hash 0.00s (334.1 MB) > AverageColor: 0.71079,0.648054,0.615142,1 > misc4 0.00s (334.1 MB) > Writing file: C:/Users/User/AppData/Local/AppName/App/v1/EB92841B1D198CE9CA41F9D586E446B1A0F89BBC.temp.exr > Filter "box > Top level is 192x256 > Mipmapping... > 96x128 (340.3 MB) > 48x64 (340.3 MB) > 24x32 (340.3 MB) > 12x16 (336.6 MB) > 6x8 (336.6 MB) > 3x4 (332.8 MB) > 1x2 (332.8 MB) > 1x1 (332.8 MB) > Wrote file: C:/Users/User/AppData/Local/AppName/App/v1/EB92841B1D198CE9CA41F9D586E446B1A0F89BBC.temp.exr (332.8 MB) > maketx ERROR: could not rename file: File specified cannot be found > maketx run time (seconds): 0.09 > file read: 0.00 > file write: 0.07 > initial resize: 0.00 > hash: 0.00 > mip computation: 0.00 > color convert: 0.00 > unaccounted: 0.01 ( 0.00 0.00 0.00 0.00) > maketx peak memory used: 340.3 MB > > looks like it's trying to rename .temp.exr file to .exr but .temp.exr file is not there. And these files > OpenimageIO version is 1.7.2dev built for x86_64-w64-mingw32 > > I can't see any Drive activity on system monitor I guess .temp.exr was not even created. > > Any ideas what I'm doing wrong? > > Regards > Anton > _______________________________________________ > Oiio-dev mailing list > [email protected] [4] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org [5] -- Larry Gritz [email protected] [6] _______________________________________________ Oiio-dev mailing list [email protected] [7] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org [8] _______________________________________________ Oiio-dev mailing list [email protected] [9] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz [email protected] [10] Links: ------ [1] mailto:[email protected] [2] mailto:[email protected] [3] mailto:[email protected] [4] mailto:[email protected] [5] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org [6] mailto:[email protected] [7] mailto:[email protected] [8] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org [9] mailto:[email protected] [10] mailto:[email protected]
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
