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

[bug] Dialog plugin causing Aborted (core dumped) on Linux #12017

Open
SergeFan opened this issue Dec 20, 2024 · 0 comments
Open

[bug] Dialog plugin causing Aborted (core dumped) on Linux #12017

SergeFan opened this issue Dec 20, 2024 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@SergeFan
Copy link

Describe the bug

As the title implied, using the tauri dialog plugin to open a file system dialog will cause Aborted (core dumped) when exiting the App. This seems to only happen to Linux.

Reproduction

This a code snip from my project, I have a button from frontend to trigger this command and it will open the system file select dialog.

use directories::UserDirs;
use tauri_plugin_dialog::DialogExt;

#[tauri::command]
async fn select_path(app_handle: tauri::AppHandle) -> String {
    if let Some(user_dirs) = UserDirs::new() {
        let file_path = app_handle
            .dialog()
            .file()
            .set_directory(user_dirs.home_dir())
            .blocking_pick_folder();

...

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_dialog::init())
        .plugin(tauri_plugin_fs::init())
        .plugin(tauri_plugin_shell::init())
        .invoke_handler(tauri::generate_handler![
            ...
            select_path,
            ...
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

If I don't open the dialog and exit the app, it will close normally. But if I open the dialog (even just close the dialog and select nothing), it will give the Aborted (core dumped) error on exiting the app.

Aborted (core dumped)

Expected behavior

Opening file select dialog should not causing any core dumped error.

Full tauri info output

[✔] Environment
    - OS: Manjaro 24.2.1 x86_64 (X64)
    ✔ webkit2gtk-4.1: 2.46.4
    ✔ rsvg2: 2.59.2
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (2024-05-07)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 23.4.0
    - pnpm: 9.12.3
    - yarn: 1.22.22
    - npm: 10.9.2

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - tauri-cli 🦀: 2.0.4

[-] Plugins
    - tauri-plugin-shell 🦀: 2.2.0
    - tauri-plugin-fs 🦀: 2.2.0
    - tauri-plugin-dialog 🦀: 2.2.0

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

Stack trace

No response

Additional context

No response

@SergeFan SergeFan added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant