Skip to content

building GUI example results in "XdgRuntimeDirNotSet" error #4132

@nick-gravgaard

Description

@nick-gravgaard

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 I get a Segmentation fault (core dumped) message in the console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions