Skip to content

[BUG] Black window when running example #5

@joepie91

Description

@joepie91

Describe the bug
Running the example in examples/ results in a fully black window with no visible UI (although it does log mouse events), and a number of errors in the console.

Image

Console:

[nix-shell:~/projects/_3rdparty/qml-raub/examples]$ pnpm start

> [email protected] start /home/sven/projects/_3rdparty/qml-raub/examples
> tsx main.ts

Unknown error
WebGL `init()` call failed, but it may still work.
GLFW Error 65548: Wayland: The platform does not support setting the window icon

Notably, I am on NixOS, and so I need to declare all dependencies explicitly in a shell.nix file, which looks like this:

{ pkgs ? import <nixpkgs> {} }:
	with pkgs; stdenv.mkDerivation rec {
		name = "development-environment";

		buildInputs = [
			libGL
			glfw
			qt6.full
		];

		LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}:/run/opengl-driver/lib";
	}

Presumably something is missing, but the console output does not seem to tell me what it is.

  • NixOS version: 24.11.20250201.f668777 (Vicuna)
  • Desktop environment: KDE Plasma

To Reproduce
Steps to reproduce the behavior:

  1. Clone repository
  2. Create shell.nix in repository root, with the content as above
  3. Enter Nix shell using nix-shell
  4. In repository root, run pnpm install
  5. In examples/ folder, run pnpm install
  6. In examples/ folder, run pnpm start

Expected behavior
Should show a window with custom buttons and a textarea, according to the gui.qml.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions