Experiencing hung raspberry pi while using camera

Occasionally when using the camera the Raspberry pi’s ability to pull images will start to fail, and the only way to fix the problem appears to be to reboot the pi. I have seen some comments about disabling auto white balance, etc. but so far that hasn’t helped me. Perhaps there are other things I can do?

From a low-level perspective, I think there is an actual timeout happening with respect to this camera and the Raspberry Pi’s firmware, because when this happens and I run the dmesg command, I get the following output. And this output occurs EVERY time I get the camera to hang. It’s worth noting this does NOT happen with the normal Raspberry pi cam. Please advise.

[ 1226.726208] Exception stack(0xa55e3fb0 to 0xa55e3ff8)
[ 1226.726220] 3fa0: 00000000 00000000 00000000 00000000
[ 1226.726234] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1226.726247] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1226.726262] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:80142dd4
[ 1226.726272] r4:a7f27f00 r3:80104648
[ 1349.605653] INFO: task kworker/1:0:2160 blocked for more than 614 seconds.
[ 1349.605669] Tainted: G WC 5.4.51-v7+ #1328
[ 1349.605678] “echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message.
[ 1349.605687] kworker/1:0 D 0 2160 2 0x00000000
[ 1349.605716] Workqueue: events dbs_work_handler
[ 1349.605728] Backtrace:
[ 1349.605750] [<808e8bb8>] (__schedule) from [<808e9414>] (schedule+0x5c/0xcc)
[ 1349.605767] r10:80d88184 r9:00000000 r8:00000002 r7:b331e000 r6:00000000 r5:b331e000
[ 1349.605776] r4:a55aadc0
[ 1349.605795] [<808e93b8>] (schedule) from [<808e9880>] (schedule_preempt_disabled+0x18/0x1c)
[ 1349.605805] r5:b331fc24 r4:b331e000
[ 1349.605822] [<808e9868>] (schedule_preempt_disabled) from [<808ebc6c>] (__mutex_lock.constprop.9+0x2c4/0x5b0)
[ 1349.605839] [<808eb9a8>] (__mutex_lock.constprop.9) from [<808ec074>] (__mutex_lock_slowpath+0x1c/0x20)
[ 1349.605855] r10:a7ddec40 r9:b31904c0 r8:00000018 r7:00000000 r6:b4006000 r5:b31904c0
[ 1349.605863] r4:80d88184
[ 1349.605879] [<808ec058>] (__mutex_lock_slowpath) from [<808ec0d4>] (mutex_lock+0x5c/0x60)
[ 1349.605896] [<808ec078>] (mutex_lock) from [<807382c4>] (rpi_firmware_transaction+0x54/0x128)
[ 1349.605906] r4:80d04f48 r3:326f28c7
[ 1349.605922] [<80738270>] (rpi_firmware_transaction) from [<80738464>] (rpi_firmware_property_list+0xcc/0x180)
[ 1349.605935] r7:80d04f48 r6:b4006000 r5:00001000 r4:40000008
[ 1349.605951] [<80738398>] (rpi_firmware_property_list) from [<80738590>] (rpi_firmware_property+0x78/0xf8)
[ 1349.605966] r10:00000000 r9:b31904c0 r8:00030002 r7:b331fd38 r6:00000018 r5:0000000c
[ 1349.605975] r4:a7ddec40
[ 1349.605994] [<80738518>] (rpi_firmware_property) from [<805cdc78>] (raspberrypi_clock_property+0x54/0x7c)
[ 1349.606009] r10:b3795010 r9:00000000 r8:00000001 r7:b2a4e700 r6:00000003 r5:b331fd68
[ 1349.606017] r4:80d04f48
[ 1349.606034] [<805cdc24>] (raspberrypi_clock_property) from [<805cdcec>] (raspberrypi_fw_get_rate+0x4c/0x70)
[ 1349.606046] r6:ffffff92 r5:00000000 r4:80d04f48
[ 1349.606065] [<805cdca0>] (raspberrypi_fw_get_rate) from [<805c3b7c>] (clk_recalc+0x44/0x84)
[ 1349.606074] r4:b3308cc0
[ 1349.606090] [<805c3b38>] (clk_recalc) from [<805c3e58>] (__clk_recalc_rates+0x30/0x94)
[ 1349.606100] r5:00000000 r4:b3308cc0
[ 1349.606116] [<805c3e28>] (__clk_recalc_rates) from [<805c3f28>] (clk_core_get_rate+0x6c/0x70)
[ 1349.606129] r6:80d04f48 r5:37a18808 r4:b3308cc0 r3:00000040
[ 1349.606145] [<805c3ebc>] (clk_core_get_rate) from [<805c3f50>] (clk_get_rate+0x24/0x28)
[ 1349.606156] r4:b29fb600 r3:326f28c7
[ 1349.606173] [<805c3f2c>] (clk_get_rate) from [<80705ff0>] (dev_pm_opp_set_rate+0x70/0x534)
[ 1349.606190] [<80705f80>] (dev_pm_opp_set_rate) from [<80710a74>] (set_target+0x40/0x60)
[ 1349.606206] r10:000e3dd5 r9:00000000 r8:00000001 r7:80e53f84 r6:00000000 r5:b29fba00
[ 1349.606215] r4:000e3dd5
[ 1349.606231] [<80710a34>] (set_target) from [<8070b8e8>] (__cpufreq_driver_target+0x2f8/0x5bc)
[ 1349.606244] r6:00000000 r5:80d04f48 r4:b29fba00 r3:326f28c7
[ 1349.606260] [<8070b5f0>] (__cpufreq_driver_target) from [<8070e8b8>] (od_dbs_update+0xec/0x174)
[ 1349.606276] r10:00000000 r9:af8aec80 r8:b136b3c0 r7:af8ae380 r6:af8aec80 r5:b29fba00
[ 1349.606284] r4:af8ae380
[ 1349.606300] [<8070e7cc>] (od_dbs_update) from [<8070fd3c>] (dbs_work_handler+0x3c/0x68)
[ 1349.606316] r9:00000040 r8:80d86998 r7:b29fba00 r6:af8ae384 r5:00000000 r4:af8ae3b8
[ 1349.606335] [<8070fd00>] (dbs_work_handler) from [<8013c2c4>] (process_one_work+0x17c/0x4b4)
[ 1349.606350] r8:00000000 r7:b37b7500 r6:b37b4340 r5:afa4a800 r4:af8ae3b8 r3:8070fd00
[ 1349.606367] [<8013c148>] (process_one_work) from [<8013cb2c>] (worker_thread+0x54/0x5b4)
[ 1349.606383] r10:afa4a800 r9:b331e038 r8:80d03d00 r7:b37b4358 r6:00000008 r5:afa4a814
[ 1349.606391] r4:b37b4340
[ 1349.606408] [<8013cad8>] (worker_thread) from [<80142f10>] (kthread+0x13c/0x168)
[ 1349.606424] r10:a7ddb31c r9:b2a61e74 r8:8013cad8 r7:afa4a800 r6:00000000 r5:a7ddec40
[ 1349.606432] r4:a7ddb300
[ 1349.606449] [<80142dd4>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)

…I would like to add that this is a Rpi 3 B+ (and it also reproduces on a Rpi 4). And I have:

dtparam=i2c_vc=on

enabled in /boot/config.txt

Oh, strange. it is exception stack issue. Have you installed other device driver? It seems the memory is lack.