Open ShaddyDC opened 6 months ago
Filed as internal issue #USD-9711
Yeah this is a good callout. I don't think there are any plans to extend USDZ to support zip64, but perhaps someone can add a warning like you suggested if any individual file or the total file size is going to be more than the 32 bit range.
Thanks for looking into the issue! It would be very useful for us if there were support in USDZ for large files like this in the future, as we regularly work with 3D data sets on that scale and want to offer them to users in the USD ecosystem. Having a warning or preferably have the function fail would help a lot in working around it already, however.
Having a warning or preferably have the function fail would help a lot in working around it already, however.
From my naive perspective-- could you add a file size check in your pipeline after the call to write out the USDZ?
Yes, that's probably the best option at the moment, but it doesn't feel like that should be the place to address this problem, more like a band-aid. Thank you for the suggestion though!
for sure-- not suggesting it as any more of a bandaid, but wanted to get a sense of how blocking of an issue this is-- thanks!
Description of Issue
Trying to create a usdz file from a large usd folder with
UsdUtilsCreateNewUsdzPackage
creates an invalid file. Opening it gives this error, both in omniverse and usdview.The file is not a valid zip file anymore either. We suspect that the issue is that the file size is over the 32 bit limit and the ZIP64 extension is not supported, which is fine, but it would be nice if we then received an error code. Actually being able to create those large archives would be even better, of course.
I can provide some concrete reproduction files, but given the file size we're talking about and the suspected cause, I figured it's probably not worth it. I can also give a concrete code snippet to reproduce if needed.
Steps to Reproduce
UsdUtilsCreateNewUsdzPackage(path, outPath)
on the folder, which will returntrue
usdview
orunzip
, both of which failSystem Information (OS, Hardware)
Replicated both on debian-bookworm in docker and on NixOS
24.05.20240515.33d1e75
.Package Versions
23.05, 23.11
Build Flags