I have downloaded the source code and built Chromium on an Ubuntu 24.04 VM (from https://chromium.googlesource.com/chromium/tools/depot_tools.git by following the instructions on https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md). I am using TigerVNC to view the GUI on my local machine, which also works. When I run Chromium, I land on the search page and get autocomplete suggestions for my search term. However, as soon as I actually launch the search, I get an infinite loading screen (the results of the search are never displayed, but Chromium doesn't freeze and is still responsive). I can curl websites successfully, so it isn't a network issue. I am not even close to maxing out RAM or cores. These are some of the errors I receive which may be relevant to the cause.
[465235:465235:0918/105734.907280:WARNING:ui/gfx/linux/gpu_memory_buffer_support_x11.cc:49] dri3 extension not supported.
[465235:465235:0918/105734.920210:WARNING:sandbox/policy/linux/sandbox_linux.cc:414] InitializeSandbox() called with multiple threads in process gpu-process.
[465323:7:0918/105735.472182:ERROR:gpu/ipc/client/command_buffer_proxy_impl.cc:128] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[465323:7:0918/105735.472674:ERROR:services/viz/public/cpp/gpu/context_provider_command_buffer.cc:272] GpuChannelHost failed to create command buffer.
ERROR:components/leveldb_proto/public/proto_database_provider.h:101 In memory database cannot use the given database directory
I actually can run my build on my local machine (also Ubuntu 24.04, but less RAM/cores) and Chromium works fine (no infinite loading). It is exactly the same build.
I believe that the issue is related to graphics rendering and the first one (dri3 extension) may be the cause of or related to this issue. I found out that my VM performs software rendering (no hardware acceleration), which is possibly why it throws the dri3 extension error. I don't have much experience with X server setups, especially if the graphics are piped into TigerVNC. I also haven't been able to determine if TigerVNC even supports dri3. I would really appreciate any advice on this. Thank you!
TL;DR: trying to run Chromium on Ubuntu VM with TigerVNC, getting graphics error related to dri3 / X server.
especially if the graphics are piped into TigerVNC
If you are using it in an "x11vnc fashion" (i.e. it "watches" / attaches to an existing X(org) server instead of spawning some Xvnc / Xvfb one), then that's irrelevant. It's really just about your VM, kernel, glx / mesa, and maybe ddx. I have no idea if one can have hardware acceleration with Xvnc though. (Seems yes according to its man page.)