Video stream crash only on Raspberry Pi 4

Camera model

What is the problem?

Camera stream just crash randomly when making long prints time-laps.

What did you already try to solve it?

Since I've already faced video problems with the RPi4 (vlc / omxplayer randomly hang / deadlocks while playing video loops) I've tried to update the RPi4 firmware with sudo rpi-update without any luck.

The only way to solve this for me is to running octoprint from a Raspberry Pi3B+

The only way to make the video stream to load again after a crash is a complete system reboot.

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

dmesg output:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.31-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1411 SMP Tue Apr 20 10:44:18 BST 2021
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x00000000fbffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000037ffffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[    0.000000] On node 0 totalpages: 999424
[    0.000000]   DMA zone: 2304 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 802816 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s50764 r8192 d22964 u81920
[    0.000000] pcpu-alloc: s50764 r8192 d22964 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 997120
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=DC:A6:32:A3:51:37 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] Kernel parameter elevator= does not have any effect anymore.
               Please use sysfs to set IO scheduler for individual devices.
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000017cc0000-0x000000001bcc0000] (64MB)
[    0.000000] Memory: 3602304K/3997696K available (10240K kernel code, 1364K rwdata, 3188K rodata, 2048K init, 891K bss, 133248K reserved, 262144K cma-reserved, 3211264K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 34277 entries in 67 pages
[    0.000000] ftrace: allocated 67 pages with 3 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Rude variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x3c8/0x59c with crng_init=0
[    0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000035] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000098] bcm2835: system timer (irq = 25)
[    0.000748] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000769] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000791] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000810] Switching to timer-based delay loop, resolution 18ns
[    0.001072] Console: colour dummy device 80x30
[    0.001819] printk: console [tty1] enabled
[    0.001885] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001941] pid_max: default: 32768 minimum: 301
[    0.002118] LSM: Security Framework initializing
[    0.002319] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002365] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003948] Disabling memory control group subsystem
[    0.004082] CPU: Testing write buffer coherency: ok
[    0.004554] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005773] Setting up static identity map for 0x200000 - 0x20003c
[    0.005989] rcu: Hierarchical SRCU implementation.
[    0.006932] smp: Bringing up secondary CPUs ...
[    0.008157] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.009530] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.010849] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.011008] smp: Brought up 1 node, 4 CPUs
[    0.011054] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.011084] CPU: All CPU(s) started in HYP mode.
[    0.011111] CPU: Virtualization extensions available.
[    0.011959] devtmpfs: initialized
[    0.026433] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.026703] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.026758] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.033682] pinctrl core: initialized pinctrl subsystem
[    0.034754] NET: Registered protocol family 16
[    0.038835] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.039607] audit: initializing netlink subsys (disabled)
[    0.039895] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1
[    0.040448] thermal_sys: Registered thermal governor 'step_wise'
[    0.041439] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.041494] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.041911] Serial: AMBA PL011 UART driver
[    0.074071] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.090899] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-04-12T15:53:21, variant start_x
[    0.100912] raspberrypi-firmware soc:firmware: Firmware hash is 0227a0840ee8c94294cf3b2c4b2d42031a58f05a
[    0.140646] Kprobes globally optimized
[    0.145811] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.149967] vgaarb: loaded
[    0.150417] SCSI subsystem initialized
[    0.150659] usbcore: registered new interface driver usbfs
[    0.150735] usbcore: registered new interface driver hub
[    0.150823] usbcore: registered new device driver usb
[    0.151558] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.153483] clocksource: Switched to clocksource arch_sys_counter
[    1.111114] VFS: Disk quotas dquot_6.6.0
[    1.111236] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.111426] FS-Cache: Loaded
[    1.111638] CacheFiles: Loaded
[    1.121795] NET: Registered protocol family 2
[    1.122833] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.122898] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.122978] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.123061] TCP: Hash tables configured (established 8192 bind 8192)
[    1.123236] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.123290] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.123639] NET: Registered protocol family 1
[    1.124394] RPC: Registered named UNIX socket transport module.
[    1.124428] RPC: Registered udp transport module.
[    1.124457] RPC: Registered tcp transport module.
[    1.124485] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.124523] PCI: CLS 0 bytes, default 64
[    1.127416] Initialise system trusted keyrings
[    1.127665] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    1.136088] zbud: loaded
[    1.138318] FS-Cache: Netfs 'nfs' registered for caching
[    1.139092] NFS: Registering the id_resolver key type
[    1.139142] Key type id_resolver registered
[    1.139171] Key type id_legacy registered
[    1.139310] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.139343] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.140381] Key type asymmetric registered
[    1.140413] Asymmetric key parser 'x509' registered
[    1.140619] bounce: pool size: 64 pages
[    1.140675] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.140918] io scheduler mq-deadline registered
[    1.140951] io scheduler kyber registered
[    1.145542] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.145595] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.145696] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.145805] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.205622] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.206018] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.206055] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.206090] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.206201] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.206461] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.210000] PCI: bus0: Fast back to back transfers disabled
[    1.210355] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.210499] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.210950] pci 0000:01:00.0: PME# supported from D0 D3cold
[    1.214500] PCI: bus1: Fast back to back transfers disabled
[    1.214614] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.214656] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.214759] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.214799] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.215217] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.215447] pcieport 0000:00:00.0: PME: Signaling with IRQ 62
[    1.224080] iproc-rng200 fe104000.rng: hwrng registered
[    1.224405] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.225294] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.237495] brd: module loaded
[    1.249671] loop: module loaded
[    1.251335] Loading iSCSI transport class v2.0-870.
[    1.254648] libphy: Fixed MDIO Bus: probed
[    1.256370] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.273562] libphy: bcmgenet MII bus: probed
[    1.353684] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.354844] usbcore: registered new interface driver r8152
[    1.354929] usbcore: registered new interface driver lan78xx
[    1.355008] usbcore: registered new interface driver smsc95xx
[    1.356661] xhci_hcd 0000:01:00.0: enabling device (0140 -> 0142)
[    1.356841] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.356891] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.360301] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000060000000890
[    1.361630] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    1.361671] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.361707] usb usb1: Product: xHCI Host Controller
[    1.361738] usb usb1: Manufacturer: Linux 5.10.31-v7l+ xhci-hcd
[    1.361768] usb usb1: SerialNumber: 0000:01:00.0
[    1.362540] hub 1-0:1.0: USB hub found
[    1.362654] hub 1-0:1.0: 1 port detected
[    1.363336] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.363379] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.363425] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.364021] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    1.364061] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.364097] usb usb2: Product: xHCI Host Controller
[    1.364127] usb usb2: Manufacturer: Linux 5.10.31-v7l+ xhci-hcd
[    1.364157] usb usb2: SerialNumber: 0000:01:00.0
[    1.364874] hub 2-0:1.0: USB hub found
[    1.364973] hub 2-0:1.0: 4 ports detected
[    1.366668] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.366994] dwc_otg: FIQ enabled
[    1.367009] dwc_otg: NAK holdoff enabled
[    1.367023] dwc_otg: FIQ split-transaction FSM enabled
[    1.367041] Module dwc_common_port init
[    1.367489] usbcore: registered new interface driver uas
[    1.367616] usbcore: registered new interface driver usb-storage
[    1.367822] mousedev: PS/2 mouse device common for all mice
[    1.369510] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.373086] sdhci: Secure Digital Host Controller Interface driver
[    1.373122] sdhci: Copyright(c) Pierre Ossman
[    1.373948] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.374600] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.378753] ledtrig-cpu: registered to indicate activity on CPUs
[    1.379114] hid: raw HID events driver (C) Jiri Kosina
[    1.379323] usbcore: registered new interface driver usbhid
[    1.379354] usbhid: USB HID core driver
[    1.385109] Initializing XFRM netlink socket
[    1.385172] NET: Registered protocol family 17
[    1.385326] Key type dns_resolver registered
[    1.385711] Registering SWP/SWPB emulation handler
[    1.385906] registered taskstats version 1
[    1.385946] Loading compiled-in X.509 certificates
[    1.386805] Key type ._fscrypt registered
[    1.386837] Key type .fscrypt registered
[    1.386865] Key type fscrypt-provisioning registered
[    1.398478] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.398828] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.398929] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.405640] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.406734] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.406768] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.437052] of_cfs_init
[    1.437335] of_cfs_init: OK
[    1.458400] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.460108] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.461829] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.465082] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.466783] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.473580] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.474789] Waiting for root device PARTUUID=6c586e13-02...
[    1.507790] random: fast init done
[    1.533122] mmc1: new high speed SDIO card at address 0001
[    1.576071] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    1.576997] mmcblk0: mmc0:aaaa SE32G 29.7 GiB
[    1.579129]  mmcblk0: p1 p2
[    1.604645] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.604745] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.609690] devtmpfs: mounted
[    1.618652] Freeing unused kernel memory: 2048K
[    1.653854] Run /sbin/init as init process
[    1.653884]   with arguments:
[    1.653899]     /sbin/init
[    1.653914]   with environment:
[    1.653928]     HOME=/
[    1.653942]     TERM=linux
[    1.723545] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.916521] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.916570] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.916604] usb 1-1: Product: USB2.0 Hub
[    1.918598] hub 1-1:1.0: USB hub found
[    1.918906] hub 1-1:1.0: 4 ports detected
[    2.045418] systemd[1]: System time before build time, advancing clock.
[    2.140447] NET: Registered protocol family 10
[    2.141822] Segment Routing with IPv6
[    2.202702] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    2.203584] systemd[1]: Detected architecture arm.
[    2.243540] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd
[    2.250234] systemd[1]: Set hostname to <octopi>.
[    2.256065] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[    2.446955] usb 1-1.1: New USB device found, idVendor=05a3, idProduct=9230, bcdDevice= 1.00
[    2.447018] usb 1-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    2.447069] usb 1-1.1: Product: USB 2.0 Camera
[    2.447113] usb 1-1.1: Manufacturer: HD Camera Manufacturer
[    2.553576] usb 1-1.2: new full-speed USB device number 4 using xhci_hcd
[    2.690226] usb 1-1.2: New USB device found, idVendor=1eaf, idProduct=0004, bcdDevice= 2.00
[    2.690276] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.690314] usb 1-1.2: Product: Maple
[    2.690344] usb 1-1.2: Manufacturer: LeafLabs
[    2.928023] random: systemd: uninitialized urandom read (16 bytes read)
[    2.936741] random: systemd: uninitialized urandom read (16 bytes read)
[    2.937595] systemd[1]: Listening on Journal Socket.
[    2.938405] random: systemd: uninitialized urandom read (16 bytes read)
[    2.945990] systemd[1]: Mounting RPC Pipe File System...
[    2.953456] systemd[1]: Mounting Kernel Debug File System...
[    2.961216] systemd[1]: Mounting POSIX Message Queue File System...
[    2.963818] systemd[1]: Created slice User and Session Slice.
[    2.971183] systemd[1]: Starting Set the console keyboard layout...
[    3.596508] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.726749] systemd-journald[129]: Received request to flush runtime journal from PID 1
[    4.252413] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.253288] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.255439] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.255990] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    4.339879] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.363302] bcm2835_audio bcm2835_audio: card created with 8 channels
[    4.368853] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.370973] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.370998] [vc_sm_connected_init]: start
[    4.382087] [vc_sm_connected_init]: installed successfully
[    4.396752] mc: Linux media interface: v0.10
[    4.438229] videodev: Linux video capture interface: v2.00
[    4.490466] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.493798] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.495833] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.509903] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    4.510412] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    4.510854] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    4.511172] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    4.511202] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    4.511227] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    4.511250] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    4.511273] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    4.511460] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    4.520267] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.562652] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.582204] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.678256] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.731910] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.767217] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.769258] usbcore: registered new interface driver brcmfmac
[    4.790139] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    4.811441] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
[    4.815218] usbcore: registered new interface driver cdc_acm
[    4.815238] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    4.831530] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    4.844181] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (05a3:9230)
[    4.899862] input: USB 2.0 Camera: HD USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input0
[    4.900303] usbcore: registered new interface driver uvcvideo
[    4.900319] USB Video Class driver (1.1.1)
[    4.902353] [drm] No displays found. Consider forcing hotplug if HDMI is attached
[    4.902475] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    4.902871] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    5.062406] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.079171] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    5.174129] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    5.174180] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    5.177564] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    5.177608] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    5.181807] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    5.181866] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    7.085945] random: crng init done
[    7.085960] random: 7 urandom warning(s) missed due to ratelimiting
[    7.158695] uart-pl011 fe201000.serial: no DMA platform data
[    7.282299] 8021q: 802.1Q VLAN Support v1.8
[    7.577343] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.687590] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    7.987070] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    7.987607] bcmgenet fd580000.ethernet eth0: Link is Down
[   12.153790] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   12.153846] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.893274] Bluetooth: Core ver 2.22
[   13.894185] NET: Registered protocol family 31
[   13.894203] Bluetooth: HCI device and connection manager initialized
[   13.894233] Bluetooth: HCI socket layer initialized
[   13.894257] Bluetooth: L2CAP socket layer initialized
[   13.894297] Bluetooth: SCO socket layer initialized
[   13.905007] Bluetooth: HCI UART driver ver 2.3
[   13.905029] Bluetooth: HCI UART protocol H4 registered
[   13.905127] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   13.905561] Bluetooth: HCI UART protocol Broadcom registered
[   14.081634] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.081645] Bluetooth: BNEP filters: protocol multicast
[   14.081663] Bluetooth: BNEP socket layer initialized
[  100.975472] usb 1-1.2: USB disconnect, device number 4
[202992.194149] usb 1-1.2: new full-speed USB device number 5 using xhci_hcd
[202992.330687] usb 1-1.2: New USB device found, idVendor=1eaf, idProduct=0004, bcdDevice= 2.00
[202992.330710] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[202992.330729] usb 1-1.2: Product: Maple
[202992.330747] usb 1-1.2: Manufacturer: LeafLabs
[202992.337587] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device

