I've just installed the latest Ubuntu on a VirtualBox host, and used shared folders to copy across the latest nightly build archive of roc and my recently cloned roc repo.
Building the repo's examples/gui/Hello.roc
using the roc binary from the archive file results in an error.
nick@nick-VirtualBox:~/Downloads/roc_nightly-linux_x86_64-2022-09-28-11ef947$ ./roc ~/repos/roc/examples/gui/Hello.roc
🔨 Rebuilding platform...
thread 'main' panicked at 'Failed to initialize any backend! Wayland status: XdgRuntimeDirNotSet X11 status: XOpenDisplayFailed', /home/nick/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/mod.rs:619:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault (core dumped)
This does however create a hello-gui
file which successfully opens a window when run. When I close that window a Segmentation fault (core dumped)
message appears in the console.
I was just about to create a GitHub issue but thought I should ask here first. Any ideas?
I just created a GitHub issue: https://github.com/roc-lang/roc/issues/4132
Last updated: Jul 05 2025 at 12:14 UTC