~martijnbraam/Megapixels#44: 
image saving fails in localized mobian phinephone

Hi ! Great work you do !

I just noticed that on my german localized gnome based mobian pinephone it seems the postprocessing script can not find the pictures folder as its called /home/mobian/Bilder after german localization.

hope thats fixable, confused me for a while. cheers, KK

Status
RESOLVED FIXED
Submitter
~karl_k
Assigned to
No-one
Submitted
1 year, 13 days ago
Updated
9 months ago
Labels
No labels applied.

~martijnbraam 1 year, 13 days ago

This should be fixed in the 0.14 release which doesn't hardcode ~/Pictures anymore. But that release is pretty recent, not sure if it's in mobian yet.

~proycon 11 months ago

I'm not sure if this is related, but I currently get something that suggest this dir is not initialised properly:

cp: cannot create regular file '(null)/IMG20210221151645.dng': No such file or directory

On megapixels 0.14.0, pmos edge, sxmo, locale en_GB.UTF-8, and a downgraded libtiff to prevent the crash from #45

~proycon 11 months ago*

I thought this might be caused by a missing $XDG_PICTURES_DIR, but I do have that properly set.

Things probably go wrong at https://git.sr.ht/~martijnbraam/megapixels/tree/master/item/process_pipeline.c#L362

~proycon 11 months ago

~martijnbraam REPORTED FIXED 10 months ago

Merged in 0.16.0

~murks 9 months ago*

This looks like it might be the same issue that I experience in SXMO with 0.15.0-r1. At least the place where it happens is the same. Post process /tmp/megapixels.HnDJPI to (null)/IMG20210410144046.ext So the nonsensical string "(null)/IMG20210410144046" gets passed to postprocess.sh as TARGET_NAME, which then of course fails to write the images.

I fail to see how this patch fixes the issue but if it does, will this somehow make its way to pmOS stable?

~anjan 9 months ago*

I am running pmOS stable. When installing megapixels and trying to take a picture, I get the following output:

pine64-pinephone:~/code/megapixels/build$ megapixels
Found config file at /usr/share/megapixels/config/pine64,pinephone-1.1.ini
Adding camera rear from config
Adding camera front from config
Found postprocessor script at /usr/share/megapixels/postprocess.sh
TIFF version 20201219
Writing frame to /tmp/megapixels.KEiDmF/0.dng
TIFF version 20201219
Writing frame to /tmp/megapixels.KEiDmF/1.dng
MPCamera: VIDIOC_QBUF error 22, Invalid argument
Making thumbnail
TIFF version 20201219
Writing frame to /tmp/megapixels.KEiDmF/2.dng
Post process /tmp/megapixels.KEiDmF to (null)/IMG20210423183529.ext
cp: cannot create regular file '(null)/IMG20210423183529.dng': No such file or directory
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
Dropped frame at capture
gm convert: Unable to open file ((null)/IMG20210423183529.jpg) [No such file or directory].
Error: File not found - (null)/IMG20210423183529.jpg
WARNING: decoder/databar.c:1248: _zbar_decode_databar: Assertion "seg->finder >= 0" failed.
        i=30 f=-1(010) part=1

I thought this might have been fixed in 0.16.0 so I git cloned the latest release and compiled from source. Edit: I dont have this bug on 0.16.0

pine64-pinephone:~/code/megapixels/build$ env | grep XDG_PICTURES_DIR
XDG_PICTURES_DIR=/home/anjan/Pictures

So I do have $XDG_PICTURES_DIR set.

Edit: It seems that ~proycon did fix this issue but 0.16.0 was not put into pmos stable

~anjan 9 months ago

I opened a MR to fix this issue on pmos stable:

https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2129

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