Generic Region Merging error using GPT and Graph Builder

Hello everyone,

I was able to successfully use the Generic Region Merging (GRM) tool, which is under the Raster menu in SNAP, to generate segments from a Sentinel-2 image. However, when I use the same GRM operator in GPT (gpt.exe GenericRegionMergingOp) or the Graph Builder, I get an empty segmented image (all pixels are 0) as the output for the same Sentinel-2 image.

Has anyone encountered this issue (bug)? If so, please let me know how you handled this issue.

Thanks a lot.