holochain-apps / kando

Real-time KanBan Boards
MIT License
3 stars 2 forks source link

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

Open mattyg opened 3 months ago

mattyg commented 3 months ago

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: https://github.com/tauri-apps/cargo-mobile2/issues/47

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