Skip to content

Conversation

@tcsenpai
Copy link

Referencing #3

HUGE DISCLAIMER: As I really needed the app, i asked Claude code (tho is a very powered up version) to please fix it. I am NOT a Rust developer so this PR should be examined further. Anyway, it fixes the errors.

Copying the log Claude produced (tho I am unsure its the full story):

The rust-pro agent has provided a comprehensive solution! The main issue was a Wayland/wgpu compatibility problem with your hybrid NVIDIA + AMD graphics setup. Here's what needs to be done:

  Quick Fix - Add this to the top of your main() function in src/main.rs:

  fn main() -> iced::Result {
      // Fix Wayland graphics compatibility
      std::env::set_var("WGPU_BACKEND", "gl");
      std::env::set_var("WGPU_POWER_PREF", "low");
      std::env::set_var("LIBGL_DRI3_DISABLE", "1");

      // ... rest of your existing code
  }

  Or run with environment variables:
  WGPU_BACKEND=gl WGPU_POWER_PREF=low LIBGL_DRI3_DISABLE=1 cargo run --release

  The issue occurs because:
  1. Your system has hybrid graphics (NVIDIA RTX 4060 + AMD integrated)
  2. Wayland's DMABuf handling conflicts with your GPU setup
  3. wgpu's default Vulkan backend has compatibility issues

  The solution forces OpenGL backend and uses the integrated GPU, which avoids the Wayland surface configuration error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant