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

Panic when running basic iced application on armv7-unknown-linux-gnueabihf #2634

Open
4 tasks done
rbwork2024 opened this issue Oct 11, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@rbwork2024
Copy link

rbwork2024 commented Oct 11, 2024

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Feel free to close this if the architecture is not supported, but I was intending to run a simple iced application on an embedded display, and when running it got this issue:

EGL: Warning: No default display support on wayland
thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/khronos-egl-6.0.0/src/lib.rs:1779:38:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Minimal reproduction:

use iced::{widget::text, Element, Task};

#[derive(Default, Clone, Debug)]
struct State {}

#[derive(Debug, Clone)]
struct Message {}

fn main() -> iced::Result {
    iced::run("Application", State::update, State::view)?;
    Ok(())
}

impl State {
    fn view(&self) -> Element<Message> {
        text!("Hello").into()
    }

    fn update(&mut self, m: Message) -> Task<Message> {
        Task::none()
    }
}

Compile with (with docker or podman installed):

cargo install cross
~/.cargo/bin/cross build --release --target armv7-unknown-linux-gnueabihf

What is the expected behavior?

A simple application with no widgets should be able to start up, rendering a window.

Version

crates.io release

Operating System

Linux

Do you have any log output?

RUST_LOG=trace ./application
EGL: Warning: No default display support on wayland
thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/khronos-egl-6.0.0/src/lib.rs:1779:38:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@rbwork2024 rbwork2024 added the bug Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant