iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
24.94k stars 1.18k forks source link

Application does not start on Windows 10 pro 64 bits #2369

Open soucosmo opened 8 months ago

soucosmo commented 8 months ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

When running the application on Windows 10 Pro 64 bits I get the following behavior, a prompt window opens for a few seconds, and then it closes, as shown in the video below

https://github.com/iced-rs/iced/assets/14854891/ea883e0c-ec51-4670-85cc-d0e5b2edecf3

My development environment Screenshot 2024-04-02 22 04 56

Compiled using cargo build --release --target x86_64-pc-windows-gnu

My Cargo.toml

[package]
name = "costv"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
iced = { version = "0.12.1", features = ["lazy"] }
iced_core = "0.12.3"

[profile.release]
strip = true

What is the expected behavior?

This is the expected behavior Screenshot 2024-04-02 21 57 56

Version

crates.io release

Operating System

Windows

Do you have any log output?

No response

Koranir commented 8 months ago

Could you run the application with the RUST_LOG=debug environment variable set and copy/paste the logs here? Would help us know what's going on.

soucosmo commented 8 months ago

Could you run the application with the RUST_LOG=debug environment variable set and copy/paste the logs here? Would help us know what's going on.

[2024-04-03T03:58:35Z DEBUG iced_winit::application] Window builder: WindowBuilder {
        window: WindowAttributes {
            inner_size: Some(
                Logical(
                    LogicalSize {
                        width: 1024.0,
                        height: 768.0,
                    },
                ),
            ),
            min_inner_size: None,
            max_inner_size: None,
            position: None,
            resizable: true,
            enabled_buttons: WindowButtons(
                CLOSE | MINIMIZE | MAXIMIZE,
            ),
            title: "Cos.TV (Não licenciado)",
            maximized: false,
            visible: false,
            transparent: false,
            blur: false,
            decorations: true,
            window_icon: None,
            preferred_theme: None,
            resize_increments: None,
            content_protected: false,
            window_level: Normal,
            active: true,
            parent_window: SendSyncWrapper(
                None,
            ),
            fullscreen: SendSyncWrapper(
                None,
            ),
        },
    }