~martijnbraam/Megapixels#37: 
megapixels 0.13.1-2 crashing with an endless loop

Hi,

at first, let me thank you, as beeing the only one working on this. I'm glad that someone stood up and tried it.

0.13.1-2 (Fedora 34 Rawhide build) for Pinephones is crashing in loops:

Dez 17 18:21:37 fedorapine org.postmarketos.Megapixels.desktop[86481]: MPCamera: VIDIOC_DQBUF error 22, Das Argument ist ungültig" "argument invalid" Dez 17 18:25:00 fedorapine systemd-journald[152]: [🡕] Suppressed342006 messages from user@1000.service

before it got into an endless loop, I used shutter [Auto -> 75] and played with ISO a bit.

also a camera switch reproduces the issue above.

I encountered the following additional problems:

  • the color / saturation / lightness of the images is next to not there , all images look greyish. I trust you, if you answere: the chip is crap.
  • the strings "iso" "shutter" do not scale with the image, they are WAY to small on a high dpi screen as used with Gnome, instead of phosh.
  • the functionality on these two options need improovement: "opening iso" "closing iso" "opening shutter" ... instead of switching between states isn't very useful, but quick to change.
  • opening directory with pictures => does not work
  • prefs changes are not remembered

best regards, Marius Schwarz

Status
REPORTED
Submitter
Marius Schwarz
Assigned to
No-one
Submitted
4 years ago
Updated
4 years ago
Labels
No labels applied.

~martijnbraam 4 years ago

The VIDIOC_DQBUF error happens if Megapixels is re-launched but the old process isn't killed yet because the postprocessor is running in the background.

Preferences aren't implemented yet.

The sensor isn't great

Marius Schwarz 4 years ago · edit

Am 22.12.20 um 16:13 schrieb ~martijnbraam:

The sensor isn't great An understatement :D

Happy XMAS Marius

Marius Schwarz 4 years ago · edit

Hi,

for your information:

Problem:

As soon as you hit the "take picture"-button, programm freezes and logs memory errors until "killall -9 megapixels" hit.

Version:

Kernel: 5.11.0-rc7

Name        : megapixels Version     : 0.14.0 Release     : 2.fc34 Architecture: aarch64 Install Date: Di 09 Feb 2021 21:05:57 CET

Log:

