Container gives segmentation error in TrueNAS but not my PC

I’m trying to run the Unofficial Homestuck Collection reader in a TrueNAS container so I can VPN into my network and read it from anywhere.

When I build the custom Ubuntu image with the reader start the container as described in the noVNC description (under V2 Composition) on my PC, it works.* But when I try the same thing on my TrueNAS server, the homestuck-uhc service always crashes with this error message:

/app/squashfs-root/AppRun: line 31:     8 Segmentation fault      /app/squashfs-root/unofficial-homestuck-collection --no-sandbox

Here’s the Dockerfile for the UHC Reader image:

FROM ubuntu:latest

ENV VNC_PASSWORD=password
ENV USER=john
	
RUN apt-get update && apt-get install -y \
	libxss1 \
	libasound2t64 \
	libgbm-dev \
	libdrm2 \
	libgtk-3-0 \
	libgdk-pixbuf2.0-0 \
	libatk-bridge2.0-0 \
	libatk1.0.0 \ 
	libnss3 \ 
	libxi6 \ 
	libxext6 \ 
	libxdamage1 \
	libxcursor1 \
	libxcomposite1:amd64 \
	libxcb-dri3-0 \
	libx11-xcb1 \
	libglib2.0-dev \
	&& rm -rf /var/lib/apt/lists/*
	
RUN useradd -ms /bin/bash $USER && \
	adduser $USER sudo && \
	echo $USER":"$VNC_PASSWORD | chpasswd

COPY squashfs-root /app/squashfs-root
RUN chmod -R 755 /app/squashfs-root

RUN chown root:root /app/squashfs-root/chrome-sandbox
RUN chmod 4755 /app/squashfs-root/chrome-sandbox

RUN sed -i '31c\/app/squashfs-root/unofficial-homestuck-collection --no-sandbox' /app/squashfs-root/AppRun

USER $USER

CMD ["/app/squashfs-root/AppRun"]

And here’s the Docker Compose file I’m using as a custom app:

services:
  homestuck-uhc:
    image: homestuck-uhc:latest
    environment:
      - DISPLAY=novnc:0.0
    depends_on:
      - novnc
    networks:
      - x11
    volumes:
      - /mnt/Main/media/Other/unofficial-homestuck-collection/Asset_Pack:/media/Asset_Pack
  novnc:
    image: theasp/novnc:latest
    environment:
      - DISPLAY_WIDTH=1600
      - DISPLAY_HEIGHT=968
      - RUN_XTERM=no
    ports:
      - "9001:8080"
    networks:
      - x11
networks:
  x11:

* Technically when I first run it, the following error occurs, but then I just restart the homestuck-uhc service and it works fine.

* The futex facility returned an unexpected error code.

/app/squashfs-root/AppRun: line 31:     9 Aborted                 /app/squashfs-root/unofficial-homestuck-collection --no-sandbox

It just occurred to me I could test the binary from TrueNAS’s own shell, and it also throws a segmentation fault there. So that confirms that it’s a difference in what resources TrueNAS and Pop!_OS allow Docker to use, I think.