Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoGlutinConfigs on NixOS #100

Open
nuxeh opened this issue Jun 20, 2024 · 1 comment
Open

NoGlutinConfigs on NixOS #100

nuxeh opened this issue Jun 20, 2024 · 1 comment

Comments

@nuxeh
Copy link

nuxeh commented Jun 20, 2024

Hi, I would love to be able to run serial-monitor-rust, I have been searching for something like this for a very long time.

However, I'm having great difficulty getting it running on NixOS, with this runtime error at start:

starting connection thread..
starting main thread..
error: NoGlutinConfigs(ConfigTemplate { color_buffer_type: Rgb { r_size: 8, g_size: 8, b_size: 8 }, alpha_size: 8, depth_size: 0, stencil_size: 0, num_samples: None, min_swap_interval: None, max_swap_interval: None, config_surface_types: ConfigSurfaceTypes(WINDOW), api: None, transparency: false, single_buffering: false, stereoscopy: None, float_pixels: false, max_pbuffer_width: None, hardware_accelerated: None, max_pbuffer_height: None, native_window: None }, Error { raw_code: None, raw_os_message: None, kind: NotFound })

It seems to be some deep seated issues with the glow backend on NixOS, and some have solved it by using wgpu as the backend instead, the trouble is I can't work out how to do that.

I know Rust, but I have no idea when it comes to graphics, and wondered, whether it's something that could be done in serial-monitor-rust, to use wgpu optionally for a backend, and if that would be easy enough to do?

@hacknus
Copy link
Owner

hacknus commented Jun 20, 2024

Hi!

Thanks a lot for giving this a try!
According to egui, it should be as simple as updating the following line in the cargo.toml file, just add the wgpu feature:

eframe = { version = "0.27", features = ["persistence", "wgpu"] }

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

No branches or pull requests

2 participants