ArduCAM / MIPI_Camera

235 stars 109 forks source link

CPU crash when try to init stream #145

Open dorfindoor opened 2 years ago

dorfindoor commented 2 years ago

Hi all, I'm using jetson nano, I tried to install the driver, and the mipi camera is discovered. When I try to init stream (an rtsp sever) using GStreamer I get the following error message:

[   48.322333] Kernel panic - not syncing: Watchdog detected hard LOCKUP on cpu 0
[   48.330328] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.9.253-tegra #1
[   48.337466] Hardware name: NVIDIA Jetson Nano Developer Kit (DT)
[   48.344030] Call trace:
[   48.346798] [<ffffff800808ba40>] dump_backtrace+0x0/0x198
[   48.352733] [<ffffff800808c004>] show_stack+0x24/0x30
[   48.358291] [<ffffff8008f6121c>] dump_stack+0xa0/0xc4
[   48.363845] [<ffffff8008f5e2c0>] panic+0x12c/0x2a8
[   48.369130] [<ffffff8008181994>] watchdog_check_hardlockup_other_cpu+0x11c/0x120
[   48.377214] [<ffffff8008180b08>] watchdog_timer_fn+0x98/0x2c0
[   48.383510] [<ffffff8008138f10>] __hrtimer_run_queues+0xd8/0x360
[   48.390085] [<ffffff8008139860>] hrtimer_interrupt+0xa8/0x1e0
[   48.396376] [<ffffff8008bfa838>] tegra210_timer_isr+0x38/0x48
[   48.402672] [<ffffff8008121940>] __handle_irq_event_percpu+0x68/0x288
[   48.409717] [<ffffff8008121b88>] handle_irq_event_percpu+0x28/0x60
[   48.416481] [<ffffff8008121c10>] handle_irq_event+0x50/0x80
[   48.422593] [<ffffff8008125aa4>] handle_fasteoi_irq+0xd4/0x1c0
[   48.428979] [<ffffff80081208f4>] generic_handle_irq+0x34/0x50
[   48.435272] [<ffffff8008120fe0>] __handle_domain_irq+0x68/0xc0
[   48.441655] [<ffffff8008080d44>] gic_handle_irq+0x5c/0xb0
[   48.447572] [<ffffff8008082c28>] el1_irq+0xe8/0x194
[   48.452944] [<ffffff8008ba09e0>] cpuidle_enter_state+0xb8/0x380
[   48.459435] [<ffffff8008ba0d1c>] cpuidle_enter+0x34/0x48
[   48.465256] [<ffffff800811139c>] call_cpuidle+0x44/0x70
[   48.470983] [<ffffff8008111718>] cpu_startup_entry+0x1b0/0x200
[   48.477376] [<ffffff8008091cf8>] secondary_start_kernel+0x190/0x1f8
[   48.484225] [<0000000084f6e1a8>] 0x84f6e1a8
[   48.488833] SMP: stopping secondary CPUs
[   50.465329] SMP: failed to stop secondary CPUs 0,3
[   50.470610] Kernel Offset: disabled
[   50.474490] Memory Limit: none
[   50.572652] Rebooting in 5 seconds..
[   55.582985] SMP: stopping secondary CPUs

Do you what could be the problem?

aTEraGOU commented 2 years ago

Hi @dorfindoor

I experienced the same behaviour. This reply suggests that this could be happening because of camera failure. Let me swap the cams on my device and keep it monitored. I'll let you know whether the failure persists.

Edit 18/05: Seems to have solved to problem for me. Will have a try looking into the exact problem here but for now I'm settled again.