aptabase / tauri-plugin-aptabase

Tauri Plugin for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
https://aptabase.com
MIT License
32 stars 4 forks source link

Bug Report: thread panicked while processing panic. aborting. #9

Closed zackshen closed 8 months ago

zackshen commented 8 months ago

I simulated a panic in the tauri command. but the with_panic_hook callback handler caused panic again. I setup a dead simple with_panic_hook which just print some plain text. i found lib.rs #74 hook_client.flush_blocking(); may create panic again.

#[tauri::command]
pub async fn update(
    app_handle: tauri::AppHandle,
) -> Result<(), Errors> {
    panic!("make a panic to test the error handler");
}

Environment:

zackshen commented 8 months ago

i found tauri-plugin-aptabase released 0.5.0, the bug has been fixed. but no 0.5.0 version in the release page and changelog.md. 😭

goenning commented 8 months ago

good catch @zackshen :)

I completely forgot about those steps. Thank you, I fixed it :)