Milipixels sometimes image turns pink when you adjust the gain between taking pictures
I was able to reproduce this more than once by:
Taking a picture, adjusting the gain (always from min to max), taking a new picture, adjusting the gain again (from max to min), taking new pictures.
Console log «, the last picture also came out pink
purism@pureos:~$ millipixels
Found config file at /usr/share/millipixels/config/purism,librem5r4.ini
Adding camera big from config
matched GRBG8 to GRBG8 3
matched GRBG8 to GRBG8 3
Adding camera selfie from config
matched GBRG16 to GBRG16 14
matched GBRG16 to GBRG16 14
Found postprocessor script at /usr/share/millipixels/postprocess.sh
mp_device_list_find_remove imx7-csi s5k3l6xx 3-002d
18: there's csi, looking for s5k3l6xx 3-002d
18: there's csi capture, looking for s5k3l6xx 3-002d
18: there's imx8mq-mipi-csi2 30a70000.csi, looking for s5k3l6xx 3-002d
18: there's hi846 2-0020, looking for s5k3l6xx 3-002d
17: there's csi, looking for s5k3l6xx 3-002d
17: there's csi capture, looking for s5k3l6xx 3-002d
17: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
17: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
devname /dev/video2
17: there's csi, looking for s5k3l6xx 3-002d
17: there's csi capture, looking for s5k3l6xx 3-002d
17: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
17: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
mp_device_list_find_remove imx7-csi hi846 2-0020
18: there's csi, looking for hi846 2-0020
18: there's csi capture, looking for hi846 2-0020
18: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
18: there's hi846 2-0020, looking for hi846 2-0020
found!
devname /dev/video1
18: there's csi, looking for hi846 2-0020
18: there's csi capture, looking for hi846 2-0020
18: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
18: there's hi846 2-0020, looking for hi846 2-0020
found!
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
linking flags 1 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
Setting mode 1052 780
[8:07:56.322714674] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[8:07:56.339321234] [13384] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:07:56.339412074] [13384] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:07:56.340596114] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[8:07:56.341280114] [13384] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media2 while still in use
ok
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
i=26 f=-1(010) part=0
Setting mode 4208 3120
[8:08:02.319218355] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[8:08:02.334562756] [13388] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:08:02.334652636] [13388] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:08:02.335559956] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[8:08:02.336247556] [13388] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media2 while still in use
ok
TIFF version 20201219
Writing frame to /tmp/megapixels.bwjU5z/0.dng
TIFF version 20201219
Writing frame to /tmp/megapixels.bwjU5z/1.dng
Setting mode 1052 780
[8:08:03.107145827] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
Making thumbnail
TIFF version 20201219
Writing frame to /tmp/megapixels.bwjU5z/2.dng
[8:08:03.123645827] [13392] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:08:03.123743267] [13392] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:08:03.124919267] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[8:08:03.125673827] [13392] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media2 while still in use
ok
Post process /tmp/megapixels.bwjU5z to /home/purism/Pictures/IMG20211127023231.ext
preview mode, set focus
MPCamera: VIDIOC_QBUF error 22, Invalid argument
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
i=20 f=-1(010) part=1
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
linking flags 1 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
Setting mode 1632 1224
[8:08:10.560756047] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[8:08:10.578843887] [13436] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:08:10.578960887] [13436] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:08:10.580165327] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1632x1224-SGBRG16
[8:08:10.581219407] [13436] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media1 while still in use
ok
linking flags 0 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
linking flags 1 source 15:0 sink 10:0
MPDevice: MEDIA_IOC_SETUP_LINK error 22, Invalid argument
Setting mode 1052 780
[8:08:12.260779675] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[8:08:12.277448396] [13437] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:08:12.277541516] [13437] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:08:12.278410076] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[8:08:12.279145196] [13437] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media2 while still in use
ok
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
i=30 f=-1(011) part=1
Setting mode 4208 3120
[8:08:18.963974425] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[8:08:18.988442306] [13444] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:08:18.988527986] [13444] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:08:18.989552906] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[8:08:18.990805586] [13444] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media2 while still in use
ok
TIFF version 20201219
Writing frame to /tmp/megapixels.NejsDw/0.dng
TIFF version 20201219
Writing frame to /tmp/megapixels.NejsDw/1.dng
Making thumbnail
TIFF version 20201219
Writing frame to /tmp/megapixels.NejsDw/2.dng
Setting mode 1052 780
[8:08:19.683099294] [13383] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
Post process /tmp/megapixels.NejsDw to /home/purism/Pictures/IMG20211127023247.ext
[8:08:19.701819654] [13448] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 's5k3l6xx'
[8:08:19.702556214] [13448] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[8:08:19.703919054] [13383] INFO Camera camera.cpp:937 configuring streams: (0) 1052x780-SGRBG8
[8:08:19.705363134] [13448] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media2 while still in use
ok
preview mode, set focus
MPCamera: VIDIOC_QBUF error 22, Invalid argument