Closed awickert closed 4 years ago
Are you running the latest? My dephier.exe
takes only 3 inputs and didn't crash.
Ignore my comments for a moment! I didn't realize that I was on my branch, which is a bit out of date. Give me ~5 minutes to update and revise/close.
Your version compiled and running. Updates:
./build/dephier.exe <Input> <Output> <OutGraph> <Ocean Level>
does not seem to work, as stated on the README. It seems that instead it is ./build/dephier.exe <Input> <Output> <Ocean Level>
.
The output is not appearing.
My runs are still ending with:
double free or corruption (out)
Aborted (core dumped)
Okay, <OutGraph>
should probably be removed from README.md
, unless you think we should have that output in the test executable.
The following works for me:
./build/dephier.exe AWtest/BCwest.tif AWtest/testOut 0
Suggest you compile with cmake -DCMAKE_BUILD_TYPE=Debug
and then run with gdb
to catch the problem.
Kerry's test file; is this a library that I'm missing?
(gdb) run ./build/dephier.exe test_cases/kerry_test1.dem AWtest/outtest 0
Starting program: /home/awickert/dataanalysis/Barnes2019-DepressionHierarchy/build/dephier.exe ./build/dephier.exe test_cases/kerry_test1.dem AWtest/outtest 0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Syntax: /home/awickert/dataanalysis/Barnes2019-DepressionHierarchy/build/dephier.exe <Input> <Output> <Ocean Level>
double free or corruption (out)
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
No, that's just where the code stopped. Type bt
to get a backtrace and then up
until you get into the DH code.
Highest-level error seems to be from libproj
. I'm on my laptop; going to retest on desktop with newer version of Ubuntu and libraries.
Yes; was simply outdated gdal/proj/something. Thanks for the debugging walkthrough!
Closed until I realized that there remain two related and unresolved issues:
After fixing my compilation problems, I also tried running BCwest.tif. I'm getting the same behavior. Runs fine, or at least with no error messages. No output files are created.
Okay, the outputs had got dropped somehow. I've added them back. @awickert: DH graphs are output now as well.
Everything is now working for me, and the output graph looks good.
I installed the prereqs and compiled the software no problem with the README information -- excellent!
I then created a test case with a DEM of my favorite place as a kid:
./build/dephier.exe AWtest/BCwest.tif AWtest/testOut AWtest/testDH 0
It ran well -- all outputs look fine -- but ended with an abort:
Files: AWtest.zip