Skip to content
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

Test error - subprocess.CalledProcessError: Command '['homography', ...] died with <Signals.SIGABRT: 6> #96

Open
lucascdlima opened this issue Aug 17, 2021 · 2 comments

Comments

@lucascdlima
Copy link

Hi, I know that there is a closed topic regarding this problem however that topic actually didn't explain how to solve it (the mentioned topic moved to another issue).

I have tried to run the test command
s2p tests/data/input_pair/config.json

and I got the following error:

rectifying tiles...
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(args, **kwds))
File "/home/user123/Doutorado/project/s2p/s2p/parallel.py", line 43, in tilewise_wrapper
out = fun(args)
File "/home/user123/Doutorado/project/s2p/s2p/init.py", line 147, in rectification_pair
H1, H2, disp_min, disp_max = rectification.rectify_pair(img1, img2,
File "/home/user123/Doutorado/project/s2p/s2p/rectification.py", line 379, in rectify_pair
common.image_apply_homography(out1, im1, H1, w0 + 2
hmargin, h0 + 2
vmargin)
File "/home/user123/Doutorado/project/s2p/s2p/common.py", line 228, in image_apply_homography
run(["homography", im, "-h", hij, out, "%d" % w, "%d" % h])
File "/home/user123/Doutorado/project/s2p/s2p/common.py", line 92, in run
subprocess.run(cmd, shell=shell, stdout=sys.stdout, stderr=sys.stderr,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['homography', '/home/user123/Doutorado/project/s2p/tests/data/input_pair/img_01.tif', '-h', '0.20884736403654167 -0.9784295099695219 477.88765037927976 0.9784295099695219 0.20884736403654167 -173.09153110090955 0.0 0.0 1.0', '/home/user123/Doutorado/project/s2p/tests/data/input_pair/../../testoutput/output_pair/tiles/row_0000150_height_350/col_0000150_width_350/pair_1/rectified_ref.tif', '455', '425']' died with <Signals.SIGABRT: 6>.
"""
I have tried two types of installation (from pip and compiling), the error still the same.
The automatic tests running command ( make test ) don't work either - same error regarding homography.

Python 3.8.10
Ubuntu 20.04.2 LTS

@Wsdnuaa
Copy link

Wsdnuaa commented Nov 2, 2021

I have the same problom, have you save this problom?

@fnands
Copy link

fnands commented Nov 17, 2022

What version of gdal are you running? I get this with gdal >=3.
So try gdal <=2.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants