Siril (1.2.1) strange Pixel Math error

I’m learning to use Pixel Math is Siril. Here is Pixel math I try to use:

It produces strange error (in console):

If I replace median(R) with median(G), it doesn’t produce error anymore.

Why it happens with R channel ?

What are the statistics in R channel?

Hi,
I attached stats output from R channel (r.fit)

Could you send your R, G and B pictures please.

sure. (rgb.zip, fits inside)

I’m using Linux Ubuntu 22.04. Can it be due to locale settings and comma/dot difference in some settings?
Here is mine:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=uk_UA.UTF-8
LC_TIME=uk_UA.UTF-8
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=uk_UA.UTF-8
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=uk_UA.UTF-8
LC_NAME=uk_UA.UTF-8
LC_ADDRESS=uk_UA.UTF-8
LC_TELEPHONE=uk_UA.UTF-8
LC_MEASUREMENT=uk_UA.UTF-8
LC_IDENTIFICATION=uk_UA.UTF-8
LC_ALL=

I don’t know. It works on my system:

hmm…really strange…
Thanks for checking it !

I just use Pixelmath for simple blends so I am not familiar with the detailed syntax rules, but shouldn’t the last comma be one space to the left: max(B,G), R) instead of G) ,R)

Spaces are not taken into account.
I’ve also tried the AppImage version of version 1.2.1 and it works.

Thanks. That will be helpful to know when I start mixing more complex functions in.