Skip to content

App crashes inconsistently when re-launching on android 11 due to tauri-plugin-log error #10

Description

@mattyg

Inconistently, when relaunching the app, it crashes with the following error logged:

07-12 14:50:19.131 24966 25283 I RustStdoutStderr: FATAL PANIC PanicInfo {
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     payload: Any { .. },
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     message: Some(
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:         error while running tauri application: PluginInitialization("log", "attempted to set a logger after the logging system was already initialized"),
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     ),
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     location: Location {
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:         file: "src-tauri/src/lib.rs",
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:         line: 52,
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:         col: 10,
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     },
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     can_unwind: true,
07-12 14:50:19.131 24966 25283 I RustStdoutStderr:     force_no_backtrace: false,
07-12 14:50:19.131 24966 25283 I RustStdoutStderr: }
07-12 14:50:19.131 24966 25283 I RustStdoutStderr: thread '<unnamed>' panicked at src-tauri/src/lib.rs:52:10:
07-12 14:50:19.131 24966 25283 I RustStdoutStderr: error while running tauri application: PluginInitialization("log", "attempted to set a logger after the logging system was already initialized")

This ticket may offer some leads: tauri-apps/cargo-mobile2#47

I believe this is an issue with tauri, not kando, but keeping here anyway to track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmobile

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions