How to reproduce:
-> Crash while writing to file according to the error message
The camera doesn't have a blue tint on the second run (on the first it has).
/tmp/megapixels.POiKLe/0.dng: Failed to allocate memory for custom tag binary object (-957821824 elements of 1 bytes each). Assertion failed: datalength<0x80000000UL (tif_dirwrite.c: TIFFWriteDirectoryTagData: 3071) Aborted
My device: postmarketOS Edge on the PinePhone (UbPorts Edition) APK-Version: 0.14.0-r0
I have the same problem (postmarketos with sxmo on pinephone, megapixels 0.14.0-r0 ),
/tmp/megapixels.eGNJJi/0.dng: Failed to allocate memory for custom tag binary object (-629224320 elements of 1 bytes each). Assertion failed: datalength<0x80000000UL (tif_dirwrite.c: TIFFWriteDirectoryTagData: 3071)
Diskspace and memory are both fine.
The alpine guys have a upgraded the tiff package to 4.2.0 which doesnt work with megapixels. To fix this issue, run the following command:
cd /var/cache/apk && doas apk add tiff-4.1.0-r2.44f616d1.apkTo make sure apk doesnt upgrade tiff next time you upgrade, run:
doas apk add tiff=4.1.0-r2
Seeing the below error when running the command
/var/cache/apk # cd /var/cache/apk && doas apk add tiff-4.1 .0-r2.44f616d1.apk doas: Operation not permitted /var/cache/apk #
~arjunaithal the issue is doas might not be configured properly or you might have entered your password incorrectly. You can use sudo instead of doas. You just need to be superuser to run the
apk addcommand.