Camera (Dev Preview) app crashing

Mine is 6.1.0-1-librem5

Did the linked version of millipxels work for you? install from https://source.puri.sm/dorota.czaplejewicz/megapixels/-/jobs/404531/artifacts/download?file_type=archive

1 Like

I installed the version 21 but can not save video, it the video capture full supported?

Change of controls wasn’t accepted
Input #0, image2, from ‘image-%06d.jpeg’:
Duration: 00:00:04.87, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 780x1052 [SAR 300:300 DAR 195:263], 23 fps, 23 tbr, 23 tbn, 23 tbc
output.wav: No such file or directory
Change of controls wasn’t accepted
rm: no se puede borrar ‘output.raw’: No existe el fichero o el directorio
mv: no se puede efectuar stat' sobre 'output.mp4': No existe el fichero o el directorio Converted 112 frames 3.73 sec in 2.4 seconds Original size -> new size 3.7M . Change of controls wasn't accepted du: no se puede acceder a '/tmp/gigapixels.9sHu3n/smo/video-0000.mp4': No existe el fichero o el directorio Change of controls wasn't accepted mv: no se puede efectuar stat’ sobre ‘/tmp/gigapixels.9sHu3n/smo/*.mp4’: No existe el fichero o el directorio
Change of controls wasn’t accepted
Change of controls wasn’t accepted
Change of controls wasn’t accepted
Change of controls wasn’t accepted

I have downloaded and installed this version 0.21.0-1+librem5ci80262.90b35e4. The auto focus works fine, as well the video recording. It takes some time and a lot of processes and CPU to create the MP4 file. But this is at it is as we don’t have specialized hardware for this in the L5

1 Like

Am I correct in assuming I need to extract and run both .deb files, or is there a specific way I am doing this?

1 Like

You need to extract the files and install using sudo apt install.

1 Like

All well done:


@dcz, thanks a lot!

@Quarnero, you have only installed the small .deb file (as I did also). I think the other, bigger one, is a build with debug symbols, as it name let me think.

1 Like

@guru, I’m not for real focused at using Camera now, but I’ve got this crash:


But after reboot everything worked again, other than Rec (as noted earlier already):

And by using Camera icon dbgsym_0.21.0-1 installation crashed again (hope this helps here):

Please post logs from crashes, ideally here: https://source.puri.sm/Librem5/millipixels/-/issues/
The screenshots are unreadable, what a wasted opportunity :frowning:

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/movie.sh
Found postprocessor script at /usr/share/millipixels/postprocess.sh
mp_device_list_find_remove imx7-csi s5k3l6xx 3-002d
20: there's csi, looking for s5k3l6xx 3-002d
20: there's csi capture, looking for s5k3l6xx 3-002d
20: there's imx8mq-mipi-csi2 30a70000.csi, looking for s5k3l6xx 3-002d
20: there's hi846 2-0020, looking for s5k3l6xx 3-002d
19: there's csi, looking for s5k3l6xx 3-002d
19: there's csi capture, looking for s5k3l6xx 3-002d
19: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
19: there's s5k3l6xx 3-002d, looking for s5k3l6xx 3-002d
found!
devname /dev/video1
19: there's csi, looking for s5k3l6xx 3-002d
19: there's csi capture, looking for s5k3l6xx 3-002d
19: there's imx8mq-mipi-csi2 30b60000.csi, looking for s5k3l6xx 3-002d
19: 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
20: there's csi, looking for hi846 2-0020
20: there's csi capture, looking for hi846 2-0020
20: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
20: there's hi846 2-0020, looking for hi846 2-0020
found!
devname /dev/video0
20: there's csi, looking for hi846 2-0020
20: there's csi capture, looking for hi846 2-0020
20: there's imx8mq-mipi-csi2 30a70000.csi, looking for hi846 2-0020
20: 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
[1:12:49.674972709] [8873]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[1:12:49.697985603] [8875]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 's5k3l6xx'
[1:12:49.698120849] [8875]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[1:12:49.698169331] [8875]  WARN CameraSensor camera_sensor.cpp:476 's5k3l6xx 3-002d': Unsupported ancillary entity function 131074
[1:12:49.699936415] [8875] ERROR V4L2 v4l2_subdevice.cpp:466 's5k3l6xx 3-002d': Unable to set format on pad 0: Device or resource busy
[1:12:49.700218069] [8875] ERROR V4L2 v4l2_subdevice.cpp:466 's5k3l6xx 3-002d': Unable to set format on pad 0: Device or resource busy
[1:12:49.700348275] [8875] ERROR V4L2 v4l2_subdevice.cpp:466 's5k3l6xx 3-002d': Unable to set format on pad 0: Device or resource busy
[1:12:49.700452560] [8875] ERROR SimplePipeline simple.cpp:490 No valid configuration found
[1:12:49.701020187] [8875] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video1[42:cap]: Unable to request 0 buffers: Device or resource busy
No such camera: /base/soc@0/bus@30800000/i2c@30a50000/camera@2dinvalid

Please give me some time to recreate Rec related output under dbgsym_0.21.0-1 installation (after reboot).