Additional information about your setup (OctoPrint version, OctoPi version, ...)

browser.user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Safari/605.1.15
connectivity.connection_check: 9.9.9.9:53
connectivity.connection_ok: true
connectivity.enabled: true
connectivity.online: true
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: true
env.hardware.cores: 4
env.hardware.freq: 1500
env.hardware.ram: 3959291904
env.os.bits: 32
env.os.id: linux
env.os.platform: linux2
env.plugins.pi_support.model: Raspberry Pi 4 Model B Rev 1.2
env.plugins.pi_support.octopi_version: 0.17.0
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 19.3.1
env.python.version: 2.7.16
env.python.virtualenv: true
octoprint.safe_mode: false
octoprint.version: 1.5.3
printer.firmware: Marlin 2.0.7.2 (Nov 27 2020

Are you using the pi 4 in desktop mode?

You might also want to update the eeprom

(scroll down to rpi-eeprom-update)

Are you using the pi 4 in desktop mode?

Sorry I forgot to mention that I'm using the Pi in headless mode. My video projects with the RP4 was some video ad wall that played video loops with python script.

You might also want to update the eeprom

Thanks I'll try that when my 15h print finish

As expected : The RPi4 had the video stream crashed after 6 hour of print.

EDIT_01:

It seems that my eeprom is already up to date according to the rpi-eeprom-update utility:


pi@octopi:~ $ sudo rpi-eeprom-update

[sudo] password for pi:

Bootloader EEPROM is up to date

CURRENT: Thu Sep 3 12:11:43 UTC 2020 (1599135103)

LATEST: Tue Sep 10 10:41:50 UTC 2019 (1568112110)

This is the output of vcgencmd bootloader_version:


Sep 3 2020 13:11:43

version c305221a6d7e532693cc7ff57fddfc8649def167 (release)

timestamp 1599135103

update-time 0

capabilities 0x00000000

I just updated to octoprint 1.6.0 but I have the feeling that I'll keep getting this issue as long as I'm on RPi4

here is my new system info bundle.

I'll make another 15h print. Expecting the video to crash in 6 hours

octoprint-systeminfo-20210506145359.zip (120.9 KB)

EDIT_02:

As expected, stream crashed again after 4h printing...

So I’m running out of Raspberry Pi 3B+ and I have a pile of useless Pi4 now. I just wanted to know if there is a fix for video problems with Pi4 now :confused: