Request for Help with Error Message in Running Chromium Headless for WebRTC

I am reaching out regarding an issue I encountered while running Chromium Headless on Verdin iMX8M Plus Quad 4GB WB IT V1.1A and Verdin Development Board V1.1C using debian image container. I am writing to request your assistance in resolving this issue.

I have followed the steps provided below to run Chromium Headless. However, I encountered an error message at the last command. The error message is as follows:

  1. Pull the Docker image of Torizon Debian using the following command:
    “docker pull torizon/debian:$CT_TAG_DEBIAN”
  2. Run the Docker container using the following command:
    The it flag is used to run the container in interactive mode with a terminal. The -
    privileged flag is used to give the container access to all devices on the host. The
    v flag is used to mount the /var/run/dbus directory from the host to the container.
    The -device flag is used to give the container access to the /dev/video2 device
    [USB Camera]. The v flag is used to mount the /dev directory from the host to the
    container. The bash command is used to start a bash shell in the container.
    “docker run -it --privileged -v /var/run/dbus:/var/run/dbus --device=/dev/video2 -v /d
    ev:/dev torizon/debian:$CT_TAG_DEBIAN bash”
  3. Update the package list using the following command:
    “apt update”
  4. Install the required GStreamer packages using the following command:
    “apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plu
    gins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plug
    ins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-
    x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-p
    ulseaudio”
  5. Install Chromium using the following command:
    “apt install chromium”
  6. Launch Chromium with the required options using the following command:
    The -headless flag is used to run Chromium in headless mode. The -no-sandbox flag
    is used to disable the sandbox for the container. The -disable-gpu flag is used to
    disable GPU acceleration. The -disable-sync flag is used to disable syncing. The -
    no-first-run flag is used to disable the first run experience. The -disable-dev-shm-
    usage flag is used to disable the use of /dev/shm . The -remote-debugging-port flag is
    used to set the remote debugging port to 7717 . The -use-fake-ui-for-media-stream
    flag is used to enable fake UI for media stream. The -use-fake-device-for-media-
    stream flag is used to enable fake device for media stream. The -autoplay-policy
    flag is used to set the autoplay policy to no-user-gesture-required .
    “chromium \
    –headless \
    –no-sandbox \
    –disable-gpu \
    –disable-sync \
    –no-first-run \
    –disable-dev-shm-usage \
    –remote-debugging-port=7717 \
    –use-fake-ui-for-media-stream \
    –use-fake-device-for-media-stream \
    –autoplay-policy=no-user-gesture-required \
    https://43.205.175.157:5000/?BOT_KUM21’”
    The error message “Invalid ozone platform: headless” is encountered and the program
    crashes with "Trace/breakpoint trap (core dumped)”

I am not familiar with this error message, and I am unable to resolve it on my own. I believe that it may be related to the platform configuration for Chromium, but I am not sure how to resolve it.

I would greatly appreciate it if you could provide me with any guidance or suggestions to resolve this issue. Please let me know if you require any further information from me, and I will be happy to provide it.

Hi @Adwaith,

We are marking this post resolved as webrtc working with below chromium version
chromium_108.0.5359.94-1~deb11u1_arm64.deb.

*Please feel free to reply same post if you have any query to same topic.
Best Regards
Ritesh Kumar