Skip to content

Running notify_rust gets panic #243

@Tunglies

Description

@Tunglies
use notify_rust::Notification;

fn main() {
    Notification::new()
        .summary("Greeting")
        .body("Hello, world!")
        .icon("face-smile")
        .show()
        .unwrap();
    println!("Hello, world!");
}

It panic

~/workspace/notice-me · (master ±)
➜  cargo run                                                                                                                                                                                               02/17/25 -  6:24 PM
   Compiling notice-me v0.1.0 (/Users/tunglies/workspace/notice-me)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/notice-me`

thread 'main' panicked at /Users/tunglies/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/objc_id-0.1.1/src/id.rs:93:18:
null pointer dereference occurred
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
fish: Job 1, 'cargo run' terminated by signal SIGABRT (Abort)

Dependencies installed tree might be useful.

~/workspace/notice-me · (master ±)
➜  cargo tree                                                                                                                                                                                              02/17/25 -  6:24 PM
notice-me v0.1.0 (/Users/tunglies/workspace/notice-me)
└── notify-rust v4.11.5
    ├── futures-lite v2.6.0
    │   ├── fastrand v2.3.0
    │   ├── futures-core v0.3.31
    │   ├── futures-io v0.3.31
    │   ├── parking v2.2.1
    │   └── pin-project-lite v0.2.16
    └── mac-notification-sys v0.6.2
        ├── dirs-next v2.0.0
        │   ├── cfg-if v1.0.0
        │   └── dirs-sys-next v0.1.2
        │       └── libc v0.2.169
        ├── objc-foundation v0.1.1
        │   ├── block v0.1.6
        │   ├── objc v0.2.7
        │   │   └── malloc_buf v0.0.6
        │   │       └── libc v0.2.169
        │   └── objc_id v0.1.1
        │       └── objc v0.2.7 (*)
        ├── objc_id v0.1.1 (*)
        └── time v0.3.37
            ├── deranged v0.3.11
            │   └── powerfmt v0.2.0
            ├── num-conv v0.1.0
            ├── powerfmt v0.2.0
            └── time-core v0.1.2
        [build-dependencies]
        └── cc v1.2.14
            └── shlex v1.3.0

Machine info

➜  cargo -Vv                                                                                                                                                                                               02/17/25 -  6:26 PM
cargo 1.86.0-nightly (2928e3273 2025-02-07)
release: 1.86.0-nightly
commit-hash: 2928e32734b04925ee51e1ae88bea9a83d2fd451
commit-date: 2025-02-07
host: aarch64-apple-darwin
libgit2: 1.9.0 (sys:0.20.0 vendored)
libcurl: 8.7.1 (sys:0.4.74+curl-8.9.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Mac OS 15.3.1 [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions