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]> 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] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz [email protected] _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
