~martijnbraam/Megapixels#45: 
Crashing after app restart on pmOS edge

How to reproduce:

  1. open Megapixels
  2. close it
  3. open it again
  4. wait for to camera to initialize
  5. take a photo

-> 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

Status
REPORTED
Submitter
ralf1307
Assigned to
No-one
Submitted
1 year, 3 months ago
Updated
1 year, 2 months ago
Labels
No labels applied.

~proycon 1 year, 3 months ago

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.

~anjan 1 year, 3 months ago*

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.apk

To make sure apk doesnt upgrade tiff next time you upgrade, run: doas apk add tiff=4.1.0-r2

~arjunaithal 1 year, 3 months ago

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 #

~anjan 1 year, 2 months ago

~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 add command.

~proycon referenced this from #44 1 year, 2 months ago

Register here or Log in to comment, or comment via email.