[11818.976357] cma: cma_alloc: alloc failed, req-size: 1231 pages, ret: -12 [11818.976414] ------------[ cut here ]------------ [11818.976419] WARNING: CPU: 0 PID: 5791 at mm/page_alloc.c:4979 __alloc_pages_nodemask+0x62c/0xc60 [11818.976447] Modules linked in: snd_seq_dummy snd_hrtimer qmi_wwan option cdc_wdm usbnet usb_wwan usbserial mii aes_ce_blk crypto_simd aes_ce_cipher crct10dif_ce mousedev snd_soc_hdmi_codec ghash_ce gf128mul sha2_ce sha256_arm64 sha1_ce 8723cs(C) sun50i_codec_analog hci_uart lima sun4i_i2s sun8i_adda_pr_regmap btrtl snd_soc_simple_card st_magn_i2c sunxi snd_soc_simple_amplifier sun8i_di sun8i_codec sun6i_csi dw_hdmi_i2s_audio inv_mpu6050_i2c gpu_sched cfg80211 snd_soc_bt_sco st_sensors_i2c snd_soc_ec25 st_magn inv_mpu6050 phy_generic bluetooth snd_soc_simple_card_utils goodix st_sensors musb_hdrc industrialio_triggered_buffer ehci_platform snd_soc_core ohci_platform kfifo_buf udc_core stk3310 modem_power ecdh_generic ehci_hcd ohci_hcd ecc snd_pcm_dmaengine anx7688 usbcore snd_seq regmap_i2c rfkill sunxi_cedrus(C) sun8i_rotate snd_seq_device sun8i_ce snd_pcm v4l2_mem2mem videobuf2_dma_contig ov5640 videobuf2_memops crypto_engine videobuf2_v4l2 gc2145 videobuf2_common leds_sgm3140 [11818.976684]  snd_timer v4l2_fwnode v4l2_flash_led_class snd videodev soundcore mc fuse zram autofs4 [11818.976718] CPU: 0 PID: 5791 Comm: megapixels Tainted: G C        5.11.0-rc7-00312-g2ad7347a7163 #23 [11818.976727] Hardware name: Pine64 PinePhone (1.2) (DT) [11818.976732] pstate: 20000005 (nzCv daif -PAN -UAO -TCO BTYPE=--) [11818.976740] pc : __alloc_pages_nodemask+0x62c/0xc60 [11818.976750] lr : __dma_direct_alloc_pages+0x130/0x184 [11818.976761] sp : ffffffc013933890 [11818.976765] x29: ffffffc013933890 x28: ffffffc013933bd0 [11818.976774] x27: 0000000000000001 x26: ffffff802c167060 [11818.976782] x25: ffffff800862ca98 x24: ffffff80011c6010 [11818.976791] x23: ffffffc0100a8c68 x22: 00000000004cf000 [11818.976799] x21: 0000000000000cc0 x20: 00000000004cf000 [11818.976808] x19: ffffff80011c6010 x18: 00000000fffffffc [11818.976817] x17: 0000000000000000 x16: 0000000000000000 [11818.976825] x15: 0000000000000020 x14: ffffffffffffffff [11818.976834] x13: ffffffc010c3dc88 x12: 0000000000000d02 [11818.976842] x11: 0000000000000456 x10: ffffffc010c95c88 [11818.976851] x9 : 00000000fffff000 x8 : 0000000000000000 [11818.976859] x7 : ffffffc010c95c88 x6 : 0000000000000001 [11818.976867] x5 : 0000000000000000 x4 : 000000000000003f [11818.976875] x3 : 0000000000000000 x2 : 0000000000000000 [11818.976884] x1 : 000000000000000b x0 : 0000000000000cc0 [11818.976893] Call trace: [11818.976897]  __alloc_pages_nodemask+0x62c/0xc60 [11818.976906]  __dma_direct_alloc_pages+0x130/0x184 [11818.976914]  dma_direct_alloc+0x60/0x2e0 [11818.976921]  dma_alloc_attrs+0x68/0xc0 [11818.976929]  vb2_dc_alloc+0x64/0x124 [videobuf2_dma_contig] [11818.976942]  __vb2_queue_alloc+0x184/0x44c [videobuf2_common] [11818.976954]  vb2_core_reqbufs+0x210/0x3ec [videobuf2_common] [11818.976963]  vb2_ioctl_reqbufs+0x7c/0xb0 [videobuf2_v4l2] [11818.976975]  v4l_reqbufs+0x48/0x60 [videodev] [11818.977008]  __video_do_ioctl+0x170/0x3b4 [videodev] [11818.977028]  video_usercopy+0x18c/0x5b0 [videodev] [11818.977048]  video_ioctl2+0x14/0x20 [videodev] [11818.977068]  v4l2_ioctl+0x3c/0x60 [videodev] [11818.977088]  __arm64_sys_ioctl+0xac/0xd0 [11818.977097]  el0_svc_common.constprop.0+0x5c/0x114 [11818.977109]  do_el0_svc+0x18/0x20 [11818.977116]  el0_svc+0x10/0x1c [11818.977126]  el0_sync_handler+0xa8/0xac [11818.977133]  el0_sync+0x140/0x180 [11818.977141] ---[ end trace 3c23dee596536c7e ]--- [11818.977152] sun6i-csi 1cb0000.csi: dma_alloc_coherent of size 5042176 failed [11829.622351] rfkill: input handler enabled [11846.745186] rfkill: input handler disabled

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