Snappy process the Sentinel-1A Runtimeerror error:17

When I call the snappy.ProductIO.writeProduct(result, outputfile, ‘GeoTIFF-BigTIFF’), it has the runtimeerror:

Does anyone what is going on with that? thank you.

Have you tried a different output format?
Which operators do you invoke before you write the result and how do you configure them?

Thank you for the quick reply. I think I have figured it out. The process I did before that is the Terrain-Correction, and it is due to the external DEM file is very big in Tiff format (almost 6 G). I use the ENVI format instead, then it works. Thank you.

Another question, when I use the python to call the snappy to batch process that data, how could I to release the memory allocated by each product after the processing ? as it occupies almost all my RAM. Thanks again.

After processing and writing the product to disk you should call product.dispose(). This should release the memory.
You can also call explicitly the Java Garbage Collector.

Runtime = jpy.get_type(‘java.lang.Runtime’)

But recently there was a general issue found with the S1 reader.

Maybe you have no chance to reduce the allocated memory at the moment.