In the following example, I have discarded history and set the exposure slider in the exposure module to 0. I have switched on parametric masks

I click the 'set range from area' color picker and choose an area. I can't take a screenshot of this because as soon as darktable loses focus (because I've switched to the screenshot app) the following happens:

Somehow the color picker has caused the exposure to be changed to 2.03EV and the black level to be changed as well.
Similar issues in #5654 with the other color picker.
Issue on 3.1.0+2376~g40f2f94e3 on ArchLinux with and without openCL.
Confirmed.
Not as severe as shown by elstoc, but this should happen at all.
Platform
Additional context
I cannot reproduce, any step by step reproducer ? Maybe this needs a very specific set of actions ?
It's pretty consistent for me. I've tried a few images. After selecting a range area, as soon as you alt-tab away from darktable or try to adjust the right-hand panel width the exposure and black level sliders change.
The exposure settings look just like if I'd used the color picker on the main body of the exposure module. I suspect darktable is getting confused about which color picker is which.
So probably a bad interaction with the new exposure compensation and some gui event refreshing the display.
Are you looking at this already ?
Not apart from testing. I'm not sure how the color picker works. I see another possible issue with rgb curve - on this module the same (parametric mask) area selector seems to also display the range on the in-module histogram display (same as if I'd ctrl-clicked on the in-module GUI color picker).
Ok, I'll try to have a look this week.
Ok, I think I have it, it was trivial in fact. I'll PR in a minute.
See #5657