-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zlib -3 runtime error #14
Comments
That cmake modification sounds like a fine one to me if it otherwise compiles without warnings. Would you like to open a PR for it? |
This SO answer implies that ZLIB can autodetect and, indeed, that's what's being used in the code:
If there's any way you could release a data file or access Arc to see what's going on that would be helpful. I've also modded master to try to get a better handle on where the error is occurring. If you could pull the latest, recompile, and upload the new error message that would be helpful. Also, note this comment in the code:
It's possible you've encountered this rare situation and it's time to think carefully about what to do about it. To test for this, could you please change this line:
to this
and
to
and see if you get a reasonable output that way? |
Thanks for the pointers. I've rebuilt from master and get the later I've got access to ArcMap - here's the raster info, which says it uses LZ77. If I clip out a tiny area and export that back to the GDB, and then try ArcRasterRescue on the clipped area, it runs fine. If I assume uncompressed data with the changes above, ArcRasterRescue runs but outputs a noisy tiff which is presumably just the compressed data interpreted directly as though it were uncompressed. If I define EXPLOREUNPACK, I get a lot of happy decompressing reported, followed by the same error at the end:
I'm not blocked by this at all, but would be happy to put some more debugging elements into the code if it's of interest. |
@tomalrussell : I appreciate your willingness to help here, but I'm not sure if we'll be able to get to the bottom of this without some kind of data we can both look at. One though, though: if you mod the code so it |
Hi - thank you for making this tool available and open, it's super useful.
I'm able to run it most of the time, but I have a particular FileGDB which throws this error for each layer:
I'm afraid I'm not sure how to provide a reproducible example, the data I'm working with is proprietary.
This SO answer talks about the same error code. Could it be that the FileGDB is using another compression method (e.g. GZIP instead of ZLIB)? Would ArcRasterRescue handle this case by default?
Another quirk (possible red herring) is that the system I'm working on only has cmake at 3.5, so I downgraded
cmake_minimum_required
toVERSION 3.5
and replaced thecxx_std_11
argument in calls totarget_compile_features
withcxx_constexpr
(which needs c++ 11 anyway, I understand) to get it to build. This may have been a horrible hack, I'm not very familiar with cmake.The text was updated successfully, but these errors were encountered: