historical_helper.py crash

50 views
Skip to first unread message

James Hollingsworth

unread,
Apr 23, 2019, 4:45:29 AM4/23/19
to Ames Stereo Pipeline Support
Hi,

I have an error with historical_helper.py:

historical_helper.py rotate-crop --input-path AR5750021493046.tif --output-path crop/AR5750021493046.tif --interest-points '590 526 15727 515 15742 15647 604 15658'
convert AR5750021493046.tif -define tiff:tile-geometry=256x256 -distort ScaleRotateTranslate '0,0 0.041637' -crop '15141x15132+589+526' crop/AR5750021493046.tif
convert: symbol lookup error: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0: undefined symbol: g_bytes_unref
Script is finished.

I'm running ASP build 14th April 2019. Is this error a glibc issue? Or maybe a problem with ImageMagick? (I'm using ImageMagick 7.0.7-25 Q16 x86_64 2018-03-08)

Cheers,

J

Alexandrov, Oleg (ARC-TI)[SGT, INC]

unread,
Apr 23, 2019, 12:30:39 PM4/23/19
to James Hollingsworth, Ames Stereo Pipeline Support
James,

I don't know anything about this historical helper tool, but yes, your issue is that running the ImageMagic's convert tool fails. You can try getting a different version or running it on a different machine. Or you can try running it completely outside of ASP, maybe our scripts are messing with the environment. It is in either case not an ASP issue. 

Oleg


From: ames-stereo-pi...@googlegroups.com <ames-stereo-pi...@googlegroups.com> on behalf of James Hollingsworth <hollings...@gmail.com>
Sent: Tuesday, April 23, 2019 1:45 AM
To: Ames Stereo Pipeline Support
Subject: historical_helper.py crash
 
--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/8415725d-1ae0-415b-b36d-d90b91a59ff5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott McMichael

unread,
Apr 23, 2019, 12:47:26 PM4/23/19
to Ames Stereo Pipeline Support
I am sure this issue came up earlier but now I can't find it...

Check which version of "convert" is being called and see if another one works.  This tool is included with ASP and is also included in many Linux installations.

Scott


On Tuesday, April 23, 2019 at 9:30:39 AM UTC-7, Alexandrov, Oleg (ARC-TI)[SGT, INC] wrote:
James,

I don't know anything about this historical helper tool, but yes, your issue is that running the ImageMagic's convert tool fails. You can try getting a different version or running it on a different machine. Or you can try running it completely outside of ASP, maybe our scripts are messing with the environment. It is in either case not an ASP issue. 

Oleg



Sent: Tuesday, April 23, 2019 1:45 AM
To: Ames Stereo Pipeline Support
Subject: historical_helper.py crash
Hi,

I have an error with historical_helper.py:

historical_helper.py rotate-crop --input-path AR5750021493046.tif --output-path crop/AR5750021493046.tif --interest-points '590 526 15727 515 15742 15647 604 15658'
convert AR5750021493046.tif -define tiff:tile-geometry=256x256 -distort ScaleRotateTranslate '0,0 0.041637' -crop '15141x15132+589+526' crop/AR5750021493046.tif
convert: symbol lookup error: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0: undefined symbol: g_bytes_unref
Script is finished.

I'm running ASP build 14th April 2019. Is this error a glibc issue? Or maybe a problem with ImageMagick? (I'm using ImageMagick 7.0.7-25 Q16 x86_64 2018-03-08)

Cheers,

J

--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline-support+unsub...@googlegroups.com.

Shashank Bhushan

unread,
Apr 23, 2019, 12:52:15 PM4/23/19
to Alexandrov, Oleg (ARC-TI)[SGT, INC], James Hollingsworth, Ames Stereo Pipeline Support
Oleg is right, the way the command is called messes up the environment. I ran into the same, what you can do is that you can directly run the convert command generated from the tool in the terminal and it should work. Such as in your case, run this `convert AR5750021493046.tif -define tiff:tile-geometry=256x256 -distort ScaleRotateTranslate '0,0 0.041637' -crop '15141x15132+589+526' crop/AR5750021493046.tif` on the command line.


For more options, visit https://groups.google.com/d/optout.


--
Shashank Bhushan
Graduate Student/Research Assistant
Civil & Environmental Engineering
University of Washington, Seattle

Alexandrov, Oleg (ARC-TI)[SGT, INC]

unread,
Apr 23, 2019, 12:53:16 PM4/23/19
to Shashank Bhushan, James Hollingsworth, Ames Stereo Pipeline Support
Uh, maybe Scott will take a look at some point. I guess we could temporarily unmess with the environment while that tool is running. We usually alter the environment for  a reason, but likely that caused a mis-match of libraries for this tool.



From: Shashank Bhushan <sbag...@uw.edu>
Sent: Tuesday, April 23, 2019 9:46 AM
To: Alexandrov, Oleg (ARC-TI)[SGT, INC]
Cc: James Hollingsworth; Ames Stereo Pipeline Support
Subject: Re: historical_helper.py crash
 

Alexandrov, Oleg (ARC-TI)[SGT, INC]

unread,
Apr 23, 2019, 5:50:15 PM4/23/19
to Shashank Bhushan, Alexandrov, Oleg (ARC-TI)[SGT, INC], James Hollingsworth, Ames Stereo Pipeline Support
Actually the problem here was not that we modified the environment, but rather that we did not.  We ship our own convert, but the library path was not pointing to our libraries. I fixed that. Longer term, if this tool gets wider use, it should be renamed to not have a .py extension, and, just as our other Python tools, including stereo and mapproject, it should be invoked through a shell script which will set the environment, rather than using the python tool directly. This one will also benefit from an entry in the manual. For another day. 

One can just fetch the updated python script from here 


and overwrite your copy. It will also need to be made executable if it is not.  

Thank you for the report.





From: 'Alexandrov, Oleg (ARC-TI)[SGT, INC]' via Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Sent: Tuesday, April 23, 2019 9:53 AM
To: Shashank Bhushan
Reply all
Reply to author
Forward
0 new messages