Yes, I can read every band, and the reprojection (to EPSG:4326) is not the problem because i tried to remove every operation, and the problem was the same.
I finally got the mask by the function getSample(x,y), after the function getSourceProduct(), but it is a solution quite “dirty”, because it makes me “map” every pixel to every data position .
Yes, I can read every band, and the reprojection (to EPSG:4326) is not the problem because i tried to remove every operation (i.e. I tried to get the mask before the reprojection and even before the resampling), and the problem was the same.
I finally got the mask by the function getSample(x,y), after the function getSourceProduct(), but it is a solution quite “dirty”, because it makes me “map” every pixel to every data position, so it takes more time that it should.