Thank you for the tips, Larry.

After a day of testing, and poking around, I realized I was using the 32
bit build of oiio.
It worked without any issues when I switched to the 64 bit build.

Is there any way I can contribute back to the community?

Below this line is just for sharing the information:
The followings are the actual command I ran (in 32 bit build) and the
return values in command prompt and pycharm.

COMMAND
oiiotool.exe --debug --runstats --info
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
--ch R
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
--ch G --chappend
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
--ch B --chappend
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Opacity.jpg
--ch R --chappend --chnames R,G,B,A --resize 8192x8192 --compression lzw -d
uint8 -o
D:\lab\megascans\_output\plants_3d_ucokaamia\sourceimages\result.jpg

OUTPUT FROM CMD
Reading
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
: 8192 x 8192, 3 channel, uint8 jpeg
Reading
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
: 8192 x 8192, 3 channel, uint8 jpeg
This is really the end of the return values from cmd. It stopped without
any error message or output data.

OUTPUT FROM PYTHON
subprocess.CalledProcessError: Command 'oiiotool.exe  --debug --runstats
--info
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
--ch R
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
--ch G --chappend
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Albedo.jpg
--ch B --chappend
D:\lab\megascans\plants_3d_ucokaamia\Textures\Atlas\tmjrbjiia_8K_Opacity.jpg
--ch R --chappend --chnames R,G,B,A --resize 8192x8192 --compression lzw -d
uint8 -o
D:\lab\megascans\_output\plants_3d_ucokaamia\sourceimages\result.jpg'
returned non-zero exit status -1073741819

Thanks again!
Moe

On Fri, Jun 26, 2020 at 2:11 AM Larry Gritz <l...@larrygritz.com> wrote:

> Aha, interesting.
>
> Moe, is it possible to make a Debug build of OIIO and try again (maybe in
> the debugger) and see if we can narrow down where the crash is happening?
>
>
>
> On Jun 25, 2020, at 10:02 AM, Nathan R <nathanru...@gmail.com> wrote:
>
> I think that exit code is a Windows DWORD (unsigned int) converted to a
> signed int. Converting the unsigned value (3221225477) to hex (which is how
> Windows typically represents common exit codes) gives you 0xC0000005, which
> refers to an access violation (i.e. segfault).
>
> On 6/25/2020 9:59 AM, Larry Gritz wrote:
>
> So it writes no output image, but there is no specific error message, nor
> does it crash?
>
> Just out of curiosity, can you reproduce the *exact* command line for us?
>
> Can you try with the extra flags at the beginning: --debug --runstats
> --info
>
> and tell us everything it prints?
>
>
> On Jun 24, 2020, at 11:33 PM, Moe Myint Htet <
> moe.technicalart...@gmail.com <mailto:moe.technicalart...@gmail.com
> <moe.technicalart...@gmail.com>>> wrote:
>
> Ther return code is -1073741819.
>
>
> On Thu, Jun 25, 2020 at 3:03 PM Larry Gritz <l...@larrygritz.com <
> mailto:l...@larrygritz.com <l...@larrygritz.com>>> wrote:
>
>    Off the top of my head, it looks correct...
>
>    What resolution are the r, g, b, a files to begin with?
>
>    What happens, how does it fail? Is it a crash? An error message?
>    Or does it complete but the output image is not what you think it
>    should be?
>
>    Is there anything unusual about the execution environment or
>    hardware, like a nonstandard OS or a very constrained amount of
>    memory?
>
>    Which version of OIIO are you using?
>
>    -- lg
>
>
>    On Jun 24, 2020, at 10:56 PM, Moe Myint Htet
>    <moe.technicalart...@gmail.com
>    <mailto:moe.technicalart...@gmail.com <moe.technicalart...@gmail.com>>>
> wrote:
>
>    Hi Larry,
>
>    This is Moe from Tokyo.
>
>    I couldn't convert 8K textures with oiiotool, and was wondering
>    if you could shed some light.
>    If I use the same command with 4K textures, it works without any
>    problem.
>
>    Here's the command line I'm using.
>
>    r = input jpeg texture path
>    g = input jpeg texture path
>    b = input jpeg texture path
>    a = input jpeg texture path, and I'm using its R channel for alpha
>    output = output tiff texture path
>    oiiotool r --ch R g --ch G --chappend b --ch B --chappend a --ch
>    R --chappend --chnames R,G,B,A --resize 8192x8192 --compression
>    lzw -d uint8 -o output
>
>    If there's no known limitation for converting large textures,
>    could it be that the command I'm using is wrong?
>
>    Thank you for your time.
>    Moe
>
>
>    --
>    Larry Gritz
>    l...@larrygritz.com <mailto:l...@larrygritz.com <l...@larrygritz.com>>
>
>
>
>
>    _______________________________________________
>    Oiio-dev mailing list
>    Oiio-dev@lists.openimageio.org
>    <mailto:Oiio-dev@lists.openimageio.org <Oiio-dev@lists.openimageio.org>
> >
>    http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org
> <Oiio-dev@lists.openimageio.org>>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
>
> --
> Larry Gritz
> l...@larrygritz.com <mailto:l...@larrygritz.com <l...@larrygritz.com>>
>
>
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
>
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
>
> --
> Larry Gritz
> l...@larrygritz.com
>
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to