leetcode-tui icon indicating copy to clipboard operation
leetcode-tui copied to clipboard

leetcode-tui-config Crash Report

Open aclowkey opened this issue 10 months ago • 1 comments

I installed with cargo install leetcode-tui-rs. Then initialized my config:

# /Users/alex.chaplianka/Library/Application Support/com.akarsh.leetui/config.toml'
csrftoken = "x.y.z"
lc_session = "jGM...U"

then it crashes:

Well, this is embarrassing.

leetcode-tui-config had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/var/folders/yd/sclhxzzn3xz77jlxn79y8qwm0000gp/T/report-9caf1116-708e-405f-8341-4874e6650281.toml". Submit an issue or email with the subject of "leetcode-tui-config Crash Report" and include the report as an attachment.

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly! The application panicked (crashed). Message: Error while creating db conn.: RedbDatabaseError(DatabaseAlreadyOpen) Location: /Users/alex.chaplianka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/leetcode-tui-db-0.5.2/src/lib.rs:42

This is a bug. Consider reporting it at https://github.com/akarsh1995/leetcode-tui

I get this error report:

"name" = "leetcode-tui-config"
"operating_system" = "Mac OS 15.3.2 [64-bit]"
"crate_version" = "0.5.2"
"explanation" = """
Panic occurred in file '/Users/alex.chaplianka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/leetcode-tui-db-0.5.2/src/lib.rs' at line 42
"""
"cause" = "Error while creating db conn.: RedbDatabaseError(DatabaseAlreadyOpen)"
"method" = "Panic"
"backtrace" = """

   0: 0x100b13644 - _rust_begin_unwind
   1: 0x100b630a4 - core::panicking::panic_fmt::ha0f8363f677e0181
   2: 0x100b63408 - core::result::unwrap_failed::h47e2afd53f1d6de6
   3: 0x1006e0bec - std::sync::once::Once::call_once_force::{{closure}}::h43f260f121d1cf52
   4: 0x100b6293c - std::sys::sync::once::queue::Once::call::h01366cd334af4c96
   5: 0x100b44784 - std::sync::once_lock::OnceLock<T>::initialize::h0f9ee410e00b1faa
   6: 0x1006ddee4 - leetcode_tui_db::init::h5d6c8a171855eff8
   7: 0x1005ce474 - tokio::runtime::park::CachedParkThread::block_on::h5a6755b60df4bad0
   8: 0x1005c31ac - leetui::main::hb353f17953753246
   9: 0x1005cb528 - std::sys::backtrace::__rust_begin_short_backtrace::h00dd65064fc1efd4
  10: 0x1005bea60 - std::rt::lang_start::{{closure}}::ha358475a06d24fc9
  11: 0x100b07ecc - std::rt::lang_start_internal::hacda2dedffd2edb4
  12: 0x1005c3440 - _main"""

aclowkey avatar Mar 26 '25 13:03 aclowkey

This happens whe there are two processes running simultaneously!

akarsh1995 avatar Mar 28 '25 16:03 akarsh1995