01-27-2021, 07:41 PM
(01-27-2021, 04:03 PM)dukla2000 Wrote: Did my periodic rebuild today - lovely to come across 2021.01.24 build. And enjoy auto screen rotation etc.
A problem'ette with megapixels - it crashes when you take a picture:
I am not sure what I can do to allow it to allocate memory?Code:$ megapixels
Found config file at /usr/share/megapixels/config/pine64,pinephone-1.2.ini
Adding camera rear from config
Adding camera front from config
Found postprocessor script at /usr/share/megapixels/postprocess.sh
/tmp/megapixels.kEzRF8/0.dng: Failed to allocate memory for custom tag binary object (-610603544 elements of 1 bytes each).
TIFF version 20191103
megapixels: tif_dirwrite.c:3071: TIFFWriteDirectoryTagData: Assertion `datalength<0x80000000UL' failed.
Aborted (core dumped)
[alarm@duklaPP ~]$
I encountered this problem today too. Saw this recently opened issue https://github.com/dreemurrs-embedded/Pi...issues/126 , looks like a problem with libtiff.
I'm sure it's being repackaged as we speak, but in the meantime, I worked around it by removing megapixels from pacman and building it straight from upstream https://git.sr.ht/~martijnbraam/megapixels . It compiles and runs fine with the libtiff shipped in 2021.01.24.