plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

single-instance does not work @ Win11 2024.H2

Open changshunxu520 opened this issue 9 months ago • 1 comments

single-instance does not work @ Win11 2024.H2

Image

It has no output, and it seems like it's not working. However, it works fine on another Windows 10 computer.

changshunxu520 avatar Mar 06 '25 10:03 changshunxu520

can you also show us the output of the tauri info command please?

for what its worth, it still seems to work for me and others afaik

FabianLars avatar Mar 06 '25 10:03 FabianLars

I'm getting an error too. Windows 11, i have not tested on other systems yet.

tauri info:

cargo tauri info     

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 139.0.3405.102
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.91.0-nightly (8e62bfd31 2025-08-12)
    ✔ cargo: 1.91.0-nightly (840b83a10 2025-07-30)
    ✔ rustup: 1.28.1 (f9edccde0 2025-03-05)
    ✔ Rust toolchain: nightly-x86_64-pc-windows-msvc (overridden by environment variable RUSTUP_TOOLCHAIN)
    - node: 24.4.0
    - pnpm: 10.9.0
    - yarn: 1.22.22
    - npm: 11.4.2

[-] Packages
    - tauri 🦀: 2.7.0
    - tauri-build 🦀: 2.3.1
    - wry 🦀: 0.52.1, (outdated, latest: 0.53.1)
    - tao 🦀: 0.34.0, (outdated, latest: 0.34.1)
    - tauri-cli 🦀: 2.7.1

[-] Plugins
    - tauri-plugin-log 🦀: 2.6.0
    - tauri-plugin-dialog 🦀: 2.3.2
    - tauri-plugin-single-instance 🦀: 2.2.0, (outdated, latest: 2.3.2)
    - tauri-plugin-fs 🦀: 2.4.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:5173/

the error:

thread 'main' (5688) panicked at C:\Users\adhue\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-plugin-single-instance-2.2.0\src\platform_impl\windows.rs:121:34:
null pointer dereference occurred
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace       
thread caused non-unwinding panic. aborting.
error: process didn't exit successfully: `C:\Users\adhue\~\.cargo\builds\debug\excalidraw.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

And similar to the previous commenter, the IDE does not register any errors.

StrongTheDev avatar Aug 17 '25 23:08 StrongTheDev

update: when I manually set the version to 2.3.2 (for single instance plugin), it built without errors.

StrongTheDev avatar Aug 18 '25 00:08 StrongTheDev