Video crash on Intel NUC N100 Libreelec 12.2

  • Thanks for the help!

    I'm having issues streaming videos via SMB in Kodi. I have two sources:

    • A Windows 10 PC
    • An Asus RT-AC87U router running the latest Merlin firmware

    Videos from the Windows PC play perfectly. However, videos from the Asus router always crash after a few secods.

    While playing a video, I press CTRL+SHIFT+O to check the buffer stats. The forward buffer shows ~7.5MB for videos from the PC, but 0.0MB for videos from the router.

    If I force SMB1 as both the minimum and maximum protocol on the router, playback works fine. But I’d like to understand why SMB2/3 fails, especially since:

    • Kodi on the same Intel NUC N100 (running Windows 11) works fine with the router
    • The router logs show errors like:

    Aug 23 17:50:01 kernel: Modules linked in: nfsd exportfs lockd sunrpc nls_cp437 sr_mod cdrom usblp thfsplus tntfs(P) tfat(P) ext2 ext4 jbd2 crc16 ext3 jbd mbcache usb_storage sg sd_mod scsi_wait_scan scsi_mod cdc_mbim qmi_wwan cdc_wdm cdc_ncm rndis_host cdc_ether asix cdc_acm usbnet mii ohci_hcd ehci_hcd xhci_hcd usbcore jffs2 zlib_deflate nf_nat_pptp nf_conntrack_pptp nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_ftp nf_conntrack_ftp wl(P) et(P) igs(P) emf(P) ctf(P)
    Aug 23 17:50:01 kernel: [<c0043ff8>] (unwind_backtrace+0x0/0xf8) from [<c0061d70>] (warn_slowpath_common+0x4c/0x64)
    Aug 23 17:50:01 kernel: [<c0061d70>] (warn_slowpath_common+0x4c/0x64) from [<c0061da4>] (warn_slowpath_null+0x1c/0x24)
    Aug 23 17:50:01 kernel: [<c0061da4>] (warn_slowpath_null+0x1c/0x24) from [<bf02550c>] (fa_process_tx+0x188/0x194 [et])
    Aug 23 17:50:01 kernel: [<bf02550c>] (fa_process_tx+0x188/0x194 [et]) from [<bf0265f8>] (et_isr+0x2fc/0x488 [et])
    Aug 23 17:50:01 kernel: unwind: Index not found bf0265f8
    Aug 23 17:50:01 kernel: ---[ end trace 4637390b20246d4d ]---
    Aug 23 18:19:06 smbd[31299]: [2025/08/23 18:19:06.415148, 0] smbd/smb2_read.c:219(smb2_sendfile_send_data)
    Aug 23 18:19:06 smbd[31299]: smb2_sendfile_send_data: sendfile failed for file The Hateful Eight (2015)/The Hateful Eight (2015).mkv (Broken pipe). Terminating


    Any ideas?

  • I forget whether the SMB chunk size changes are in K21 or K22, but to keep things simple use an LE13 (K22) nightly and experiment with the settings a little. You can force SMB v2 (2.0) vs. 'v2 and Large MTU' (2.1+ and 3.0) which might help. You can also force the client to use a larger or smaller chunk size; the default should work for most configurations, but there are exceptions.

    Also see if Samba on the router can run in debug mode or can create enhanced logging? - In client/server relationships there are two sides that can have issues, and the kernel splat shows the router having problems. No idea whether it's a related issue or not.

    The workaround would be to locally mount the remote SMB shares from the LE device using system.d mount files and then use the local mount points for your Kodi sources. This has the advantage of allowing you to create an SMBv1 connection to the router, and a separate SMBv2/3 connection to Win10, whereas the Kodi SMB client forces you to use the same config for all connections it makes.

    See: https://wiki.libreelec.tv/how-to/mount_network_share