ESP32 Project works under ubuntu 22.04 but fails under ubuntu 26.04

I am building the demonstration project for a waveshare ESP32_S3_ETH.

I have been successfully building and running the project on one PC running ubuntu 22.04.

I just built another PC running ubuntu 26.04 and I wanted to get the project working there before upgrading the other PC to 26.04.

So I zipped up the entire directory from the 22.04 PC and copied it to the 26.04 PC.

The project seems to build and upload just fine, but it encounters the following errors when I run it:

Wait ETH Connect…
Wait ETH Connect…
ETH Connected
Wait ETH Connect…
ETH MAC: B2:3A:45:A4:EE:19, IPv4: 192.168.1.133, FULL_DUPLEX, 100Mbps, GatewayIP:192.168.1.1
E (36655) cam_hal: cam_dma_config(509): frame buffer malloc failed
E (36656) cam_hal: cam_config(603): cam_dma_config failed
E (36656) camera: Camera config failed with error 0xffffffff
Camera init failed with error 0xffffffff * Terminal will be reused by tasks, press any key to close it.

My platformio.ini (on both PCs) is:

[env:waveshare_esp32_s3_eth]

platform = espressif32

board = esp32-s3-devkitc-1

framework = arduino

monitor_speed = 115200

build_flags =

-DARDUINO_USB_CDC_ON_BOOT=1

-DARDUINO_USB_MODE=1

-DBOARD_HAS_PSRAM

Any idea why Ubuntu 26.04 would cause this problem?

Or is it something else?