-
Notifications
You must be signed in to change notification settings - Fork 486
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
UNIT_Dem_TEST failure on 20.04 #2828
Comments
I've added a check for a nullptr and fixed the memory leak in a branch in scpeters@e9d95a2; can you take a look at that? I think there must be something else wrong though, since I don't see any console output from |
That commit looks good to me. It looks like 18.04 has proj-4.9.3 - it could be a change between that release and Fedora's 6.3.2. Focal has 6.3.1 - maybe there's a way to test it there? There's some mailing list traffic where people have had similar problems. The error output here definitely looks like it's trying to convert from the moon to the earth. |
FWIW I now get this output with the commit you linked (on gazebo 10.1.0). It looks like the test after the segfault is also failing, now that the transform failure throws an exception.
|
I'm not sure if it's related, but there's also a compiler warning in Dem.cc:
|
the compiler warning should be fixed by ad932ed |
I think the following line may be the issue: |
I've found the place in proj that throws the "Source and target ellipsoid do not belong to the same celestial body" exception: |
support for ISO 19111 was added in proj 6.0.0: |
* Dem: check for nullptr and fix memory leak * Fix deprecation warning * Catch exceptions from Dem::GetGeoReference* APIs Wrap calls to Dem::GetGeoReference and Dem::GetGeoReferenceOrigin in a try/catch block and print warning messages if exceptions are caught. The Dem_TEST is still broken on 20.04, but this prevents crashes. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I added some code that prints warning messages instead of failing hard on 20.04 when this type of failure occurs. The |
Hello ! I'm testing on Ubuntu 20.04 with proj 6.3.1 , and the test does not fail with that particular error. I'll try testing inside a docker container. |
I meant to add a comment after updating the title of this issue. The test was recently updated in #3257, and it passes on our primary Ubuntu CI on 18.04 but fails on 20.04:
|
Two of those failures, I've added a workaround for those 2 here : #3275 |
Okay, so I did a bit of troubleshooting in Ubuntu 18.04(libproj version ??) vs Ubuntu 20.04 (libproj 6.3.1):
Here, In Ubuntu 18 (and older libproj I assume), the cT pointer returns a valid pointer, assuming the surface was Earth, and no warning is thrown. ** Solution :
Here, in Ubuntu 20.04, the xGeoDeg and yGeoDeg variables have their values interchanged after the statement |
Description
The UNIT_Dem_TEST fails for me with a segfault, with the following output:
Looking in to the issue, it appears that the call to OGRCreateCoordinateTransformation is returning
NULL
and printing the above error, but the return result is never checked before using thecT
variable.Additionally, the
cT
object appears to be leaked as it is never expliclty released usingOCTDestroyCoordinateTransformation()
per the documentationEnvironment
The text was updated successfully, but these errors were encountered: