Skip to content

Option::unwrap() on a None #308

@hashelq

Description

@hashelq

Trying to run the rectangle.rs + winit_app.rs mod example.

thread 'main' (359913) panicked at /home/neko/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/softbuffer-0.4.8/src/backends/x11.rs:397:21:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Config:
winit = { version = "0.30.12", features = ["x11", "rwh_06"], default-features = false }
Hyprland/nixos

{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell rec {
  buildInputs = with pkgs; [ libxkbcommon libxi libx11 libxcursor gnumake pkg-config];

  shellHook = ''
    export LD_LIBRARY_PATH=${ pkgs.lib.makeLibraryPath buildInputs }/:$LD_LIBRARY_PATH
  '';
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - X11Xlib / Xcb backenddocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions