Pyton: Segfault when execute() is not properly called
Description
A nasty segfault happen under some very basic conditions, when using applications from the Python wrapper and trying to access some image information
Steps to reproduce
The following script causes a segfault:
import otbApplication
app = otbApplication.Registry.CreateApplication("BandMath")
app.SetParameterStringList("il", ["some_raster.tif"])
#app.Execute() # Uncomment this: no segfault
print(app.GetImageSize("out"))
Configuration information
Ubuntu 20.04
OTB :
- 7.4.0
- 8.0.1
Edited by Rémi Cresson