I don’t know why this keeps happening, but please update libcamera.

1 Like
purism@pureos:~$ uname -r
6.1.0-1-librem5
purism@pureos:~$ apt list libcamera0 millipixels
Listing... Done
libcamera0/byzantium,now 0~git20220628+27cc0a6b-1pureos3 arm64 [installed,automatic]
millipixels/now 0.21.0-1+librem5ci80262.90b35e4 arm64 [installed,local]
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/movie.sh
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/video3
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/video2
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
[0:01:05.345469671] [1879]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:01:05.366143393] [1881]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 's5k3l6xx'
[0:01:05.366257765] [1881]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:01:05.367125672] [1881]  WARN CameraSensor camera_sensor.cpp:476 's5k3l6xx 3-002d': Unsupported ancillary entity function 131074
[0:01:05.368723996] [1879]  INFO Camera camera.cpp:1029 configuring streams: (0) 1052x780-SGRBG8
[0:01:05.369479216] [1881] ERROR DeviceEnumerator device_enumerator.cpp:166 Removing media device /dev/media3 while still in use
ok
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
0
0
1
2
3
4
5
5
6
7
8
9
10
11
11
12
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
13
14
15
16
16
17
18
19
20
21
22
22
23
24
25
26
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
27
27
28
29
30
31
32
33
33
Change of controls wasn't accepted
34
35
36
37
38
38
39
Change of controls wasn't accepted
Change of controls wasn't accepted
Change of controls wasn't accepted
40
41
42
43
44
44
45
46
47
48
49
50
50
51
52
53
Change of controls wasn't accepted
54
55
55
56
57
58
59
60
61
61
62
63
64
65
66
66
Change of controls wasn't accepted
67
68
69
70
71
72
72
73
74
75
76
77
77
78
79
80
81
82
83
83
84
85
86
87
88
88
89
90
91
92
93
94
94
95
96
97
98
99
Have 225 frames 7.50 sec frames
Searching video 0 9999999999999999 -- 10000000000.00 sec
Converting 112 frames 3.73 sec skipped 0 audio and 0 video frames
sh: 1: ffmpeg: not found
sh: 1: ffmpeg: not found
mv: cannot stat 'output.mp4': No such file or directory
Converted 112 frames 3.73 sec in 1.3 seconds
Original size -> new size
8.5M	.
du: cannot access '/tmp/gigapixels.VGsohn/smo/video-0000.mp4': No such file or directory
mv: cannot stat '/tmp/gigapixels.VGsohn/smo/*.mp4': No such file or directory
^C

Please let me know on where to get related .deb file.

apt-get upgrade :slight_smile:

Wait, what did you do differently?

Please describe each log - they are different but you didn’t indicate that you did anything differently.

Second output is under having millipixels open (after rebooting of my Librem 5, with otherwise Camera hardware reliable and working as intended) and able to make photos (auto-focus enabled as well), yet making video (by short touch on Rec) is not happening. Like: cannot access '/tmp/gigapixels.VGsohn/smo/video-0000.mp4' …

Also, I already have latest (or only available libcamera0) installed. I’ll probably purge current installation of millipixels now and check on how I can upgrade other related dependencies as well.

EDIT:

First output (Camera not working) happens after trying to open millipixels for second or third time (without reboot).

Okay, the video stuff is experimental so that’s OK.

The other problem is more worrying.

  1. What did you do in the first and second run? Does something specific have to happen?
  2. Did this also happen in the previous version of millipixels before you replaced it with my linked one?

After @guru post here I decided to overwrite prior installation of millipixels_0.21.0-1+librem5ci80262.90b35e4_arm64.deb with:
sudo dpkg --install millipixels-dbgsym_0.21.0-1+librem5ci80262.90b35e4_arm64.deb

Specific was that after fresh reinstall of millipixels in version 0.21.0-1 and trying to open it for second time only by short touch of Camera icon it will not work any more (only restart or the PureOS on Librem 5 will help getting working camera again). Yet (positive news/update), now I’m charging my phone battery and millipixels in version 0.21.0-1 and millipixels app opens/works with every tip on its icon.

Therefore I just decided now to disconnect power supply at 89% and millipixels opens/works again, over and over again (after swapping it away/closing) :+1:. As I recall now, this crash output from above might easily be related to the fact that my phone battery capacity was below 50% (or even below 40%). Perhaps?

Nope (but I didn’t check this with having battery capacity at 30%, for example), regularly/distro provided millipixels worked as expected.

EDIT: Just now I executed millipixels by using Terminal and it opened Camera as expected, yet after swapping Camera away (closing it) and trying to open this app again, millipixels crashed again (not working as my last screenshot here shows).

EDIT II: @dcz, my last non-development “reproduction” update here: when I close both Terminal app and Camera app and open Camera either way my current installation of millipixels works either way, no issues at all.

If you execute in terminal and then close it with the terminal (so, by pressing Ctrl+C or closing the termonal), does it still fail to open?

1 Like

@Gavaudan, thanks! Exactly, Ctrl+C within Terminal keeps everything in control. No issues at all with/after such usage/closing of millipixels.