Skip to content

[bug] startup crashes after upgrading to a new version of tauri #12886

@ayangweb

Description

@ayangweb

Describe the bug

3.4.1.mov
thread 'main' panicked at /Users/ayang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tao-0.32.6/src/platform_impl/macos/window.rs:288:12:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:        0x10508791c - std::backtrace_rs::backtrace::libunwind::trace::h43235ac629484ce8
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:        0x10508791c - std::backtrace_rs::backtrace::trace_unsynchronized::h3bc78969d500b9fc
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:        0x10508791c - std::sys::backtrace::_print_fmt::h66db558f95871955
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/sys/backtrace.rs:66:9
   3:        0x10508791c - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h6e25c13836847e70
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/sys/backtrace.rs:39:26
   4:        0x1050aad9c - core::fmt::rt::Argument::fmt::h23f1815b04d675dd
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/fmt/rt.rs:177:76
   5:        0x1050aad9c - core::fmt::write::h37cdb50ab8af3d55
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/fmt/mod.rs:1440:21
   6:        0x105083000 - std::io::Write::write_fmt::hd4c273f34c4c0a33
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/io/mod.rs:1887:15
   7:        0x1050877d0 - std::sys::backtrace::BacktraceLock::print::h1df7364dde63dc75
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/sys/backtrace.rs:42:9
   8:        0x105088994 - std::panicking::default_hook::{{closure}}::h646e398272c5759a
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:295:22
   9:        0x105088788 - std::panicking::default_hook::hf65fd28e95db7176
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:322:9
  10:        0x1050892e0 - std::panicking::rust_panic_with_hook::hc9e2ec2a12b10e12
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:828:13
  11:        0x105088e60 - std::panicking::begin_panic_handler::{{closure}}::h3b6449e2eb83bf4c
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:694:13
  12:        0x105087dd0 - std::sys::backtrace::__rust_end_short_backtrace::h38d85099ddd107a3
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/sys/backtrace.rs:168:18
  13:        0x105088b40 - rust_begin_unwind
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/std/src/panicking.rs:692:5
  14:        0x1050fad84 - core::panicking::panic_nounwind_fmt::runtime::h8d04cf8f6810f519
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:117:22
  15:        0x1050fad84 - core::panicking::panic_nounwind_fmt::hd8d3f0c92bbab643
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/intrinsics/mod.rs:3869:9
  16:        0x1050fadfc - core::panicking::panic_nounwind::hd38337cbf8361018
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:218:5
  17:        0x1050faf74 - core::panicking::panic_cannot_unwind::h47d96b2bff7532cb
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library/core/src/panicking.rs:307:5
  18:        0x1044123d8 - tao::platform_impl::platform::app_delegate::did_finish_launching::h8fd13dbbce7764fb
                               at /Users/ayang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tao-0.32.6/src/platform_impl/macos/app_delegate.rs:106:1
  19:        0x184d96b1c - <unknown>
  20:        0x184e2adb8 - <unknown>
  21:        0x184e2ad00 - <unknown>
  22:        0x184d65648 - <unknown>
  23:        0x185e81464 - <unknown>
  24:        0x18860037c - <unknown>
  25:        0x18860012c - <unknown>
  26:        0x1885fe674 - <unknown>
  27:        0x1885fe270 - <unknown>
  28:        0x185ea9914 - <unknown>
  29:        0x185ea9708 - <unknown>
thread caused non-unwinding panic. aborting.

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.4.0 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.85.0 (4d91de4e4 2025-02-17)
    ✔ cargo: 1.85.0 (d73d2caf9 2024-12-31)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 21.7.1
    - pnpm: 10.5.0
    - yarn: 1.22.22
    - npm: 10.5.0
    - bun: 1.1.29

[-] Packages
    - tauri 🦀: 2.3.1
    - tauri-build 🦀: 2.0.6
    - wry 🦀: 0.50.3
    - tao 🦀: 0.32.6
    - tauri-cli 🦀: 2.0.0-rc.7
    - @tauri-apps/api : 2.3.0
    - @tauri-apps/cli : 2.3.1
    - 
[-] Plugins
    - tauri-plugin-log 🦀: 2.2.3
    - @tauri-apps/plugin-log : 2.2.3
    - tauri-plugin-single-instance 🦀: 2.2.2
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-updater 🦀: 2.5.1
    - @tauri-apps/plugin-updater : 2.5.1
    - tauri-plugin-fs 🦀: 2.2.0
    - @tauri-apps/plugin-fs : 2.2.0
    - tauri-plugin-global-shortcut 🦀: 2.2.0
    - @tauri-apps/plugin-global-shortcut : 2.2.0
    - tauri-plugin-os 🦀: 2.2.0
    - @tauri-apps/plugin-os : 2.2.0
    - tauri-plugin-sql 🦀: 2.2.0
    - @tauri-apps/plugin-sql : 2.2.0
    - tauri-plugin-process 🦀: 2.2.0
    - @tauri-apps/plugin-process : 2.2.0
    - tauri-plugin-dialog 🦀: 2.2.0
    - @tauri-apps/plugin-dialog : 2.2.0
    - tauri-plugin-shell 🦀: 2.2.0
    - @tauri-apps/plugin-shell : 2.2.0
    - tauri-plugin-autostart 🦀: 2.2.0
    - @tauri-apps/plugin-autostart : 2.2.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: macOSstatus: upstreamThis issue is blocked by upstream dependencies and we need to wait or contribute upstream fixestype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions