DesktopHTMLViewer crashes loading Youtube

Hello!
I’m using Mint 22.3 Mate and Xojo 2023 r4.

Lately I’m having trouble loading any Youtube video into a DesktopHTMLViewer (using loadURL). The page loads to about 30% (guessing), then freezes my entire app. It takes a minute or so for the freeze (aka CRASH) to finally shut down the app. This ONLY happens when loading youtube, and it also happens in a simple test project where the only thing present is a DesktopHTMLViewer.

Weird oddity #1: if I build my app on windows FOR windows, and run it on linux under WINE, it works flawlessly.

Weird oddity #2: a few weeks ago, there was no issue at all…leads me to suspect that something in my Mint system got updated and is causing problems. I’ve tried booting into older kernels, but that makes no difference. Is anyone else having this problem?

Could someone try loading a youtube link into a DesktopHTMLViewer?

Maybe let me know if it worked or not, and what linux distro you are using. That would be most appreciated.

There’s not much to go on…

Firstly, make sure you’ve installed the latest webkit version:

sudo apt-get install libwebkit2gtk

I also note you are using an older version of Xojo. Have you downloaded the latest 2026r2.1 version and tested if it works correctly on that? If the latest version works then it may be an incompatibility between older Xojo and a newer webkit.

Thank you for the reply, Mr. Johnson, sir! I have tried the latest version of xojo, still with the same problem. It seems libwebkit2gtk doesn’t exist on Mint’s repo’s.

E: Unable to locate package libwebkit2gtk

So, does this mean my earlier guess-timation was correct…Mint is the problem?

ok, so running dpkg -l | grep libwebkit shows this:

libwebkit2gtk-4.1-0:amd64 2.52.3-0ubuntu0.24.04.1 amd64 Web content engine library for GTK

Looks like libwebkit2gtk is already installed.

Further investigation shows that launching Xojo from the terminal like this:

export WEBKIT_HARDWARE_ACCELERATION=OFF; /opt/xojo/xojo2024r2.1/Xojo

Produces: (gst-plugin-scanner:114766): CRITICAL **: 19:44:17.652: _dma_fmt_to_dma_drm_fmts: assertion 'fmt != GST_VIDEO_FORMAT_UNKNOWN' failed

So now this appears to be a gstreamer issue. Further research required.